File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
test/SYCLLowerIR/CompileTimePropertiesPass Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -525,9 +525,10 @@ void CompileTimePropertiesPass::parseAlignmentAndApply(
525
525
// Get the global variable with the annotation string.
526
526
const GlobalVariable *AnnotStrArgGV = nullptr ;
527
527
const Value *IntrAnnotStringArg = IntrInst->getArgOperand (1 );
528
- if (auto *GEP = dyn_cast<GEPOperator>(IntrAnnotStringArg))
529
- if (auto *C = dyn_cast<Constant>(GEP->getOperand (0 )))
530
- AnnotStrArgGV = dyn_cast<GlobalVariable>(C);
528
+ if (IntrAnnotStringArg->getType ()->isOpaquePointerTy ())
529
+ AnnotStrArgGV = dyn_cast<GlobalVariable>(IntrAnnotStringArg);
530
+ else if (auto *GEP = dyn_cast<GEPOperator>(IntrAnnotStringArg))
531
+ AnnotStrArgGV = dyn_cast<GlobalVariable>(GEP->getOperand (0 ));
531
532
if (!AnnotStrArgGV)
532
533
return ;
533
534
Original file line number Diff line number Diff line change 3
3
;
4
4
; Tests the translation of "sycl-alignment" to alignment attributes on load/store
5
5
6
- ; FIXME: Alignment properties not preserved after testcase was opaquified
7
- ; REQUIRES: TEMPORARY_DISABLED
8
-
9
6
target triple = "spir64_fpga-unknown-unknown"
10
7
11
8
%struct.MyIP = type { %class.ann_ptr }
You can’t perform that action at this time.
0 commit comments