Skip to content

Commit 9bd6fe4

Browse files
authored
Add shouldPreserveOCLKernelArgTypeMetadataThroughString (#354)
* Add shouldPreserveOCLKernelArgTypeMetadataThroughString Because of commit: KhronosGroup/SPIRV-LLVM-Translator@835eb7e Need to add shouldPreserveOCLKernelArgTypeMetadataThroughString to SPIRV::TranslatorOpts to still be able to correctly parse kernel arguments type, by metadata. * fix function name
1 parent d06733f commit 9bd6fe4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common_clang.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ Compile(const char *pszProgramSource, const char **pInputHeaders,
324324
if (!optionsParser.hasOptDisable()) {
325325
SPIRVOpts.setMemToRegEnabled(true);
326326
}
327+
SPIRVOpts.setPreserveOCLKernelArgTypeMetadataThroughString(true);
327328
success = llvm::writeSpirv(M.get(), SPIRVOpts, OS, Err);
328329
err_ostream << Err.c_str();
329330
err_ostream.flush();

0 commit comments

Comments
 (0)