From 2e0bb60b32c5181c319820767a62dd77acc0bd27 Mon Sep 17 00:00:00 2001 From: TB Schardl Date: Sat, 24 Jun 2023 20:19:12 +0000 Subject: [PATCH] [Tapir] Use internal linkage for generated helper functions, to ensure that they have symbols that tools can use. Fix issue OpenCilk/opencilk-project#172. --- llvm/lib/Transforms/Tapir/CilkABI.cpp | 12 +++++------ llvm/lib/Transforms/Tapir/CilkRTSCilkFor.cpp | 4 ++-- llvm/lib/Transforms/Tapir/LoopSpawningTI.cpp | 4 ++-- .../loop-spawning-move-instrumentation.ll | 4 ++-- .../Transforms/Tapir/csi-tapir-lowering.ll | 8 ++++---- .../Transforms/Tapir/dac-loopspawning-ivs.ll | 2 +- .../Tapir/dac-loopspawning-simple.ll | 2 +- .../test/Transforms/Tapir/equal-tripcounts.ll | 2 +- .../Tapir/exception-loop-spawning.ll | 8 ++++---- .../Transforms/Tapir/exception-lowering.ll | 16 +++++++-------- ...exception-spawn-in-parfor-loop-spawning.ll | 8 ++++---- .../Tapir/inclusive-range-tapir-loop.ll | 4 ++-- llvm/test/Transforms/Tapir/iv-canonicalize.ll | 2 +- .../Tapir/loop-control-uses-parameter.ll | 2 +- ...oop-spawning-iv-tripcount-type-mismatch.ll | 2 +- llvm/test/Transforms/Tapir/looplimit.ll | 2 +- llvm/test/Transforms/Tapir/loops-complex.ll | 20 +++++++++---------- .../Tapir/loops-with-lcssa-lpads.ll | 4 ++-- llvm/test/Transforms/Tapir/lower-eh-unlink.ll | 4 ++-- .../Transforms/Tapir/lower-static-allocas.ll | 6 +++--- ...owering-nested-detaches-with-exceptions.ll | 4 ++-- .../Tapir/lowering-nested-detaches.ll | 8 ++++---- .../nested-loop-spawning-with-exceptions.ll | 4 ++-- .../Transforms/Tapir/nested-loop-spawning.ll | 4 ++-- llvm/test/Transforms/Tapir/returned-param.ll | 2 +- llvm/test/Transforms/Tapir/sret-param.ll | 4 ++-- .../Tapir/tapir-loop-metadata-valnotdom.ll | 2 +- .../Transforms/Tapir/tapir-loop-metadata.ll | 2 +- 28 files changed, 73 insertions(+), 73 deletions(-) diff --git a/llvm/lib/Transforms/Tapir/CilkABI.cpp b/llvm/lib/Transforms/Tapir/CilkABI.cpp index f613df525bb9..f2eba23ebcdb 100644 --- a/llvm/lib/Transforms/Tapir/CilkABI.cpp +++ b/llvm/lib/Transforms/Tapir/CilkABI.cpp @@ -107,8 +107,8 @@ void CilkABI::addHelperAttributes(Function &Helper) { } // Note that the address of the helper is unimportant. Helper.setUnnamedAddr(GlobalValue::UnnamedAddr::Global); - // The helper is private to this module. - Helper.setLinkage(GlobalValue::PrivateLinkage); + // The helper is internal to this module. + Helper.setLinkage(GlobalValue::InternalLinkage); } CilkABI::CilkABI(Module &M) : TapirTarget(M) {} @@ -839,7 +839,7 @@ Function *CilkABI::GetCilkSyncNothrowFn(bool instrument) { B.CreateRetVoid(); } - Fn->setLinkage(Function::PrivateLinkage); + Fn->setLinkage(Function::InternalLinkage); Fn->setDoesNotThrow(); if (!DebugABICalls) Fn->addFnAttr(Attribute::AlwaysInline); @@ -994,7 +994,7 @@ Function *CilkABI::GetCilkCatchExceptionFn(Type *ExnTy) { B.CreateRet(ExnPN); } - Fn->setLinkage(Function::PrivateLinkage); + Fn->setLinkage(Function::InternalLinkage); if (!DebugABICalls) Fn->addFnAttr(Attribute::AlwaysInline); Fn->addFnAttr(Attribute::ReturnsTwice); @@ -1699,8 +1699,8 @@ void CilkABI::processSubTaskCall(TaskOutlineInfo &TOI, DominatorTree &DT) { } // Note that the address of the helper is unimportant. SpawnHelper->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); - // The helper is private to this module. - SpawnHelper->setLinkage(GlobalValue::PrivateLinkage); + // The helper is internal to this module. + SpawnHelper->setLinkage(GlobalValue::InternalLinkage); // Add alignment assumptions to arguments of helper, based on alignment of // values in old function. diff --git a/llvm/lib/Transforms/Tapir/CilkRTSCilkFor.cpp b/llvm/lib/Transforms/Tapir/CilkRTSCilkFor.cpp index 0e32d4a4f98e..fc9b4da4dd8d 100644 --- a/llvm/lib/Transforms/Tapir/CilkRTSCilkFor.cpp +++ b/llvm/lib/Transforms/Tapir/CilkRTSCilkFor.cpp @@ -254,8 +254,8 @@ void RuntimeCilkFor::processOutlinedLoopCall(TapirLoopInfo &TL, SpawnHelper->setCallingConv(CallingConv::Fast); // Note that the address of the helper is unimportant. SpawnHelper->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); - // The helper is private to this module. - SpawnHelper->setLinkage(GlobalValue::PrivateLinkage); + // The helper is internal to this module. + SpawnHelper->setLinkage(GlobalValue::InternalLinkage); // Add alignment assumptions to arguments of helper, based on alignment of // values in old function. diff --git a/llvm/lib/Transforms/Tapir/LoopSpawningTI.cpp b/llvm/lib/Transforms/Tapir/LoopSpawningTI.cpp index 4a1d47350ba4..3a0f916020df 100644 --- a/llvm/lib/Transforms/Tapir/LoopSpawningTI.cpp +++ b/llvm/lib/Transforms/Tapir/LoopSpawningTI.cpp @@ -170,8 +170,8 @@ void LoopOutlineProcessor::postProcessOutline(TapirLoopInfo &TL, Helper->setCallingConv(CallingConv::Fast); // Note that the address of the helper is unimportant. Helper->setUnnamedAddr(GlobalValue::UnnamedAddr::Global); - // The helper is private to this module. - Helper->setLinkage(GlobalValue::PrivateLinkage); + // The helper is internal to this module. + Helper->setLinkage(GlobalValue::InternalLinkage); } void LoopOutlineProcessor::addSyncToOutlineReturns(TapirLoopInfo &TL, diff --git a/llvm/test/Transforms/Tapir/CilkSanitizer/loop-spawning-move-instrumentation.ll b/llvm/test/Transforms/Tapir/CilkSanitizer/loop-spawning-move-instrumentation.ll index 549483e9aa28..76098b41fe81 100644 --- a/llvm/test/Transforms/Tapir/CilkSanitizer/loop-spawning-move-instrumentation.ll +++ b/llvm/test/Transforms/Tapir/CilkSanitizer/loop-spawning-move-instrumentation.ll @@ -420,7 +420,7 @@ cleanup: ; preds = %pfor.cond.cleanup, ret i64 %sum.0.load21 } -; CHECK-LABEL: define private fastcc void @_Z11accum_wrongPKll.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z11accum_wrongPKll.outline_pfor.cond.ls1( ; CHECK: call void @__csan_detach( ; CHECK: call void @__csan_task( @@ -637,7 +637,7 @@ csi.cleanup: ; preds = %entry resume { i8*, i32 } %csi.cleanup.lpad } -; CHECK-LABEL: define private fastcc void @_Z13accum_reducerPKll.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z13accum_reducerPKll.outline_pfor.cond.ls1( ; CHECK: call void @__csan_detach( ; CHECK: call void @__csan_task( diff --git a/llvm/test/Transforms/Tapir/csi-tapir-lowering.ll b/llvm/test/Transforms/Tapir/csi-tapir-lowering.ll index a255e299baff..af4fe3c53622 100644 --- a/llvm/test/Transforms/Tapir/csi-tapir-lowering.ll +++ b/llvm/test/Transforms/Tapir/csi-tapir-lowering.ll @@ -3326,7 +3326,7 @@ if.then146.us.4: ; preds = %if.end141.us.4 ; CHECK: define void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs( ; CHECK: csi.cleanup: -; CHECK-LABEL: define private fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach236.ls3( +; CHECK-LABEL: define internal fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach236.ls3( ; CHECK: unnamed_addr #[[ATTRIBUTE:[0-9]+]] ; CHECK: detach within %[[SYNCREG:.+]], label %[[DETACHED:.+]], label %[[CONTINUE:.+]] ; CHECK: [[DETACHED]]: @@ -3335,7 +3335,7 @@ if.then146.us.4: ; preds = %if.end141.us.4 ; CHECK: call void @__csi_task_exit( ; CHECK: reattach within %[[SYNCREG]], label %[[CONTINUE]] -; CHECK-LABEL: define private fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach216.ls2( +; CHECK-LABEL: define internal fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach216.ls2( ; CHECK: unnamed_addr #[[ATTRIBUTE]] ; CHECK: detach within %[[SYNCREG:.+]], label %[[DETACHED:.+]], label %[[CONTINUE:.+]] ; CHECK: [[DETACHED]]: @@ -3344,7 +3344,7 @@ if.then146.us.4: ; preds = %if.end141.us.4 ; CHECK: call void @__csi_task_exit( ; CHECK: reattach within %[[SYNCREG]], label %[[CONTINUE]] -; CHECK-LABEL: define private fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach64.ls2( +; CHECK-LABEL: define internal fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach64.ls2( ; CHECK: unnamed_addr #[[ATTRIBUTE]] ; CHECK: detach within %[[SYNCREG:.+]], label %[[DETACHED:.+]], label %[[CONTINUE:.+]] ; CHECK: [[DETACHED]]: @@ -3353,7 +3353,7 @@ if.then146.us.4: ; preds = %if.end141.us.4 ; CHECK: call void @__csi_task_exit( ; CHECK: reattach within %[[SYNCREG]], label %[[CONTINUE]] -; CHECK-LABEL: define private fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach.us.ls2( +; CHECK-LABEL: define internal fastcc void @_ZN3tfk6Render23render_stack_with_patchEPNS_5StackESt4pairIN2cv6Point_IfEES6_ENS_10ResolutionESs.outline_pfor.detach.us.ls2( ; CHECK: unnamed_addr #[[ATTRIBUTE2:[0-9]+]] ; CHECK: detach within %[[SYNCREG:.+]], label %[[DETACHED:.+]], label %[[CONTINUE:.+]] ; CHECK: [[DETACHED]]: diff --git a/llvm/test/Transforms/Tapir/dac-loopspawning-ivs.ll b/llvm/test/Transforms/Tapir/dac-loopspawning-ivs.ll index 686030388bc9..1b530740486d 100644 --- a/llvm/test/Transforms/Tapir/dac-loopspawning-ivs.ll +++ b/llvm/test/Transforms/Tapir/dac-loopspawning-ivs.ll @@ -472,7 +472,7 @@ pfor.detach122: ; preds = %pfor.inc159, %invok %67 = mul i64 %63, %__begin113.0663 %scevgep = getelementptr i8, i8* %call.i575, i64 %67 detach within %syncreg111, label %pfor.body126, label %pfor.inc159 unwind label %lpad161.loopexit -; CHECK: define private fastcc void @_ZN4pbbs12sample_sort_Im8sequenceIlESt4lessIlEEES1_INT0_1TEES5_RKT1_b.outline_pfor.detach122.ls1(i64 %__begin113.0663.start.ls1, +; CHECK: define internal fastcc void @_ZN4pbbs12sample_sort_Im8sequenceIlESt4lessIlEEES1_INT0_1TEES5_RKT1_b.outline_pfor.detach122.ls1(i64 %__begin113.0663.start.ls1, ; CHECK: pfor.detach122.ls1: ; CHECK-NOT: indvars.iv = phi ; CHECK: %__begin113.0663.ls1 = phi i64 diff --git a/llvm/test/Transforms/Tapir/dac-loopspawning-simple.ll b/llvm/test/Transforms/Tapir/dac-loopspawning-simple.ll index 9b2bdf1cb934..9d7c2d36005f 100644 --- a/llvm/test/Transforms/Tapir/dac-loopspawning-simple.ll +++ b/llvm/test/Transforms/Tapir/dac-loopspawning-simple.ll @@ -37,7 +37,7 @@ pfor.detach: ; preds = %pfor.detach.prehead ; CHECK-NOT: phi ; CHECK: detach -; CHECK: define private fastcc void @[[OUTLINED]]( +; CHECK: define internal fastcc void @[[OUTLINED]]( ; CHECK: [[TYPE]] [[START:%[a-zA-Z0-9._]+]] ; CHECK: [[TYPE]] [[END:%[a-zA-Z0-9._]+]] ; CHECK: [[TYPE]] [[GRAIN:%[a-zA-Z0-9._]+]] diff --git a/llvm/test/Transforms/Tapir/equal-tripcounts.ll b/llvm/test/Transforms/Tapir/equal-tripcounts.ll index 2bc6d571a770..fa6b6d1fc3cb 100644 --- a/llvm/test/Transforms/Tapir/equal-tripcounts.ll +++ b/llvm/test/Transforms/Tapir/equal-tripcounts.ll @@ -242,7 +242,7 @@ for.end123: ; preds = %for.inc121 ret void } -; CHECK: define private fastcc void @test_correctness.outline_pfor.detach.us.i.ls2(i64 %indvars.iv.i.start.ls2, i64 %end.ls2 +; CHECK: define internal fastcc void @test_correctness.outline_pfor.detach.us.i.ls2(i64 %indvars.iv.i.start.ls2, i64 %end.ls2 ; CHECK: pfor.inc.us.i.ls2: ; CHECK: %exitcond.i.ls2 = icmp eq i64 %indvars.iv.next.i.ls2, %end.ls2 diff --git a/llvm/test/Transforms/Tapir/exception-loop-spawning.ll b/llvm/test/Transforms/Tapir/exception-loop-spawning.ll index cd8d8ede3467..ff3cdd006dcf 100644 --- a/llvm/test/Transforms/Tapir/exception-loop-spawning.ll +++ b/llvm/test/Transforms/Tapir/exception-loop-spawning.ll @@ -446,7 +446,7 @@ unreachable: ; preds = %lpad.body unreachable } -; CHECK-LABEL: define private fastcc void @_Z19parallelfor_nocatchi.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z19parallelfor_nocatchi.outline_pfor.cond.ls1( ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %[[RECURDET:.+]], label %[[RECURCONT:.+]] @@ -466,7 +466,7 @@ unreachable: ; preds = %lpad.body ; CHECK-NOT: detached.rethrow -; CHECK-LABEL: define private fastcc void @_Z20parallelfor_tryblocki.outline_pfor.cond17.ls1( +; CHECK-LABEL: define internal fastcc void @_Z20parallelfor_tryblocki.outline_pfor.cond17.ls1( ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %[[RECURDET:.+]], label %[[RECURCONT:.+]] unwind label %[[RECURUW:.+]] @@ -502,13 +502,13 @@ unreachable: ; preds = %lpad.body ; CHECK-NEXT: to label %{{.+}} unwind label %[[RECURUW]] -; CHECK-LABEL: define private fastcc void @_Z20parallelfor_tryblocki.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z20parallelfor_tryblocki.outline_pfor.cond.ls1( ; CHECK-NOT: invoke ; CHECK-NOT: resume ; CHECK-NOT: detached.rethrow -; CHECK-LABEL: define private fastcc void @_Z27parallelfor_tryblock_inlinei.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z27parallelfor_tryblock_inlinei.outline_pfor.cond.ls1( ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %[[RECURDET:.+]], label %[[RECURCONT:.+]] unwind label %[[RECURUW:.+]] diff --git a/llvm/test/Transforms/Tapir/exception-lowering.ll b/llvm/test/Transforms/Tapir/exception-lowering.ll index a1cb09407d95..b568d93e5be6 100644 --- a/llvm/test/Transforms/Tapir/exception-lowering.ll +++ b/llvm/test/Transforms/Tapir/exception-lowering.ll @@ -672,7 +672,7 @@ unreachable: ; preds = %lpad, %lpad5 ; Function Attrs: nounwind declare void @llvm.assume(i1) #10 -; CHECK-LABEL: define private fastcc void @_Z14spawn_tryblocki.outline_entry.tf.otd1(i32 +; CHECK-LABEL: define internal fastcc void @_Z14spawn_tryblocki.outline_entry.tf.otd1(i32 ; CHECK: %[[ARG:[a-zA-Z0-9._]+]]) ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame @@ -685,7 +685,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: br label %{{.+}} -; CHECK-LABEL: define private fastcc void @_Z14spawn_tryblocki.outline_det.cont.tf.otd1() +; CHECK-LABEL: define internal fastcc void @_Z14spawn_tryblocki.outline_det.cont.tf.otd1() ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame ; CHECK: call void @__cilkrts_enter_frame_fast_1(ptr %[[CILKSF]]) @@ -722,7 +722,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: resume { ptr, i32 } %[[LPADVAL]] -; CHECK-LABEL: define private fastcc void @_Z14spawn_tryblocki.outline_det.cont11.tf.otd1(i32 +; CHECK-LABEL: define internal fastcc void @_Z14spawn_tryblocki.outline_det.cont11.tf.otd1(i32 ; CHECK: %[[ARG:[a-zA-Z0-9._]+]]) ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame @@ -735,7 +735,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: br label %{{.+}} -; CHECK-LABEL: define private fastcc void @_Z18spawn_throw_inlinei.outline_entry.tf.otd1() +; CHECK-LABEL: define internal fastcc void @_Z18spawn_throw_inlinei.outline_entry.tf.otd1() ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame ; CHECK: call void @__cilkrts_enter_frame_fast_1(ptr %[[CILKSF]]) @@ -763,7 +763,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: unreachable -; CHECK-LABEL: define private fastcc void @_Z22spawn_block_destructori.outline_entry.tf.otd1( +; CHECK-LABEL: define internal fastcc void @_Z22spawn_block_destructori.outline_entry.tf.otd1( ; CHECK: %[[ARG:[a-zA-Z0-9._]+]]) ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame @@ -789,7 +789,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: resume { ptr, i32 } %[[LPADVAL]] -; CHECK-LABEL: define private fastcc void @_Z21spawn_decl_destructori.outline_entry.tf.otd1() +; CHECK-LABEL: define internal fastcc void @_Z21spawn_decl_destructori.outline_entry.tf.otd1() ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame ; CHECK: %[[REFTMP:.+]] = alloca %class.Foo @@ -812,7 +812,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: unreachable -; CHECK-LABEL: define private fastcc void @_Z21spawn_stmt_destructori.outline_entry.tf.otd1() +; CHECK-LABEL: define internal fastcc void @_Z21spawn_stmt_destructori.outline_entry.tf.otd1() ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame ; CHECK: %[[REFTMP:.+]] = alloca %class.Foo @@ -835,7 +835,7 @@ declare void @llvm.assume(i1) #10 ; CHECK-NEXT: unreachable -; CHECK-LABEL: define private fastcc void @_Z16spawn_tf_nocatchi.outline_entry.tf.otd1() +; CHECK-LABEL: define internal fastcc void @_Z16spawn_tf_nocatchi.outline_entry.tf.otd1() ; CHECK: %[[CILKSF:.+]] = alloca %struct.__cilkrts_stack_frame ; CHECK: call void @__cilkrts_enter_frame_fast_1(ptr %[[CILKSF]]) diff --git a/llvm/test/Transforms/Tapir/exception-spawn-in-parfor-loop-spawning.ll b/llvm/test/Transforms/Tapir/exception-spawn-in-parfor-loop-spawning.ll index 7f5bdf82e8dc..94dd7fe5edad 100644 --- a/llvm/test/Transforms/Tapir/exception-spawn-in-parfor-loop-spawning.ll +++ b/llvm/test/Transforms/Tapir/exception-spawn-in-parfor-loop-spawning.ll @@ -616,7 +616,7 @@ declare void @llvm.assume(i1) #6 ; Function Attrs: nounwind readnone speculatable declare i32 @llvm.tapir.loop.grainsize.i32(i32) #7 -; CHECK-LABEL: define private fastcc void @_Z15parfor_trycatchi.outline_pfor.cond48.ls1( +; CHECK-LABEL: define internal fastcc void @_Z15parfor_trycatchi.outline_pfor.cond48.ls1( ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: %[[DACSYNCREG:.+]] = tail call token @llvm.syncregion.start() @@ -660,7 +660,7 @@ declare i32 @llvm.tapir.loop.grainsize.i32(i32) #7 ; CHECK-NEXT: unreachable -; CHECK-LABEL: define private fastcc void @_Z15parfor_trycatchi.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z15parfor_trycatchi.outline_pfor.cond.ls1( ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: %[[DACSYNCREG:.+]] = tail call token @llvm.syncregion.start() @@ -704,7 +704,7 @@ declare i32 @llvm.tapir.loop.grainsize.i32(i32) #7 ; CHECK-NEXT: unreachable -; CHECK-LABEL: define private fastcc void @_Z27parfor_trycatch_destructorsi.outline_pfor.cond70.ls1( +; CHECK-LABEL: define internal fastcc void @_Z27parfor_trycatch_destructorsi.outline_pfor.cond70.ls1( ; CHECK: %[[SYNCREG:.+]] = call token @llvm.syncregion.start() ; CHECK: %[[DACSYNCREG:.+]] = {{.*}}call token @llvm.syncregion.start() @@ -783,7 +783,7 @@ declare i32 @llvm.tapir.loop.grainsize.i32(i32) #7 ; CHECK-NEXT: to label %[[UNREACHABLE2:.+]] unwind label %[[DACDU]] -; CHECK-LABEL: define private fastcc void @_Z27parfor_trycatch_destructorsi.outline_pfor.cond.ls1( +; CHECK-LABEL: define internal fastcc void @_Z27parfor_trycatch_destructorsi.outline_pfor.cond.ls1( ; CHECK: %[[SYNCREG:.+]] = call token @llvm.syncregion.start() ; CHECK: %[[DACSYNCREG:.+]] = {{.*}}call token @llvm.syncregion.start() diff --git a/llvm/test/Transforms/Tapir/inclusive-range-tapir-loop.ll b/llvm/test/Transforms/Tapir/inclusive-range-tapir-loop.ll index 05fb7822ccfd..778598776f27 100644 --- a/llvm/test/Transforms/Tapir/inclusive-range-tapir-loop.ll +++ b/llvm/test/Transforms/Tapir/inclusive-range-tapir-loop.ll @@ -1334,14 +1334,14 @@ for.inc.i258.3: ; preds = %if.then3.i254.3, %f br i1 %niter532.ncmp.3, label %invoke.cont86.loopexit.unr-lcssa, label %for.body.i251 } -; CHECK-LABEL: define private fastcc void @_ZN8sequence4packIllN5utils9identityFIlEEEE4_seqIT_EPS5_PbT0_S9_T1_.outline_pfor.detach64.ls1(i64 %__begin55.0288.start.ls1, +; CHECK-LABEL: define internal fastcc void @_ZN8sequence4packIllN5utils9identityFIlEEEE4_seqIT_EPS5_PbT0_S9_T1_.outline_pfor.detach64.ls1(i64 %__begin55.0288.start.ls1, ; CHECK: %__begin55.0288.ls1.dac = phi i64 ; CHECK: [ %__begin55.0288.start.ls1, %pfor.detach64.lr.ph.ls1 ] ; CHECK: [ %[[NEXTITERVAR:.+]], %[[RECURCONT:.+]] ] ; CHECK: [[RECURCONT]]: ; CHECK: %[[NEXTITERVAR]] = add nuw nsw i64 {{.+}}, 1 -; CHECK-LABEL: define private fastcc void @_ZN8sequence4packIllN5utils9identityFIlEEEE4_seqIT_EPS5_PbT0_S9_T1_.outline_pfor.detach.ls1(i64 %__begin.0290.start.ls1 +; CHECK-LABEL: define internal fastcc void @_ZN8sequence4packIllN5utils9identityFIlEEEE4_seqIT_EPS5_PbT0_S9_T1_.outline_pfor.detach.ls1(i64 %__begin.0290.start.ls1 ; CHECK: %__begin.0290.ls1.dac = phi i64 ; CHECK: [ %__begin.0290.start.ls1, %pfor.detach.lr.ph.ls1 ] ; CHECK: [ %[[NEXTITERVAR:.+]], %[[RECURCONT:.+]] ] diff --git a/llvm/test/Transforms/Tapir/iv-canonicalize.ll b/llvm/test/Transforms/Tapir/iv-canonicalize.ll index 2cfab7cdad86..8bfe9c961753 100644 --- a/llvm/test/Transforms/Tapir/iv-canonicalize.ll +++ b/llvm/test/Transforms/Tapir/iv-canonicalize.ll @@ -70,7 +70,7 @@ exit: ; preds = %L27 ret void } -; LS: define private fastcc void @julia_mynorm.outline_L12.ls1(i64 %indvar.start.ls1, i64 %end.ls1, i64 %grainsize.ls1) +; LS: define internal fastcc void @julia_mynorm.outline_L12.ls1(i64 %indvar.start.ls1, i64 %end.ls1, i64 %grainsize.ls1) declare %jl_value_t*** @julia.ptls_states() diff --git a/llvm/test/Transforms/Tapir/loop-control-uses-parameter.ll b/llvm/test/Transforms/Tapir/loop-control-uses-parameter.ll index 1293a4e7d7e2..4c44ddf4b42c 100644 --- a/llvm/test/Transforms/Tapir/loop-control-uses-parameter.ll +++ b/llvm/test/Transforms/Tapir/loop-control-uses-parameter.ll @@ -364,7 +364,7 @@ eh.resume: ; preds = %lpad43, %lpad23 resume { i8*, i32 } %lpad.val59 } -; CHECK: define private fastcc void @_ZN4pbbs9transposeIjjE6transREmmmmmm.outline_pfor.detach.ls1( +; CHECK: define internal fastcc void @_ZN4pbbs9transposeIjjE6transREmmmmmm.outline_pfor.detach.ls1( ; CHECK: i64 %rStart.ls1 ; CHECK: ) ; CHECK: call fastcc void @_ZN4pbbs9transposeIjjE6transREmmmmmm.outline_pfor.detach.ls1( diff --git a/llvm/test/Transforms/Tapir/loop-spawning-iv-tripcount-type-mismatch.ll b/llvm/test/Transforms/Tapir/loop-spawning-iv-tripcount-type-mismatch.ll index c8f29d6f5277..ff3e273175ae 100644 --- a/llvm/test/Transforms/Tapir/loop-spawning-iv-tripcount-type-mismatch.ll +++ b/llvm/test/Transforms/Tapir/loop-spawning-iv-tripcount-type-mismatch.ll @@ -207,7 +207,7 @@ pfor.cond.cleanup: ; preds = %pfor.inc unreachable } -; CHECK-LABEL: define private fastcc void @_ZL9conj_gradPiS_PdS0_S0_S0_S0_S0_S0_S0_.outline_pfor.cond.ls1(i64 %indvars.iv376.start.ls1, +; CHECK-LABEL: define internal fastcc void @_ZL9conj_gradPiS_PdS0_S0_S0_S0_S0_S0_S0_.outline_pfor.cond.ls1(i64 %indvars.iv376.start.ls1, ; CHECK: i32 %[[END:.+]], i32 %[[GRAINSIZE:.+]], ; CHECK: _Z10initializePdS_S_S_S_mm.exit.ls1: diff --git a/llvm/test/Transforms/Tapir/looplimit.ll b/llvm/test/Transforms/Tapir/looplimit.ll index e8a72c4ca0de..e9da42981b34 100644 --- a/llvm/test/Transforms/Tapir/looplimit.ll +++ b/llvm/test/Transforms/Tapir/looplimit.ll @@ -29,7 +29,7 @@ pfor.cond.cleanup: ; preds = %pfor.inc, %entry pfor.end.continue: ; preds = %pfor.cond.cleanup ret void -; CHECK: define private fastcc void @[[OUTLINED]]( +; CHECK: define internal fastcc void @[[OUTLINED]]( ; CHECK: [[TYPE]] [[START:%[a-zA-Z0-9._]+]] ; CHECK: [[TYPE]] [[END:%[a-zA-Z0-9._]+]] ; CHECK: [[TYPE]] [[GRAIN:%[a-zA-Z0-9._]+]] diff --git a/llvm/test/Transforms/Tapir/loops-complex.ll b/llvm/test/Transforms/Tapir/loops-complex.ll index 201255e2bd8d..b78fa7972405 100644 --- a/llvm/test/Transforms/Tapir/loops-complex.ll +++ b/llvm/test/Transforms/Tapir/loops-complex.ll @@ -1754,18 +1754,18 @@ declare double @llvm.log2.f64(double) #8 ; Function Attrs: argmemonly nounwind declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #5 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach.ls1(i64 %indvars.iv1146.start.ls1 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach36.ls1(i64 %indvars.iv1142.start.ls1 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach90.ls1(i64 %indvars.iv1138.start.ls1 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach90.us.ls1(i64 %indvars.iv1134.start.ls1 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach.i.ls2(i64 %indvars.iv.i.start.ls2 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach323.ls2(i64 %indvars.iv1126.start.ls2 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach254.ls3(i64 %indvars.iv1118.start.ls3 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach230.ls2(i64 %indvars.iv1122.start.ls2 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach.ls1(i64 %indvars.iv1146.start.ls1 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach36.ls1(i64 %indvars.iv1142.start.ls1 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach90.ls1(i64 %indvars.iv1138.start.ls1 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach90.us.ls1(i64 %indvars.iv1134.start.ls1 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach.i.ls2(i64 %indvars.iv.i.start.ls2 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach323.ls2(i64 %indvars.iv1126.start.ls2 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach254.ls3(i64 %indvars.iv1118.start.ls3 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach230.ls2(i64 %indvars.iv1122.start.ls2 ; CHECK: pfor.detach254.lr.ph.ls2: ; CHECK: call fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach254.ls3(i64 0, i64 %wide.trip.count1120.ls2 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach186.ls2(i64 %indvars.iv1114.start.ls2 -; CHECK: define private fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach388.ls1(i64 %indvars.iv.start.ls1 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach186.ls2(i64 %indvars.iv1114.start.ls2 +; CHECK: define internal fastcc void @_Z19suffixArrayInternalPhl.outline_pfor.detach388.ls1(i64 %indvars.iv.start.ls1 !2 = !{!3, !3, i64 0} !3 = !{!"__int128", !4, i64 0} diff --git a/llvm/test/Transforms/Tapir/loops-with-lcssa-lpads.ll b/llvm/test/Transforms/Tapir/loops-with-lcssa-lpads.ll index e6fe7b5524db..195a7b7381ec 100644 --- a/llvm/test/Transforms/Tapir/loops-with-lcssa-lpads.ll +++ b/llvm/test/Transforms/Tapir/loops-with-lcssa-lpads.ll @@ -521,12 +521,12 @@ declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #5 ; Function Attrs: argmemonly nounwind declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture writeonly, i8* nocapture readonly, i64, i32, i1) #5 -; CHECK-LABEL: define private fastcc void @_Z10sampleSortIiSt4lessIiEiEvPT_T1_T0_.outline_pfor.detach73.ls1(i64 %__begin63.0382.start.ls1 +; CHECK-LABEL: define internal fastcc void @_Z10sampleSortIiSt4lessIiEiEvPT_T1_T0_.outline_pfor.detach73.ls1(i64 %__begin63.0382.start.ls1 ; CHECK: lpad84.us-lcssa.ls1: ; CHECK-NOT: phi { i8*, i32 }{{.+}}[ {{%lpad.us-lcssa383.us|%lpad.us-lcssa383.us.ls1}}, {{%lpad84.us-lcssa.us|%lpad84.us-lcssa.us.ls1}} ] ; CHECK: resume -; CHECK-LABEL: define private fastcc void @_Z10sampleSortIiSt4lessIiEiEvPT_T1_T0_.outline_pfor.detach73.us.ls1(i64 %__begin63.0382.us.start.ls1 +; CHECK-LABEL: define internal fastcc void @_Z10sampleSortIiSt4lessIiEiEvPT_T1_T0_.outline_pfor.detach73.us.ls1(i64 %__begin63.0382.us.start.ls1 ; CHECK: lpad84.us-lcssa.us.ls1: ; CHECK-NOT: phi { i8*, i32 }{{.+}}[ {{%lpad.us-lcssa383|%lpad.us-lcssa383.ls1}}, {{%lpad84.us-lcssa|%lpad84.us-lcssa.ls1}} ] ; CHECK: resume diff --git a/llvm/test/Transforms/Tapir/lower-eh-unlink.ll b/llvm/test/Transforms/Tapir/lower-eh-unlink.ll index 41d5afbc0a7e..70866ee2dc37 100644 --- a/llvm/test/Transforms/Tapir/lower-eh-unlink.ll +++ b/llvm/test/Transforms/Tapir/lower-eh-unlink.ll @@ -488,13 +488,13 @@ declare void @llvm.detached.rethrow.sl_p0i8i32s(token, { i8*, i32 }) #9 ; Function Attrs: nounwind declare noalias i8* @malloc(i64) local_unnamed_addr #1 -; CHECK: define private fastcc void @_ZN8sequence4packIP6vertexiNS_4getAIS2_iEEEE4_seqIT_EPS6_PbT0_SA_T1_.outline_pfor.body71.otd1(i64 %indvars.iv.otd1 +; CHECK: define internal fastcc void @_ZN8sequence4packIP6vertexiNS_4getAIS2_iEEEE4_seqIT_EPS6_PbT0_SA_T1_.outline_pfor.body71.otd1(i64 %indvars.iv.otd1 ; CHECK: lpad90.otd1: ; CHECK: %[[LPAD:.+]] = landingpad ; CHECK: call void @__cilk_parent_epilogue(ptr %__cilkrts_sf) ; CHECK: resume {{.+}} %[[LPAD]] -; CHECK: define private fastcc void @_ZN8sequence4packIP6vertexiNS_4getAIS2_iEEEE4_seqIT_EPS6_PbT0_SA_T1_.outline_pfor.body.otd1(i64 %indvars.iv221.otd1 +; CHECK: define internal fastcc void @_ZN8sequence4packIP6vertexiNS_4getAIS2_iEEEE4_seqIT_EPS6_PbT0_SA_T1_.outline_pfor.body.otd1(i64 %indvars.iv221.otd1 attributes #1 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="true" "no-nans-fp-math"="true" "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="haswell" "target-features"="+aes,+avx,+avx2,+bmi,+bmi2,+cmov,+cx16,+f16c,+fma,+fsgsbase,+fxsr,+lzcnt,+mmx,+movbe,+pclmul,+popcnt,+rdrnd,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87,+xsave,+xsaveopt,-adx,-avx512bitalg,-avx512bw,-avx512cd,-avx512dq,-avx512er,-avx512f,-avx512ifma,-avx512pf,-avx512vbmi,-avx512vbmi2,-avx512vl,-avx512vnni,-avx512vpopcntdq,-clflushopt,-clwb,-clzero,-fma4,-gfni,-ibt,-lwp,-mwaitx,-pku,-prefetchwt1,-prfchw,-rdseed,-rtm,-sgx,-sha,-shstk,-sse4a,-tbm,-vaes,-vpclmulqdq,-xop,-xsavec,-xsaves" "unsafe-fp-math"="true" "use-soft-float"="false" } attributes #4 = { argmemonly nounwind } diff --git a/llvm/test/Transforms/Tapir/lower-static-allocas.ll b/llvm/test/Transforms/Tapir/lower-static-allocas.ll index 5b4109370c7a..1715f0b0f65f 100644 --- a/llvm/test/Transforms/Tapir/lower-static-allocas.ll +++ b/llvm/test/Transforms/Tapir/lower-static-allocas.ll @@ -28,7 +28,7 @@ sync.continue: ; preds = %det.cont ret void } -; TT-LABEL: define private fastcc void @detach_test.outline_det.achd.otd1( +; TT-LABEL: define internal fastcc void @detach_test.outline_det.achd.otd1( ; TT: %y.otd1 = alloca ; TT-LABEL: det.achd.otd1: ; TT-NEXT: call void @llvm.lifetime.start.p0(i64 64, ptr %y.otd1) @@ -115,14 +115,14 @@ sync.continue28: ; preds = %pfor.cond.cleanup16 ret void } -; LS-LABEL: define private fastcc void @ploop_test.outline_pfor.detach17.ls1( +; LS-LABEL: define internal fastcc void @ploop_test.outline_pfor.detach17.ls1( ; LS: %[[ALLOCACALLPTR:.+]] = alloca ; LS: pfor.body22.ls1: ; LS-NEXT: call void @llvm.lifetime.start.p0(i64 64, ptr %[[ALLOCACALLPTR]]) ; LS: call void @baz( ; LS-NEXT: call void @llvm.lifetime.end.p0(i64 64, ptr %[[ALLOCACALLPTR]]) -; LS-LABEL: define private fastcc void @ploop_test.outline_pfor.detach.ls1( +; LS-LABEL: define internal fastcc void @ploop_test.outline_pfor.detach.ls1( ; LS: %y.ls1 = alloca ; LS: pfor.body.ls1: ; LS: %[[YLSPTRSTART:.+]] = bitcast ptr %y.ls1 to ptr diff --git a/llvm/test/Transforms/Tapir/lowering-nested-detaches-with-exceptions.ll b/llvm/test/Transforms/Tapir/lowering-nested-detaches-with-exceptions.ll index a67552308167..f02f149b4b93 100644 --- a/llvm/test/Transforms/Tapir/lowering-nested-detaches-with-exceptions.ll +++ b/llvm/test/Transforms/Tapir/lowering-nested-detaches-with-exceptions.ll @@ -378,9 +378,9 @@ eh.resume: ; preds = %sync.continue93 ; CHECK: invoke fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry.otd1(ptr %g.addr, ptr %this1, ptr %n, i32 %add45) ; CHECK-NEXT: to label %pfor.inc80 unwind label %lpad82 -; CHECK: define private fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry62.otd2(ptr align 8 %g.addr.otd2, ptr align 4 %i46.otd2, ptr align 1 %this1.otd2, i32 %add61.otd2) +; CHECK: define internal fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry62.otd2(ptr align 8 %g.addr.otd2, ptr align 4 %i46.otd2, ptr align 1 %this1.otd2, i32 %add61.otd2) -; CHECK: define private fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry.otd1(ptr align 8 %g.addr.otd1, ptr align 1 %this1.otd1, ptr align 4 %n.otd1, i32 %add45.otd1) +; CHECK: define internal fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry.otd1(ptr align 8 %g.addr.otd1, ptr align 1 %this1.otd1, ptr align 4 %n.otd1, i32 %add45.otd1) ; CHECK: invoke fastcc void @_ZN3OFM7convertEP5Graph.outline_pfor.body.entry62.otd2(ptr %g.addr.otd1, ptr %i46.otd1, ptr %this1.otd1, i32 %add61.otd1) ; CHECK-NEXT: to label %pfor.inc.otd1 unwind label %lpad73.otd1 diff --git a/llvm/test/Transforms/Tapir/lowering-nested-detaches.ll b/llvm/test/Transforms/Tapir/lowering-nested-detaches.ll index bcaeda127ed8..4897fbef8b2b 100644 --- a/llvm/test/Transforms/Tapir/lowering-nested-detaches.ll +++ b/llvm/test/Transforms/Tapir/lowering-nested-detaches.ll @@ -107,7 +107,7 @@ synced22: ; preds = %loop_exit ; Function Attrs: argmemonly nounwind declare token @llvm.syncregion.start() #1 -; CHECK-LABEL: define private fastcc void @kernel_anon.outline_det.achd18.otd4( +; CHECK-LABEL: define internal fastcc void @kernel_anon.outline_det.achd18.otd4( ; CHECK: getelementptr ; CHECK-NEXT: load ; CHECK-NEXT: fmul @@ -116,7 +116,7 @@ declare token @llvm.syncregion.start() #1 ; CHECK-NEXT: store ; CHECK: ret void -; CHECK-LABEL: define private fastcc void @kernel_anon.outline_det.achd12.otd3( +; CHECK-LABEL: define internal fastcc void @kernel_anon.outline_det.achd12.otd3( ; CHECK: loop_body14.otd3.split: ; CHECK-NEXT: call fastcc void @kernel_anon.outline_det.achd18.otd4( ; CHECK-DAG: ptr %A.otd3 @@ -128,7 +128,7 @@ declare token @llvm.syncregion.start() #1 ; CHECK-DAG: ptr %.otd3 ; CHECK-NEXT: {{br label %loop_latch15.otd3|loop_body14.otd3.split.split}} -; CHECK-LABEL: define private fastcc void @kernel_anon.outline_block_exit.otd2( +; CHECK-LABEL: define internal fastcc void @kernel_anon.outline_block_exit.otd2( ; CHECK-LABEL: loop_body8.otd2.split: ; preds = %loop_body8.otd2 ; CHECK-NEXT: call fastcc void @kernel_anon.outline_det.achd12.otd3( ; CHECK-DAG: ptr %A.otd2 @@ -139,7 +139,7 @@ declare token @llvm.syncregion.start() #1 ; CHECK-DAG: ptr nonnull %0 ; CHECK-NEXT: {{br label %loop_latch9.otd2|br label %loop_body8.otd2.split.split}} -; CHECK-LABEL: define private fastcc void @kernel_anon.outline_det.achd.otd1( +; CHECK-LABEL: define internal fastcc void @kernel_anon.outline_det.achd.otd1( ; CHECK-LABEL: loop_body2.otd1.split: ; preds = %loop_body2.otd1 ; CHECK-NEXT: call fastcc void @kernel_anon.outline_block_exit.otd2( ; CHECK-DAG: ptr %O1.otd1 diff --git a/llvm/test/Transforms/Tapir/nested-loop-spawning-with-exceptions.ll b/llvm/test/Transforms/Tapir/nested-loop-spawning-with-exceptions.ll index d51520849685..3fed23a60f82 100644 --- a/llvm/test/Transforms/Tapir/nested-loop-spawning-with-exceptions.ll +++ b/llvm/test/Transforms/Tapir/nested-loop-spawning-with-exceptions.ll @@ -1082,7 +1082,7 @@ _ZNSt12_Vector_baseISt5tupleIJidiEESaIS1_EE13_M_deallocateEPS1_m.exit71: ; preds ; Function Attrs: argmemonly nounwind declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #1 -; CHECK-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach29.ls2(i64 +; CHECK-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach29.ls2(i64 ; CHECK: %[[SYNCREG:.+]] = call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %.split, label %{{.+}} unwind label %[[DUNWIND:.+]] ; CHECK: {{^.split}}: @@ -1099,7 +1099,7 @@ declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #1 ; CHECK: (token %[[SYNCREG]], [[LPADTYPE]] %[[LPADVAL]]) ; CHECK-NEXT: to label %{{.+}} unwind label %[[DUNWIND]] -; CHECK-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(i64 +; CHECK-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(i64 ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %.split, label %{{.+}} unwind label %[[DUNWIND:.+]] ; CHECK: {{^.split:}} diff --git a/llvm/test/Transforms/Tapir/nested-loop-spawning.ll b/llvm/test/Transforms/Tapir/nested-loop-spawning.ll index de76a6cae121..1fc85147a48f 100644 --- a/llvm/test/Transforms/Tapir/nested-loop-spawning.ll +++ b/llvm/test/Transforms/Tapir/nested-loop-spawning.ll @@ -844,13 +844,13 @@ _ZNSt12_Vector_baseISt5tupleIJidiEESaIS1_EE13_M_deallocateEPS1_m.exit: ; preds = ; Function Attrs: argmemonly nounwind declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #1 -; CHECK-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach21.ls2(i64 +; CHECK-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach21.ls2(i64 ; CHECK: %[[SYNCREG:.+]] = call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %.split, label %{{.+}} ; CHECK: {{^.split}}: ; CHECK-NEXT: call fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach21.ls2(i64 -; CHECK-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(i64 +; CHECK-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(i64 ; CHECK: %[[SYNCREG:.+]] = tail call token @llvm.syncregion.start() ; CHECK: detach within %[[SYNCREG]], label %.split, label %{{.+}} ; CHECK: {{^.split:}} diff --git a/llvm/test/Transforms/Tapir/returned-param.ll b/llvm/test/Transforms/Tapir/returned-param.ll index 044465593c57..655c44a366ec 100644 --- a/llvm/test/Transforms/Tapir/returned-param.ll +++ b/llvm/test/Transforms/Tapir/returned-param.ll @@ -54,7 +54,7 @@ if.end7: ; preds = %if.end4 %call8 = tail call i64 @binary_search(i64* %source_2.tr, i64 %size_2.tr, i64 %3) %add9 = add nsw i64 %call8, 1 detach within %syncreg, label %det.achd, label %det.cont -; CHECK: define private fastcc void @cilk_merge.outline_det.achd.otd1(ptr align 1 %source_1.tr.otd1, i64 %div.otd1, ptr align 1 %source_2.tr.otd1, i64 %add9.otd1, ptr +; CHECK: define internal fastcc void @cilk_merge.outline_det.achd.otd1(ptr align 1 %source_1.tr.otd1, i64 %div.otd1, ptr align 1 %source_2.tr.otd1, i64 %add9.otd1, ptr ; CHECK-NOT: returned ; CHECK: %target.otd1) unnamed_addr det.achd: ; preds = %if.end7 diff --git a/llvm/test/Transforms/Tapir/sret-param.ll b/llvm/test/Transforms/Tapir/sret-param.ll index 769f02624fe8..1cfc4062ecba 100644 --- a/llvm/test/Transforms/Tapir/sret-param.ll +++ b/llvm/test/Transforms/Tapir/sret-param.ll @@ -798,12 +798,12 @@ _ZNSt12_Vector_baseISt5tupleIJidiEESaIS1_EE13_M_deallocateEPS1_m.exit71: ; preds ; Function Attrs: argmemonly nounwind declare void @llvm.memset.p0i8.i64(i8* nocapture writeonly, i8, i64, i32, i1) #1 -; LS-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(ptr noalias sret(%"class.std::vector.0") align 8 %agg.result.ls1, +; LS-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(ptr noalias sret(%"class.std::vector.0") align 8 %agg.result.ls1, ; LS: [[IVTYPE]] {{.+}}, [[IVTYPE]] {{.+}}, [[IVTYPE]] {{.*}}%[[GRAINSIZE:.+]], ; LS: {{^.split:}} ; LS-NEXT: call fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.detach.ls1(ptr %agg.result.ls1, [[IVTYPE]] {{.+}}, [[IVTYPE]] {{.+}}, [[IVTYPE]] {{.*}}[[GRAINSIZE]], -; TT-LABEL: define private fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.body.otd1(ptr {{.*}}sret(%"class.std::vector.0") {{.*}}%agg.result.otd1, +; TT-LABEL: define internal fastcc void @_Z14func_with_sretidRSt6vectorI6paramsSaIS0_EE.outline_pfor.body.otd1(ptr {{.*}}sret(%"class.std::vector.0") {{.*}}%agg.result.otd1, attributes #0 = { uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" } attributes #1 = { argmemonly nounwind } diff --git a/llvm/test/Transforms/Tapir/tapir-loop-metadata-valnotdom.ll b/llvm/test/Transforms/Tapir/tapir-loop-metadata-valnotdom.ll index 9d1e4a50133b..8596a06dc93b 100644 --- a/llvm/test/Transforms/Tapir/tapir-loop-metadata-valnotdom.ll +++ b/llvm/test/Transforms/Tapir/tapir-loop-metadata-valnotdom.ll @@ -593,7 +593,7 @@ pfor.cond.cleanup: ; preds = %pfor.inc unreachable } -; CHECK-LABEL: define private fastcc void @_Z19readGraphFromBinaryI16asymmetricVertexE5graphIT_EPcb.outline_pfor.cond.ls1(i64 %{{.+}}, i64 %{{.+}}, i64 %{{.+}}) unnamed_addr +; CHECK-LABEL: define internal fastcc void @_Z19readGraphFromBinaryI16asymmetricVertexE5graphIT_EPcb.outline_pfor.cond.ls1(i64 %{{.+}}, i64 %{{.+}}, i64 %{{.+}}) unnamed_addr ; CHECK: pfor.body.ls1: ; CHECK-NOT: call void @llvm.dbg.value(metadata i64 %{{.+}}, diff --git a/llvm/test/Transforms/Tapir/tapir-loop-metadata.ll b/llvm/test/Transforms/Tapir/tapir-loop-metadata.ll index 9d1e4a50133b..8596a06dc93b 100644 --- a/llvm/test/Transforms/Tapir/tapir-loop-metadata.ll +++ b/llvm/test/Transforms/Tapir/tapir-loop-metadata.ll @@ -593,7 +593,7 @@ pfor.cond.cleanup: ; preds = %pfor.inc unreachable } -; CHECK-LABEL: define private fastcc void @_Z19readGraphFromBinaryI16asymmetricVertexE5graphIT_EPcb.outline_pfor.cond.ls1(i64 %{{.+}}, i64 %{{.+}}, i64 %{{.+}}) unnamed_addr +; CHECK-LABEL: define internal fastcc void @_Z19readGraphFromBinaryI16asymmetricVertexE5graphIT_EPcb.outline_pfor.cond.ls1(i64 %{{.+}}, i64 %{{.+}}, i64 %{{.+}}) unnamed_addr ; CHECK: pfor.body.ls1: ; CHECK-NOT: call void @llvm.dbg.value(metadata i64 %{{.+}},