Skip to content

Commit

Permalink
Disable SPV_KHR_untyped_pointers extension (#2345)
Browse files Browse the repository at this point in the history
KhronosGroup/SPIRV-LLVM-Translator@7dacb7c
added the `SPV_KHR_untyped_pointers` extension to the LLVM-SPIRV
translator. They won't want to enable this extension, as it causes
failures.

Signed-off-by: Whitney Tsang <[email protected]>
  • Loading branch information
whitneywhtsang authored Sep 26, 2024
1 parent 979301f commit dadda68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Target/SPIRV/SPIRVTranslation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ std::string translateLLVMIRToSPIRV(llvm::Module &module) {

SPIRV::TranslatorOpts SPIRVOpts;
SPIRVOpts.enableAllExtensions();
SPIRVOpts.setAllowedToUseExtension(
SPIRV::ExtensionID::SPV_KHR_untyped_pointers, false);
SPIRVOpts.setMemToRegEnabled(true);
SPIRVOpts.setPreserveOCLKernelArgTypeMetadataThroughString(true);
SPIRVOpts.setPreserveAuxData(false);
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/SPIRV/spirv-llvm-translator.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2b5f15d871aa39bcc9d2667883dd989afa32a146
7dacb7cdedc9c01e0ce88f1f3766c42ab8f59b7c

0 comments on commit dadda68

Please sign in to comment.