mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
67886a34d2
Summary: Most DIExpressions are empty or very simple. When they are complex, they tend to be unique, so checking them inline is reasonable. This also avoids the need for CodeGen passes to append to the llvm.dbg.mir named md node. See also PR22780, for making DIExpression not be an MDNode. Reviewers: aprantl, dexonsmith, dblaikie Subscribers: qcolombet, javed.absar, eraman, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D37075 llvm-svn: 311594
22 lines
892 B
LLVM
22 lines
892 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
|
|
; CHECK: !named = !{
|
|
; CHECK-SAME: !DIExpression(),
|
|
; CHECK-SAME: !DIExpression(DW_OP_deref),
|
|
; CHECK-SAME: !DIExpression(DW_OP_constu, 3, DW_OP_plus),
|
|
; CHECK-SAME: !DIExpression(DW_OP_LLVM_fragment, 3, 7),
|
|
; CHECK-SAME: !DIExpression(DW_OP_deref, DW_OP_plus_uconst, 3, DW_OP_LLVM_fragment, 3, 7),
|
|
; CHECK-SAME: !DIExpression(DW_OP_constu, 2, DW_OP_swap, DW_OP_xderef),
|
|
; CHECK-SAME: !DIExpression(DW_OP_plus_uconst, 3)}
|
|
|
|
!named = !{!0, !1, !2, !3, !4, !5, !6}
|
|
|
|
!0 = !DIExpression()
|
|
!1 = !DIExpression(DW_OP_deref)
|
|
!2 = !DIExpression(DW_OP_constu, 3, DW_OP_plus)
|
|
!3 = !DIExpression(DW_OP_LLVM_fragment, 3, 7)
|
|
!4 = !DIExpression(DW_OP_deref, DW_OP_plus_uconst, 3, DW_OP_LLVM_fragment, 3, 7)
|
|
!5 = !DIExpression(DW_OP_constu, 2, DW_OP_swap, DW_OP_xderef)
|
|
!6 = !DIExpression(DW_OP_plus_uconst, 3)
|