Skip to content

Commit 704b5a2

Browse files
Artem Gindinsonmnaczk
Artem Gindinson
andauthored
[Backport] Add shouldPreserveOCLKernelArgTypeMetadataThroughString (#366)
Cherry-picks commit 9bd6fe4. Co-authored-by: mnaczk <[email protected]>
1 parent 35a5594 commit 704b5a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common_clang.cpp

+1
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)