Skip to content

Commit 01182fd

Browse files
bokrzesiigcbot
authored andcommitted
[LLVM16] Add --typed-pointer flag which will force typed pointers for LLVM 16 Typed-to-Opaque pointer transition
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 ed9067e commit 01182fd

File tree

486 files changed

+520
-520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+520
-520
lines changed

IGC/Compiler/tests/AddImplicitArgs/rti-typed-pointers.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-add-implicit-args -S %s -o %t.ll
9+
; RUN: igc_opt --typed-pointers -igc-add-implicit-args -S %s -o %t.ll
1010
; RUN: FileCheck %s --input-file=%t.ll
1111

1212
; CHECK: define spir_kernel void @test_rti(i8 addrspace(1)* %globalPointer, i8 addrspace(1)* %localPointer, i16 %stackID, <2 x i8 addrspace(1)*> %inlinedData)

IGC/Compiler/tests/AddressArithmeticSinking/basic-typed-pointers.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-address-arith-sinking -S < %s | FileCheck %s
9+
; RUN: igc_opt --typed-pointers -igc-address-arith-sinking -S < %s | FileCheck %s
1010
; ------------------------------------------------
1111
; AddressArithmeticSinking
1212
; ------------------------------------------------

IGC/Compiler/tests/AdvCodeMotion/hoist-uni-typed-pointers.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 -debugify -adv-codemotion-cm=1 -igc-advcodemotion -check-debugify -S < %s 2>&1 | FileCheck %s
9+
; RUN: igc_opt --typed-pointers -debugify -adv-codemotion-cm=1 -igc-advcodemotion -check-debugify -S < %s 2>&1 | FileCheck %s
1010
; ------------------------------------------------
1111
; AdvCodeMotion
1212
; ------------------------------------------------

IGC/Compiler/tests/AdvCodeMotion/hoist2-typed-pointers.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 -adv-codemotion-cm=1 -igc-advcodemotion -S < %s | FileCheck %s
9+
; RUN: igc_opt --typed-pointers -adv-codemotion-cm=1 -igc-advcodemotion -S < %s | FileCheck %s
1010
; ------------------------------------------------
1111
; AdvCodeMotion
1212
; ------------------------------------------------

IGC/Compiler/tests/AdvMemOpt/basic.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 -debugify -igc-advmemopt -check-debugify -S < %s 2>&1 | FileCheck %s
9+
; RUN: igc_opt --typed-pointers -debugify -igc-advmemopt -check-debugify -S < %s 2>&1 | FileCheck %s
1010
; ------------------------------------------------
1111
; AdvMemOpt
1212
; ------------------------------------------------

IGC/Compiler/tests/AlignmentAnalysis/align_kernels-typed-pointers.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-fix-alignment -S %s -o %t.ll
9+
; RUN: igc_opt --typed-pointers -igc-fix-alignment -S %s -o %t.ll
1010
; RUN: FileCheck %s --input-file=%t.ll
1111

1212
target triple = "igil_32_GEN9"

IGC/Compiler/tests/AlignmentAnalysis/align_memcpy.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-fix-alignment -S < %s 2>&1 | FileCheck %s
9+
; RUN: igc_opt --typed-pointers --igc-fix-alignment -S < %s 2>&1 | FileCheck %s
1010

1111
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v24:32:32-v32:32:32-v48:64:64-v64:64:64-v96:128:128-v128:128:128-v192:256:256-v256:256:256-v512:512:512-v1024:1024:1024-n8:16:32"
1212
target triple = "spir64-unknown-unknown"

IGC/Compiler/tests/AlignmentAnalysis/align_unit-typed-pointers.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-fix-alignment -S %s -o %t.ll
9+
; RUN: igc_opt --typed-pointers -igc-fix-alignment -S %s -o %t.ll
1010
; RUN: FileCheck %s --input-file=%t.ll
1111

1212
target triple = "igil_32_GEN9"

IGC/Compiler/tests/AnnotateUniformAllocas/basic.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 -debugify -annotate_uniform_allocas -check-debugify -S < %s 2>&1 | FileCheck %s
9+
; RUN: igc_opt --typed-pointers -debugify -annotate_uniform_allocas -check-debugify -S < %s 2>&1 | FileCheck %s
1010
; ------------------------------------------------
1111
; AnnotateUniformAllocas
1212
; ------------------------------------------------

IGC/Compiler/tests/AtomicOptPass/float_atomic_emulation-typed-pointers.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 %s -S -o - -opt-atomics-pass | FileCheck %s
9+
; RUN: igc_opt --typed-pointers %s -S -o - -opt-atomics-pass | FileCheck %s
1010

1111
declare i32 @llvm.genx.GenISA.intatomicrawA64.i32.p1i32.p1i32(i32 addrspace(1)*, i32 addrspace(1)*, i32, i32)
1212
declare i32 @llvm.genx.GenISA.icmpxchgatomicrawA64.i32.p1i32.p1i32(i32 addrspace(1)*, i32 addrspace(1)*, i32, i32)

0 commit comments

Comments
 (0)