diff options
author | Nikita Popov <npopov@redhat.com> | 2022-05-31 12:58:35 +0300 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-06-02 10:40:56 +0300 |
commit | 41d5033eb162cb92b684855166cabfa3983b74c6 (patch) | |
tree | 96632c32feb2ba0d3fefe05c6ad53fff1948e202 /polly | |
parent | 6333e5dde9872ae56d7979432a76f83cf7ac6820 (diff) |
[IR] Enable opaque pointers by default
This enabled opaque pointers by default in LLVM. The effect of this
is twofold:
* If IR that contains *neither* explicit ptr nor %T* types is passed
to tools, we will now use opaque pointer mode, unless
-opaque-pointers=0 has been explicitly passed.
* Users of LLVM as a library will now default to opaque pointers.
It is possible to opt-out by calling setOpaquePointers(false) on
LLVMContext.
A cmake option to toggle this default will not be provided. Frontends
or other tools that want to (temporarily) keep using typed pointers
should disable opaque pointers via LLVMContext.
Differential Revision: https://reviews.llvm.org/D126689
Diffstat (limited to 'polly')
5 files changed, 8 insertions, 8 deletions
diff --git a/polly/test/CodeGen/non-affine-exit-node-dominance.ll b/polly/test/CodeGen/non-affine-exit-node-dominance.ll index 077dd2de5007..af19d2420e3e 100644 --- a/polly/test/CodeGen/non-affine-exit-node-dominance.ll +++ b/polly/test/CodeGen/non-affine-exit-node-dominance.ll @@ -11,7 +11,7 @@ ; CHECK: %p_escaping = select i1 undef, i32 undef, i32 undef ; ; CHECK-LABEL: polly.stmt.polly.merge_new_and_old.exit: -; CHECK: store i32 %p_escaping, i32* %escaping.s2a +; CHECK: store i32 %p_escaping, ptr %escaping.s2a define i32 @func() { entry: diff --git a/polly/test/CodeGen/non-affine-region-implicit-store.ll b/polly/test/CodeGen/non-affine-region-implicit-store.ll index e31b872a7b81..e89197e24852 100644 --- a/polly/test/CodeGen/non-affine-region-implicit-store.ll +++ b/polly/test/CodeGen/non-affine-region-implicit-store.ll @@ -10,10 +10,10 @@ ; This checks that the stored value is indeed from the generated code. ; ; CHECK-LABEL: polly.stmt.do.body.entry: -; CHECK: a.phiops.reload = load i32, i32* %a.phiops +; CHECK: a.phiops.reload = load i32, ptr %a.phiops ; ; CHECK-LABEL: polly.stmt.polly.merge_new_and_old.exit: -; CHECK: store i32 %polly.a, i32* %a.s2a +; CHECK: store i32 %polly.a, ptr %a.s2a define void @func() { entry: diff --git a/polly/test/CodeGen/out-of-scop-phi-node-use.ll b/polly/test/CodeGen/out-of-scop-phi-node-use.ll index 5f08bbc98837..54e909ecf378 100644 --- a/polly/test/CodeGen/out-of-scop-phi-node-use.ll +++ b/polly/test/CodeGen/out-of-scop-phi-node-use.ll @@ -10,7 +10,7 @@ target triple = "x86_64-unknown-linux-gnu" ; CHECK-NEXT: %_s.sroa.343.0.ph5161118 = phi i32 [ undef, %for.cond ], [ %_s.sroa.343.0.ph5161118.ph.merge, %polly.merge_new_and_old ] ; CHECK-LABEL: polly.exiting: -; CHECK-NEXT: %_s.sroa.343.0.ph5161118.ph.final_reload = load i32, i32* %_s.sroa.343.0.ph5161118.s2a +; CHECK-NEXT: %_s.sroa.343.0.ph5161118.ph.final_reload = load i32, ptr %_s.sroa.343.0.ph5161118.s2a ; Function Attrs: nounwind uwtable define void @lzmaDecode() #0 { diff --git a/polly/test/CodeGen/synthesizable_phi_write_after_loop.ll b/polly/test/CodeGen/synthesizable_phi_write_after_loop.ll index 9cd72a82c62b..6a8d3b94d1cc 100644 --- a/polly/test/CodeGen/synthesizable_phi_write_after_loop.ll +++ b/polly/test/CodeGen/synthesizable_phi_write_after_loop.ll @@ -11,7 +11,7 @@ ; The first is currently generated by Polly and tested here. ; CHECK: polly.stmt.next: -; CHECK-NEXT: store i32 2, i32* %phi.phiops +; CHECK-NEXT: store i32 2, ptr %phi.phiops ; CHECK-NEXT: br label %polly.stmt.join define i32 @func() { diff --git a/polly/test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll b/polly/test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll index 8bd073daf941..394173bdc986 100644 --- a/polly/test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll +++ b/polly/test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll @@ -10,17 +10,17 @@ ; CHECK: %newval.merge = phi float [ %newval.final_reload, %polly.exiting ], [ %newval, %subregion_exit.region_exiting ] ; ; CHECK-LABEL: polly.start: -; CHECK: store float %loop_carried.ph, float* %loop_carried.phiops +; CHECK: store float %loop_carried.ph, ptr %loop_carried.phiops ; ; CHECK-LABEL: polly.stmt.subregion_entry.entry: -; CHECK: %loop_carried.phiops.reload = load float, float* %loop_carried.phiops +; CHECK: %loop_carried.phiops.reload = load float, ptr %loop_carried.phiops ; ; CHECK-LABEL: polly.stmt.subregion_entry: ; CHECK: %polly.loop_carried = phi float [ %loop_carried.phiops.reload, %polly.stmt.subregion_entry.entry ] ; CHECK: %p_newval = fadd float %polly.loop_carried, 1.000000e+00 ; ; CHECK-LABEL: polly.stmt.polly.merge_new_and_old.exit: -; CHECK: %newval.final_reload = load float, float* %newval.s2a +; CHECK: %newval.final_reload = load float, ptr %newval.s2a define void @func() { entry: |