Skip to content

Commit 50cfccf

Browse files
bokrzesiigcbot
authored andcommitted
[LLVM16] Add --typed-pointer flag which will force typed pointers for LLVM 16 Typed-to-Opaque pointer transition v2
Porting IGC code to LLVM16 * Add --typed-pointer flag which will force typed pointers for LLVM 16 Typed-to-Opaque pointer transition The purpose of it is to allow "typed" LITs to work fine on LLVM 16
1 parent 36a58d7 commit 50cfccf

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

IGC/Compiler/tests/GEPLoopStrengthReduction/common-multiplier.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
;============================ end_copyright_notice =============================
88

99
; REQUIRES: regkeys
10-
; RUN: igc_opt --regkey=EnableGEPLSRUnknownConstantStep=0 --regkey=EnableGEPLSRMulExpr=1 -debugify --igc-gep-loop-strength-reduction -check-debugify -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MUL-ENABLED
11-
; RUN: igc_opt --regkey=EnableGEPLSRUnknownConstantStep=0 --regkey=EnableGEPLSRMulExpr=0 -debugify --igc-gep-loop-strength-reduction -check-debugify -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MUL-DISABLED
10+
; RUN: igc_opt --typed-pointers --regkey=EnableGEPLSRUnknownConstantStep=0 --regkey=EnableGEPLSRMulExpr=1 -debugify --igc-gep-loop-strength-reduction -check-debugify -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MUL-ENABLED
11+
; RUN: igc_opt --typed-pointers --regkey=EnableGEPLSRUnknownConstantStep=0 --regkey=EnableGEPLSRMulExpr=0 -debugify --igc-gep-loop-strength-reduction -check-debugify -S < %s 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-MUL-DISABLED
1212

1313
; Reduced index is expressed with SCEVMulExpr.
1414

IGC/Compiler/tests/PrivateMemoryResolution/opt-enabled.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
; UNSUPPORTED: system-windows
1010
;
1111
; REQUIRES: regkeys
12-
; RUN: igc_opt --regkey EnablePrivMemNewSOATranspose=0 --igc-private-mem-resolution -S %s | FileCheck %s
12+
; RUN: igc_opt --typed-pointers --regkey EnablePrivMemNewSOATranspose=0 --igc-private-mem-resolution -S %s | FileCheck %s
1313
; ------------------------------------------------
1414
; PrivateMemoryResolution
1515
; ------------------------------------------------

IGC/Compiler/tests/ProgramScopeConstantAnalysis/printf-empty-string.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: igc_opt -igc-programscope-constant-analysis -igc-serialize-metadata \
9+
; RUN: igc_opt --typed-pointers -igc-programscope-constant-analysis -igc-serialize-metadata \
1010
; RUN: -S < %s | FileCheck %s
1111
; ------------------------------------------------
1212
; ProgramScopeConstantAnalysis

IGC/Compiler/tests/ProgramScopeConstantAnalysis/printf-null-termination-inside-string.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;
77
;============================ end_copyright_notice =============================
88

9-
; RUN: igc_opt -igc-programscope-constant-analysis -igc-serialize-metadata \
9+
; RUN: igc_opt --typed-pointers -igc-programscope-constant-analysis -igc-serialize-metadata \
1010
; RUN: -S < %s | FileCheck %s
1111
; ------------------------------------------------
1212
; ProgramScopeConstantAnalysis

IGC/Compiler/tests/RegPressureEstimator/ExternalPressureEstimator.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; UNSUPPORTED: system-windows
22
; REQUIRES: regkeys
3-
; RUN: igc_opt --igc-pressure-printer -S --disable-output --regkey=RegPressureVerbocity=1 < %s 2>&1 | FileCheck %s
3+
; RUN: igc_opt --typed-pointers --igc-pressure-printer -S --disable-output --regkey=RegPressureVerbocity=1 < %s 2>&1 | FileCheck %s
44

55
define spir_func void @baz() nounwind {
66
entry:

IGC/Compiler/tests/RegPressureEstimator/RegPressureEstimatorTest.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; UNSUPPORTED: system-windows
22
; REQUIRES: regkeys
3-
; RUN: igc_opt --igc-pressure-printer -S --disable-output --regkey=RegPressureVerbocity=5 < %s 2>&1 | FileCheck %s
3+
; RUN: igc_opt --typed-pointers --igc-pressure-printer -S --disable-output --regkey=RegPressureVerbocity=5 < %s 2>&1 | FileCheck %s
44

55
define void @main() {
66
entry:

IGC/Compiler/tests/RematAddressArithmetic/cloneAddressArithmetic.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
; REQUIRES: regkeys
1010
; UNSUPPORTED: system-windows
11-
; RUN: igc_opt %s -S -o - -igc-clone-address-arithmetic --regkey=RematChainLimit=10 --regkey=RematFlowThreshold=100 --regkey=RematRPELimit=0 --dce | FileCheck %s
11+
; RUN: igc_opt --typed-pointers %s -S -o - -igc-clone-address-arithmetic --regkey=RematChainLimit=10 --regkey=RematFlowThreshold=100 --regkey=RematRPELimit=0 --dce | FileCheck %s
1212

1313
define spir_kernel void @main(double addrspace(1)* %base, i64 %offset, i64 %I, i64 %J) {
1414
; CHECK: define spir_kernel void @main(double addrspace(1)* [[BASE:%.*]], i64 [[OFFSET:%.*]], i64 %I, i64 %J)

0 commit comments

Comments
 (0)