File tree Expand file tree Collapse file tree 6 files changed +4
-17
lines changed
llvm-spirv/tools/llvm-spirv Expand file tree Collapse file tree 6 files changed +4
-17
lines changed Original file line number Diff line number Diff line change 47
47
build_cache_root : " /__w/"
48
48
build_cache_suffix : opaque_pointers
49
49
build_artifact_suffix : opaque_pointers
50
- build_configure_extra_args : " --hip --cuda --enable-esimd-emulator --cmake-opt=-DSPIRV_ENABLE_OPAQUE_POINTERS=TRUE"
50
+ build_configure_extra_args : " --hip --cuda --enable-esimd-emulator --cmake-opt=-DDPCPP_ENABLE_OPAQUE_POINTERS=TRUE --cmake-opt=- DSPIRV_ENABLE_OPAQUE_POINTERS=TRUE"
51
51
52
52
ubuntu2204_opaque_pointers_build_test :
53
53
if : github.repository == 'intel/llvm'
58
58
build_cache_root : " /__w/"
59
59
build_cache_suffix : opaque_pointers
60
60
build_artifact_suffix : opaque_pointers
61
- build_configure_extra_args : " --hip --cuda --enable-esimd-emulator --cmake-opt=-DSPIRV_ENABLE_OPAQUE_POINTERS=TRUE"
61
+ build_configure_extra_args : " --hip --cuda --enable-esimd-emulator --cmake-opt=-DDPCPP_ENABLE_OPAQUE_POINTERS=TRUE --cmake-opt=- DSPIRV_ENABLE_OPAQUE_POINTERS=TRUE"
62
62
build_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
63
63
64
64
windows_default :
Original file line number Diff line number Diff line change @@ -381,12 +381,6 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} )
381
381
# have to be explicity declared in the soruce.
382
382
list ( APPEND flags -Xclang -fdeclare-spirv-builtins )
383
383
384
- if (NOT SPIRV_ENABLE_OPAQUE_POINTERS )
385
- list (APPEND flags "-UENABLE_OPAQUE_POINTERS" )
386
- list (APPEND flags "SHELL:-Xclang -no-opaque-pointers" )
387
- list (APPEND opt_flags "-opaque-pointers=0" )
388
- endif ()
389
-
390
384
# OpenCL 3.0 extensions
391
385
list ( APPEND flags -cl-std=CL3.0 "SHELL:-Xclang" )
392
386
string (CONCAT CL_3_0_EXTENSIONS
Original file line number Diff line number Diff line change @@ -779,11 +779,6 @@ class LibCLCRemangler : public ASTConsumer {
779
779
void Initialize (ASTContext &C) override {
780
780
ASTCtx = &C;
781
781
SMDiagnostic Err;
782
- #if SPIRV_ENABLE_OPAQUE_POINTERS
783
- LLVMCtx.setOpaquePointers (true );
784
- #else
785
- LLVMCtx.setOpaquePointers (false );
786
- #endif
787
782
std::unique_ptr<MemoryBuffer> const Buff = ExitOnErr (
788
783
errorOrToExpected (MemoryBuffer::getFileOrSTDIN (InputIRFilename)));
789
784
std::unique_ptr<llvm::Module> const M =
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ static cl::opt<bool>
154
154
SPIRVToolsDis (" spirv-tools-dis" , cl::init(false ),
155
155
cl::desc(" Emit textual assembly using SPIRV-Tools" ));
156
156
157
- #if SPIRV_ENABLE_OPAQUE_POINTERS
157
+ #if ENABLE_OPAQUE_POINTERS
158
158
constexpr static bool SPIRVOpaquePointersDefault = true ;
159
159
#else
160
160
constexpr static bool SPIRVOpaquePointersDefault = false ;
Original file line number Diff line number Diff line change @@ -890,7 +890,7 @@ if(NOT LLVM_ENABLE_NEW_PASS_MANAGER)
890
890
" no longer supported." )
891
891
endif ()
892
892
893
- set (DPCPP_ENABLE_OPAQUE_POINTERS TRUE CACHE BOOL
893
+ set (DPCPP_ENABLE_OPAQUE_POINTERS FALSE CACHE BOOL
894
894
"Enable opaque pointers by default." )
895
895
if (DPCPP_ENABLE_OPAQUE_POINTERS )
896
896
add_definitions ("-DENABLE_OPAQUE_POINTERS=1" )
Original file line number Diff line number Diff line change @@ -2355,8 +2355,6 @@ Error BitcodeReader::parseTypeTableBody() {
2355
2355
// [pointee type, address space]
2356
2356
if (Record.empty ())
2357
2357
return error (" Invalid pointer record" );
2358
- if (LLVM_UNLIKELY (!Context.hasSetOpaquePointersValue ()))
2359
- Context.setOpaquePointers (false );
2360
2358
unsigned AddressSpace = 0 ;
2361
2359
if (Record.size () == 2 )
2362
2360
AddressSpace = Record[1 ];
You can’t perform that action at this time.
0 commit comments