File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
llvm/lib/Transforms/Instrumentation Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 64
64
#include " llvm/IR/Use.h"
65
65
#include " llvm/IR/Value.h"
66
66
#include " llvm/MC/MCSectionMachO.h"
67
- #include " llvm/SYCLLowerIR/DeviceGlobals.h"
68
67
#include " llvm/Support/Casting.h"
69
68
#include " llvm/Support/CommandLine.h"
70
69
#include " llvm/Support/Debug.h"
@@ -1566,7 +1565,11 @@ static bool isUnsupportedDeviceGlobal(GlobalVariable *G) {
1566
1565
// Non image scope device globals are implemented by device USM, and the
1567
1566
// out-of-bounds check for them will be done by sanitizer USM part. So we
1568
1567
// exclude them here.
1569
- return (!isDeviceGlobalVariable (*G) || !hasDeviceImageScopeProperty (*G));
1568
+ if (!G->hasAttribute (" sycl-device-image-scope" ))
1569
+ return true ;
1570
+
1571
+ Attribute Attr = G->getAttribute (" sycl-device-image-scope" );
1572
+ return (!Attr.isStringAttribute () || Attr.getValueAsString () == " false" );
1570
1573
}
1571
1574
1572
1575
static bool isUnsupportedSPIRAccess (Value *Addr, Instruction *Inst) {
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ add_llvm_component_library(LLVMInstrumentation
39
39
Core
40
40
Demangle
41
41
MC
42
- SYCLLowerIR
43
42
Support
44
43
TargetParser
45
44
TransformUtils
You can’t perform that action at this time.
0 commit comments