Skip to content

Commit af06e39

Browse files
[SYCL] Pass RewriteTypes=true to the GenXSPIRVWriterAdaptor pass (#3607)
This parameter enables encoding different VC attributes as OpenCL types, which can be naturally translated from LLVM IR to SPIRV and vice-versa. Previously these attributes were transcoded using non-standard spirv decorations, which are now deprecated and not supported.
1 parent f41f506 commit af06e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static void LowerEsimdConstructs(Module &M) {
702702
MPM.add(createInstructionCombiningPass());
703703
MPM.add(createDeadCodeEliminationPass());
704704
}
705-
MPM.add(createGenXSPIRVWriterAdaptorPass());
705+
MPM.add(createGenXSPIRVWriterAdaptorPass(/*RewriteTypes=*/true));
706706
MPM.run(M);
707707
}
708708

0 commit comments

Comments
 (0)