[llvm] r355360 - [BPF] Do not generate BTF sections unnecessarily

Yonghong Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 17:01:21 PST 2019


Author: yhs
Date: Mon Mar  4 17:01:21 2019
New Revision: 355360

URL: http://llvm.org/viewvc/llvm-project?rev=355360&view=rev
Log:
[BPF] Do not generate BTF sections unnecessarily

If There is no types/non-empty strings, do not generate
.BTF section. If there is no func_info/line_info, do
not generate .BTF.ext section.

Signed-off-by: Yonghong Song <yhs at fb.com>

Differential Revision: https://reviews.llvm.org/D58936

Added:
    llvm/trunk/test/CodeGen/BPF/BTF/empty-btf.ll
Modified:
    llvm/trunk/lib/Target/BPF/BTFDebug.cpp
    llvm/trunk/test/CodeGen/BPF/BTF/array-1d-char.ll
    llvm/trunk/test/CodeGen/BPF/BTF/array-1d-int.ll
    llvm/trunk/test/CodeGen/BPF/BTF/array-2d-int.ll
    llvm/trunk/test/CodeGen/BPF/BTF/array-size-0.ll
    llvm/trunk/test/CodeGen/BPF/BTF/array-typedef.ll
    llvm/trunk/test/CodeGen/BPF/BTF/char.ll
    llvm/trunk/test/CodeGen/BPF/BTF/enum-basic.ll
    llvm/trunk/test/CodeGen/BPF/BTF/fwd-no-define.ll
    llvm/trunk/test/CodeGen/BPF/BTF/fwd-with-define.ll
    llvm/trunk/test/CodeGen/BPF/BTF/int.ll
    llvm/trunk/test/CodeGen/BPF/BTF/longlong.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-const-void.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-1.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-2.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-3.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-int.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-void.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-void.ll
    llvm/trunk/test/CodeGen/BPF/BTF/restrict-ptr.ll
    llvm/trunk/test/CodeGen/BPF/BTF/short.ll
    llvm/trunk/test/CodeGen/BPF/BTF/struct-anon.ll
    llvm/trunk/test/CodeGen/BPF/BTF/struct-basic.ll
    llvm/trunk/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll
    llvm/trunk/test/CodeGen/BPF/BTF/struct-enum.ll
    llvm/trunk/test/CodeGen/BPF/BTF/uchar.ll
    llvm/trunk/test/CodeGen/BPF/BTF/uint.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ulonglong.ll
    llvm/trunk/test/CodeGen/BPF/BTF/union-array-typedef.ll
    llvm/trunk/test/CodeGen/BPF/BTF/ushort.ll

Modified: llvm/trunk/lib/Target/BPF/BTFDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/BPF/BTFDebug.cpp?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/lib/Target/BPF/BTFDebug.cpp (original)
+++ llvm/trunk/lib/Target/BPF/BTFDebug.cpp Mon Mar  4 17:01:21 2019
@@ -546,6 +546,10 @@ void BTFDebug::emitCommonHeader() {
 }
 
 void BTFDebug::emitBTFSection() {
+  // Do not emit section if no types and only "" string.
+  if (!TypeEntries.size() && StringTable.getSize() == 1)
+    return;
+
   MCContext &Ctx = OS.getContext();
   OS.SwitchSection(Ctx.getELFSection(".BTF", ELF::SHT_PROGBITS, 0));
 
@@ -578,6 +582,10 @@ void BTFDebug::emitBTFSection() {
 }
 
 void BTFDebug::emitBTFExtSection() {
+  // Do not emit section if empty FuncInfoTable and LineInfoTable.
+  if (!FuncInfoTable.size() && !LineInfoTable.size())
+    return;
+
   MCContext &Ctx = OS.getContext();
   OS.SwitchSection(Ctx.getELFSection(".BTF.ext", ELF::SHT_PROGBITS, 0));
 

Modified: llvm/trunk/test/CodeGen/BPF/BTF/array-1d-char.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/array-1d-char.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/array-1d-char.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/array-1d-char.ll Mon Mar  4 17:01:21 2019
@@ -40,17 +40,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "char"                  # string offset=21
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/array-1d-int.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/array-1d-int.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/array-1d-int.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/array-1d-int.ll Mon Mar  4 17:01:21 2019
@@ -40,17 +40,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=21
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/array-2d-int.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/array-2d-int.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/array-2d-int.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/array-2d-int.ll Mon Mar  4 17:01:21 2019
@@ -40,17 +40,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=21
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/array-size-0.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/array-size-0.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/array-size-0.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/array-size-0.ll Mon Mar  4 17:01:21 2019
@@ -42,17 +42,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .byte   116                     # string offset=21
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/array-typedef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/array-typedef.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/array-typedef.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/array-typedef.ll Mon Mar  4 17:01:21 2019
@@ -52,17 +52,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "unsigned int"          # string offset=32
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 3, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/char.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/char.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/char.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/char.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "char"                  # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Added: llvm/trunk/test/CodeGen/BPF/BTF/empty-btf.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/empty-btf.ll?rev=355360&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/empty-btf.ll (added)
+++ llvm/trunk/test/CodeGen/BPF/BTF/empty-btf.ll Mon Mar  4 17:01:21 2019
@@ -0,0 +1,22 @@
+; RUN: llc -march=bpfel -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
+; RUN: llc -march=bpfeb -filetype=asm -o - %s | FileCheck -check-prefixes=CHECK %s
+
+; Source code:
+;   int test(int arg) { return arg; }
+; Compilation flag:
+;   clang -target bpf -O2 -S -emit-llvm t.c
+
+; Function Attrs: norecurse nounwind readnone
+define dso_local i32 @test(i32 returned) local_unnamed_addr #0 {
+  ret i32 %0
+}
+
+; CHECK-NOT: BTF
+
+attributes #0 = { norecurse nounwind readnone }
+
+!llvm.module.flags = !{!0}
+!llvm.ident = !{!1}
+
+!0 = !{i32 1, !"wchar_size", i32 4}
+!1 = !{!"clang version 8.0.20181009 "}

Modified: llvm/trunk/test/CodeGen/BPF/BTF/enum-basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/enum-basic.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/enum-basic.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/enum-basic.ll Mon Mar  4 17:01:21 2019
@@ -33,17 +33,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .byte   66                      # string offset=3
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !5, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/fwd-no-define.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/fwd-no-define.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/fwd-no-define.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/fwd-no-define.ll Mon Mar  4 17:01:21 2019
@@ -44,17 +44,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "t1"                    # string offset=6
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/fwd-with-define.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/fwd-with-define.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/fwd-with-define.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/fwd-with-define.ll Mon Mar  4 17:01:21 2019
@@ -38,17 +38,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .byte   112                     # string offset=4
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/int.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/int.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/int.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/int.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/longlong.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/longlong.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/longlong.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/longlong.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "long long int"         # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-const-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-const-void.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-const-void.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-const-void.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .long   167772160               # 0xa000000
 ; CHECK-NEXT:        .long   0
 ; CHECK-NEXT:        .byte   0                       # string offset=0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-1.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-1.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-1.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .long   218103808               # 0xd000000
 ; CHECK-NEXT:        .long   0
 ; CHECK-NEXT:        .byte   0                       # string offset=0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-2.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-2.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-2.ll Mon Mar  4 17:01:21 2019
@@ -44,17 +44,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "char"                  # string offset=5
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-3.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-3.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-func-3.ll Mon Mar  4 17:01:21 2019
@@ -44,17 +44,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=7
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-int.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-int.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-int.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-int.ll Mon Mar  4 17:01:21 2019
@@ -31,18 +31,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
-
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-void.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-void.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-void.ll Mon Mar  4 17:01:21 2019
@@ -25,17 +25,6 @@
 ; CHECK-NEXT:        .long   33554432                # 0x2000000
 ; CHECK-NEXT:        .long   0
 ; CHECK-NEXT:        .byte   0                       # string offset=0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-const-void.ll Mon Mar  4 17:01:21 2019
@@ -31,17 +31,6 @@
 ; CHECK-NEXT:        .long   150994944               # 0x9000000
 ; CHECK-NEXT:        .long   0
 ; CHECK-NEXT:        .byte   0                       # string offset=0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-void.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-void.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-void.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ptr-volatile-void.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .long   150994944               # 0x9000000
 ; CHECK-NEXT:        .long   0
 ; CHECK-NEXT:        .byte   0                       # string offset=0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/restrict-ptr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/restrict-ptr.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/restrict-ptr.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/restrict-ptr.ll Mon Mar  4 17:01:21 2019
@@ -34,17 +34,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "p", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/short.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/short.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/short.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/short.ll Mon Mar  4 17:01:21 2019
@@ -29,17 +29,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "short"                 # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/struct-anon.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/struct-anon.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/struct-anon.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/struct-anon.ll Mon Mar  4 17:01:21 2019
@@ -45,17 +45,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=3
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/struct-basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/struct-basic.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/struct-basic.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/struct-basic.ll Mon Mar  4 17:01:21 2019
@@ -51,17 +51,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=15
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/struct-bitfield-typedef.ll Mon Mar  4 17:01:21 2019
@@ -66,17 +66,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=23
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 3, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/struct-enum.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/struct-enum.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/struct-enum.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/struct-enum.ll Mon Mar  4 17:01:21 2019
@@ -53,17 +53,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .byte   66                      # string offset=13
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !11, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/uchar.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/uchar.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/uchar.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/uchar.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "unsigned char"         # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/uint.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/uint.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/uint.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/uint.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "unsigned int"          # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ulonglong.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ulonglong.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ulonglong.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ulonglong.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "long long unsigned int" # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/union-array-typedef.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/union-array-typedef.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/union-array-typedef.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/union-array-typedef.ll Mon Mar  4 17:01:21 2019
@@ -69,17 +69,6 @@
 ; CHECK-NEXT:        .byte   0
 ; CHECK-NEXT:        .ascii  "int"                   # string offset=37
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 2, type: !6, isLocal: false, isDefinition: true)

Modified: llvm/trunk/test/CodeGen/BPF/BTF/ushort.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/BPF/BTF/ushort.ll?rev=355360&r1=355359&r2=355360&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/BPF/BTF/ushort.ll (original)
+++ llvm/trunk/test/CodeGen/BPF/BTF/ushort.ll Mon Mar  4 17:01:21 2019
@@ -28,17 +28,6 @@
 ; CHECK-NEXT:        .byte   0                       # string offset=0
 ; CHECK-NEXT:        .ascii  "unsigned short"        # string offset=1
 ; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .section        .BTF.ext,"", at progbits
-; CHECK-NEXT:        .short  60319                   # 0xeb9f
-; CHECK-NEXT:        .byte   1
-; CHECK-NEXT:        .byte   0
-; CHECK-NEXT:        .long   24
-; CHECK-NEXT:        .long   0
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   4
-; CHECK-NEXT:        .long   8                       # FuncInfo
-; CHECK-NEXT:        .long   16                      # LineInfo
 
 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)




More information about the llvm-commits mailing list