[llvm] 2e7e097 - [NVPTX] Prefix "$L__" for branch label names
Dmitry Vassiliev via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 30 12:55:51 PDT 2022
Author: Dmitry Vassiliev
Date: 2022-04-30T21:55:20+02:00
New Revision: 2e7e0975c0017d2ca5b7563143df0bc8c9d3826d
URL: https://github.com/llvm/llvm-project/commit/2e7e0975c0017d2ca5b7563143df0bc8c9d3826d
DIFF: https://github.com/llvm/llvm-project/commit/2e7e0975c0017d2ca5b7563143df0bc8c9d3826d.diff
LOG: [NVPTX] Prefix "$L__" for branch label names
A global variable may have the same name as a label, and ptxas does not accept it.
Prefix labels with $L__ to fix this.
Reviewed By: MaskRay, tra
Differential Revision: https://reviews.llvm.org/D119669
Added:
Modified:
llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
llvm/test/CodeGen/NVPTX/f16-instructions.ll
llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
llvm/test/DebugInfo/NVPTX/debug-info.ll
llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
llvm/test/DebugInfo/NVPTX/debug-name-table.ll
Removed:
################################################################################
diff --git a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
index ae39be2325140..85ace96eeeaf1 100644
--- a/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
+++ b/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
@@ -49,6 +49,9 @@ NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Triple &TheTriple,
SupportsExtendedDwarfLocDirective = false;
SupportsSignedData = false;
+ PrivateGlobalPrefix = "$L__";
+ PrivateLabelPrefix = PrivateGlobalPrefix;
+
// @TODO: Can we just disable this?
WeakDirective = "\t// .weak\t";
GlobalDirective = "\t// .globl\t";
diff --git a/llvm/test/CodeGen/NVPTX/f16-instructions.ll b/llvm/test/CodeGen/NVPTX/f16-instructions.ll
index 994b99da5a95a..d623cda75ec40 100644
--- a/llvm/test/CodeGen/NVPTX/f16-instructions.ll
+++ b/llvm/test/CodeGen/NVPTX/f16-instructions.ll
@@ -601,7 +601,7 @@ define i1 @test_fcmp_ord(half %a, half %b) #0 {
; CHECK-NOF16-DAG: cvt.f32.f16 [[AF:%f[0-9]+]], [[A]];
; CHECK-NOF16-DAG: cvt.f32.f16 [[BF:%f[0-9]+]], [[B]];
; CHECK-NOF16: setp.lt.f32 [[PRED:%p[0-9]+]], [[AF]], [[BF]]
-; CHECK-NEXT: @[[PRED]] bra [[LABEL:LBB.*]];
+; CHECK-NEXT: @[[PRED]] bra [[LABEL:\$L__BB.*]];
; CHECK: st.u32 [%[[C]]],
; CHECK: [[LABEL]]:
; CHECK: st.u32 [%[[D]]],
@@ -620,7 +620,7 @@ else:
; CHECK-LABEL: test_phi(
; CHECK: ld.param.u64 %[[P1:rd[0-9]+]], [test_phi_param_0];
; CHECK: ld.b16 {{%h[0-9]+}}, [%[[P1]]];
-; CHECK: [[LOOP:LBB[0-9_]+]]:
+; CHECK: [[LOOP:\$L__BB[0-9_]+]]:
; CHECK: mov.b16 [[R:%h[0-9]+]], [[AB:%h[0-9]+]];
; CHECK: ld.b16 [[AB:%h[0-9]+]], [%[[P1]]];
; CHECK: {
diff --git a/llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll b/llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
index e6da3f42c7054..7251d9913cd2b 100644
--- a/llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
+++ b/llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
@@ -36,12 +36,12 @@ entry:
; IR: ret i8* %dst
; PTX-LABEL: .visible .func (.param .b64 func_retval0) memcpy_caller
-; PTX: LBB[[LABEL:[_0-9]+]]:
+; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: ld.u8 %rs[[REG:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
-; PTX: @%p[[PRED]] bra LBB[[LABEL]]
+; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]
}
@@ -70,12 +70,12 @@ entry:
; PTX-LABEL: .visible .func (.param .b64 func_retval0) memcpy_volatile_caller
-; PTX: LBB[[LABEL:[_0-9]+]]:
+; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: ld.volatile.u8 %rs[[REG:[0-9]+]]
; PTX: st.volatile.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
-; PTX: @%p[[PRED]] bra LBB[[LABEL]]
+; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]
}
define i8* @memcpy_casting_caller(i32* %dst, i32* %src, i64 %n) #0 {
@@ -130,11 +130,11 @@ entry:
; PTX-LABEL: .visible .func (.param .b64 func_retval0) memset_caller(
; PTX: ld.param.u32 %r[[C:[0-9]+]]
; PTX: cvt.u16.u32 %rs[[REG:[0-9]+]], %r[[C]];
-; PTX: LBB[[LABEL:[_0-9]+]]:
+; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
-; PTX: @%p[[PRED]] bra LBB[[LABEL]]
+; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]
}
define i8* @volatile_memset_caller(i8* %dst, i32 %c, i64 %n) #0 {
@@ -166,20 +166,20 @@ entry:
; PTX: ld.param.u64 %rd[[N:[0-9]+]]
; PTX-DAG: setp.eq.s64 %p[[NEQ0:[0-9]+]], %rd[[N]], 0
; PTX-DAG: setp.ge.u64 %p[[SRC_GT_THAN_DST:[0-9]+]], %rd{{[0-9]+}}, %rd{{[0-9]+}}
-; PTX-NEXT: @%p[[SRC_GT_THAN_DST]] bra LBB[[FORWARD_BB:[0-9_]+]]
+; PTX-NEXT: @%p[[SRC_GT_THAN_DST]] bra $L__BB[[FORWARD_BB:[0-9_]+]]
; -- this is the backwards copying BB
-; PTX: @%p[[NEQ0]] bra LBB[[EXIT:[0-9_]+]]
+; PTX: @%p[[NEQ0]] bra $L__BB[[EXIT:[0-9_]+]]
; PTX: add.s64 %rd{{[0-9]}}, %rd{{[0-9]}}, -1
; PTX: ld.u8 %rs[[ELEMENT:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[ELEMENT]]
; -- this is the forwards copying BB
-; PTX: LBB[[FORWARD_BB]]:
-; PTX: @%p[[NEQ0]] bra LBB[[EXIT]]
+; PTX: $L__BB[[FORWARD_BB]]:
+; PTX: @%p[[NEQ0]] bra $L__BB[[EXIT]]
; PTX: ld.u8 %rs[[ELEMENT2:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[ELEMENT2]]
; PTX: add.s64 %rd{{[0-9]+}}, %rd{{[0-9]+}}, 1
; -- exit block
-; PTX: LBB[[EXIT]]:
+; PTX: $L__BB[[EXIT]]:
; PTX-NEXT: st.param.b64 [func_retval0
; PTX-NEXT: ret
}
diff --git a/llvm/test/DebugInfo/NVPTX/cu-range-hole.ll b/llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
index 3f6e4232ed3e3..9117d2c711c5b 100644
--- a/llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
+++ b/llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
@@ -8,21 +8,21 @@
; CHECK: )
; CHECK: {
; CHECK: .loc 1 1 0
-; CHECK: Lfunc_begin0:
+; CHECK: $L__func_begin0:
; CHECK: .loc 1 1 0
; CHECK: .loc 1 1 0
; CHECK: ret;
-; CHECK: Lfunc_end0:
+; CHECK: $L__func_end0:
; CHECK: }
; CHECK: .visible .func (.param .b32 func_retval0) a(
; CHECK: .param .b32 a_param_0
; CHECK: )
; CHECK: {
-; CHECK: Lfunc_begin1:
+; CHECK: $L__func_begin1:
; CHECK-NOT: .loc
; CHECK: ret;
-; CHECK: Lfunc_end1:
+; CHECK: $L__func_end1:
; CHECK: }
; CHECK: .visible .func (.param .b32 func_retval0) d(
@@ -30,10 +30,10 @@
; CHECK: )
; CHECK: {
; CHECK: .loc 1 3 0
-; CHECK: Lfunc_begin2:
+; CHECK: $L__func_begin2:
; CHECK: .loc 1 3 0
; CHECK: ret;
-; CHECK: Lfunc_end2:
+; CHECK: $L__func_end2:
; CHECK: }
; CHECK: .file 1 "{{.*}}b.c"
@@ -221,11 +221,11 @@ entry:
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 101
; CHECK-NEXT: .b8 0
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end2 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end2 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x65:0x27 DW_TAG_subprogram
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 98 // DW_AT_name
@@ -243,8 +243,8 @@ entry:
; CHECK-NEXT: .b32 179 // DW_AT_type
; CHECK-NEXT: .b8 0 // End Of Children Mark
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x8c:0x27 DW_TAG_subprogram
-; CHECK-NEXT: .b64 Lfunc_begin2 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end2 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin2 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end2 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 100 // DW_AT_name
diff --git a/llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll b/llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
index fdcc74b26847e..51c2b25917ec0 100644
--- a/llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
+++ b/llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
@@ -150,11 +150,11 @@
; CHECK-NEXT: .b8 115
; CHECK-NEXT: .b8 116
; CHECK-NEXT: .b8 0
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x31:0x3c DW_TAG_subprogram
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 117 // DW_AT_name
diff --git a/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll b/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
index 842344fbe44bf..1b6dbaf6eb100 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
@@ -257,8 +257,8 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
; CHECK-NEXT:.b8 109
; CHECK-NEXT:.b8 112
; CHECK-NEXT:.b8 0
-; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 2 // Abbrev [2] 0x65:0x1a DW_TAG_variable
; CHECK-NEXT:.b8 71 // DW_AT_name
; CHECK-NEXT:.b8 76
@@ -299,8 +299,8 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
; CHECK-NEXT:.b8 3
; CHECK-NEXT:.b64 SHARED
; CHECK-NEXT:.b8 4 // Abbrev [4] 0xa0:0x45 DW_TAG_subprogram
-; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 1 // DW_AT_frame_base
; CHECK-NEXT:.b8 156
; CHECK-NEXT:.b8 116 // DW_AT_MIPS_linkage_name
diff --git a/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll b/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
index 2a5a3bc2bb541..7386056d9da21 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
@@ -84,8 +84,8 @@ bb:
; CHECK-NEXT: .b8 105
; CHECK-NEXT: .b8 114
; CHECK-NEXT: .b8 0
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: }
; CHECK-NEXT: .section .debug_loc { }
; CHECK-NOT: debug_
diff --git a/llvm/test/DebugInfo/NVPTX/debug-info.ll b/llvm/test/DebugInfo/NVPTX/debug-info.ll
index d118308fc05c3..73842031fc585 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-info.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-info.ll
@@ -36,7 +36,7 @@
; CHECK: .loc [[DEBUG_INFO_CU]] 7 9
; CHECK: setp.ge.s32 %p{{.+}}, %r{{.+}}, %r{{.+}};
; CHECK: .loc [[DEBUG_INFO_CU]] 7 7
-; CHECK: @%p{{.+}} bra [[BB:.+]];
+; CHECK: @%p{{.+}} bra [[BB:\$L__.+]];
; CHECK: ld.param.f32 %f{{.+}}, [{{.+}}];
; CHECK: ld.param.u64 %rd{{.+}}, [{{.+}}];
; CHECK: cvta.to.global.u64 %rd{{.+}}, %rd{{.+}};
@@ -743,8 +743,8 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b8 114
; CHECK-NEXT:.b8 121
; CHECK-NEXT:.b8 0
-; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 2 // Abbrev [2] 0x41:0x588 DW_TAG_namespace
; CHECK-NEXT:.b8 115 // DW_AT_name
; CHECK-NEXT:.b8 116
@@ -8308,8 +8308,8 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b32 3345 // DW_AT_type
; CHECK-NEXT:.b8 0 // End Of Children Mark
; CHECK-NEXT:.b8 40 // Abbrev [40] 0x2671:0xbf DW_TAG_subprogram
-; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 1 // DW_AT_frame_base
; CHECK-NEXT:.b8 156
; CHECK-NEXT:.b8 95 // DW_AT_MIPS_linkage_name
@@ -8368,29 +8368,29 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b32 2332 // DW_AT_type
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26c9:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 8432 // DW_AT_abstract_origin
-; CHECK-NEXT:.b64 Ltmp0 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Ltmp1 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__tmp0 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__tmp1 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 11 // DW_AT_call_column
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26e1:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9191 // DW_AT_abstract_origin
-; CHECK-NEXT:.b64 Ltmp1 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Ltmp2 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__tmp1 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__tmp2 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 24 // DW_AT_call_column
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26f9:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9785 // DW_AT_abstract_origin
-; CHECK-NEXT:.b64 Ltmp2 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Ltmp3 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__tmp2 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__tmp3 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 37 // DW_AT_call_column
; CHECK-NEXT:.b8 43 // Abbrev [43] 0x2711:0x1e DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9791 // DW_AT_abstract_origin
-; CHECK-NEXT:.b64 Ltmp9 // DW_AT_low_pc
-; CHECK-NEXT:.b64 Ltmp10 // DW_AT_high_pc
+; CHECK-NEXT:.b64 $L__tmp9 // DW_AT_low_pc
+; CHECK-NEXT:.b64 $L__tmp10 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 8 // DW_AT_call_line
; CHECK-NEXT:.b8 5 // DW_AT_call_column
diff --git a/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll b/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
index f951c5d050ef1..a8cb8eefc8b8a 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
@@ -13,7 +13,7 @@
; CHECK: .visible .func (.param .b32 func_retval0) _Z3bari(
; CHECK: {
; CHECK: .loc [[CU1:[0-9]+]] 1 0
-; CHECK: Lfunc_begin0:
+; CHECK: $L__func_begin0:
; CHECK: .loc [[CU1]] 1 0
; CHECK: //DEBUG_VALUE: bar:b <- {{[0-9]+}}
@@ -42,7 +42,7 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) #1
; CHECK: .visible .func _Z3baz1A(
; CHECK: {
; CHECK: .loc [[CU2:[0-9]+]] 6 0
-; CHECK: Lfunc_begin1:
+; CHECK: $L__func_begin1:
; CHECK: .loc [[CU2]] 6 0
; CHECK-NOT: //DEBUG_VALUE: baz:z
; CHECK: //DEBUG_VALUE: baz:z <- undef
@@ -324,15 +324,15 @@ attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 0
-; CHECK-NEXT: .b64 Lfunc_begin1 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin1 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x64:0x4 DW_TAG_structure_type
; CHECK-NEXT: .b8 65 // DW_AT_name
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b8 1 // DW_AT_declaration
; CHECK-NEXT: .b8 3 // Abbrev [3] 0x68:0x3a DW_TAG_subprogram
-; CHECK-NEXT: .b64 Lfunc_begin1 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin1 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 95 // DW_AT_MIPS_linkage_name
@@ -440,11 +440,11 @@ attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 0
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 6 // Abbrev [6] 0x64:0x30 DW_TAG_subprogram
-; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
-; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
+; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
+; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 95 // DW_AT_MIPS_linkage_name
diff --git a/llvm/test/DebugInfo/NVPTX/debug-name-table.ll b/llvm/test/DebugInfo/NVPTX/debug-name-table.ll
index dbad768738c55..f0dc50daedfa5 100644
--- a/llvm/test/DebugInfo/NVPTX/debug-name-table.ll
+++ b/llvm/test/DebugInfo/NVPTX/debug-name-table.ll
@@ -8,16 +8,16 @@
; CHECK-LABEL: .section .debug_pubnames
; CHECK-NEXT: {
-; CHECK-NEXT: .b32 LpubNames_end0-LpubNames_start0
-; CHECK-NEXT: LpubNames_start0:
-; CHECK: LpubNames_end0:
+; CHECK-NEXT: .b32 $L__pubNames_end0-$L__pubNames_start0
+; CHECK-NEXT: $L__pubNames_start0:
+; CHECK: $L__pubNames_end0:
; CHECK-NEXT: }
; CHECK-LABEL: .section .debug_pubtypes
; CHECK-NEXT: {
-; CHECK-NEXT: .b32 LpubTypes_end0-LpubTypes_start0
-; CHECK-NEXT: LpubTypes_start0:
-; CHECK: LpubTypes_end0:
+; CHECK-NEXT: .b32 $L__pubTypes_end0-$L__pubTypes_start0
+; CHECK-NEXT: $L__pubTypes_start0:
+; CHECK: $L__pubTypes_end0:
; CHECK-NEXT: }
; Function Attrs: nounwind ssp uwtable
More information about the llvm-commits
mailing list