summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
diff options
context:
space:
mode:
authorKang Zhang <shkzhang@cn.ibm.com>2019-04-30 03:39:05 +0000
committerKang Zhang <shkzhang@cn.ibm.com>2019-04-30 03:39:05 +0000
commitd43b66b3187c28c765bcfbaa159e8e805dd74519 (patch)
tree0d9a3b3fc482ec5b491f3c7378f32ad47d298fa2 /llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
parent49d60fdc2e8e0fd7d1e33e84322fbe2c674e4f1e (diff)
downloadbcm5719-llvm-d43b66b3187c28c765bcfbaa159e8e805dd74519.tar.gz
bcm5719-llvm-d43b66b3187c28c765bcfbaa159e8e805dd74519.zip
[NFC][PowerPC] Use -check-prefixes to simplify the check in code-align.ll
Summary: When checking the same output, we can use the `-check-prefixes` to simplify the check. For example, if we want to check below output. ``` ; GENERIC-LABEL: .globl foo ; BASIC-LABEL: .globl foo ; PWR-LABEL: .globl foo ; GENERIC: .p2align 2 ; BASIC: .p2align 4 ; PWR: .p2align 4 ; GENERIC: @foo ; BASIC: @foo ; PWR: @foo ``` If we use `-check-prefixes` ``` ... -check-prefixes=CHECK,GENERAL ... -check-prefixes=CHECK,BASIC ... -check-prefixes=CHECK,PWR ``` Above check can be simplify to: ``` ; CHECK-LABEL: .globl foo ; GENERIC: .p2align 2 ; BASIC: .p2align 4 ; PWR: .p2align 4 ; CHECK: @foo ``` Reviewed By: hfinkel Differential Revision: https://reviews.llvm.org/D61227 llvm-svn: 359533
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud