Skip to content

Commit 5b8bee9

Browse files
authored
[Comgr] Re-add SPIR-V translator options dropped in rebase (llvm#1789)
Auto-submit by Jenkins
2 parents db3d077 + d4c9ec5 commit 5b8bee9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

amd/comgr/src/comgr-spirv-command.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ amd_comgr_status_t SPIRVCommand::execute(raw_ostream &LogS) {
7676
Module *M;
7777
std::string Err;
7878

79-
if (!readSpirv(Context, ISS, M, Err)) {
79+
SPIRV::TranslatorOpts Opts;
80+
Opts.enableAllExtensions();
81+
Opts.setDesiredBIsRepresentation(SPIRV::BIsRepresentation::OpenCL20);
82+
83+
if (!readSpirv(Context, Opts, ISS, M, Err)) {
8084
LogS << "Failed to load SPIR-V as LLVM Module: " << Err << '\n';
8185
return AMD_COMGR_STATUS_ERROR;
8286
}

0 commit comments

Comments
 (0)