summaryrefslogtreecommitdiff
path: root/test/Transforms/Internalize
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-07-14 01:50:49 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-07-14 01:50:49 +0000
commit15bfd6d3ad739cca0a12049f3e7e94c3645ee881 (patch)
tree21476928d99a2db9bfb4a6af003f4030160d4703 /test/Transforms/Internalize
parent39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (diff)
downloadllvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.gz
llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.bz2
llvm-15bfd6d3ad739cca0a12049f3e7e94c3645ee881.tar.xz
Catch more CHECK that can be converted to CHECK-LABEL in Transforms for easier debugging. No functionality change.
This conversion was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/Internalize')
-rw-r--r--test/Transforms/Internalize/2008-05-09-AllButMain.ll30
-rw-r--r--test/Transforms/Internalize/available_externally.ll6
2 files changed, 18 insertions, 18 deletions
diff --git a/test/Transforms/Internalize/2008-05-09-AllButMain.ll b/test/Transforms/Internalize/2008-05-09-AllButMain.ll
index c07abb0c63..f75e80d4c8 100644
--- a/test/Transforms/Internalize/2008-05-09-AllButMain.ll
+++ b/test/Transforms/Internalize/2008-05-09-AllButMain.ll
@@ -27,29 +27,29 @@
; MERGE: @j = global
@j = global i32 0
-; NOARGS: define internal void @main
-; LIST: define internal void @main
-; EMPTYFILE: define internal void @main
-; LIST2: define internal void @main
-; MERGE: define internal void @main
+; NOARGS-LABEL: define internal void @main(
+; LIST-LABEL: define internal void @main(
+; EMPTYFILE-LABEL: define internal void @main(
+; LIST2-LABEL: define internal void @main(
+; MERGE-LABEL: define internal void @main(
define void @main() {
ret void
}
-; NOARGS: define internal void @foo
-; LIST: define void @foo
-; EMPTYFILE: define internal void @foo
-; LIST2: define void @foo
-; MERGE: define void @foo
+; NOARGS-LABEL: define internal void @foo(
+; LIST-LABEL: define void @foo(
+; EMPTYFILE-LABEL: define internal void @foo(
+; LIST2-LABEL: define void @foo(
+; MERGE-LABEL: define void @foo(
define void @foo() {
ret void
}
-; NOARGS: define internal void @bar
-; LIST: define internal void @bar
-; EMPTYFILE: define internal void @bar
-; LIST2: define void @bar
-; MERGE: define void @bar
+; NOARGS-LABEL: define internal void @bar(
+; LIST-LABEL: define internal void @bar(
+; EMPTYFILE-LABEL: define internal void @bar(
+; LIST2-LABEL: define void @bar(
+; MERGE-LABEL: define void @bar(
define void @bar() {
ret void
}
diff --git a/test/Transforms/Internalize/available_externally.ll b/test/Transforms/Internalize/available_externally.ll
index a2cf23fb39..bb8960384a 100644
--- a/test/Transforms/Internalize/available_externally.ll
+++ b/test/Transforms/Internalize/available_externally.ll
@@ -1,16 +1,16 @@
; RUN: opt < %s -internalize -internalize-public-api-list foo -S | FileCheck %s
-; CHECK: define void @foo
+; CHECK-LABEL: define void @foo(
define void @foo() {
ret void
}
-; CHECK: define internal void @zed
+; CHECK-LABEL: define internal void @zed(
define void @zed() {
ret void
}
-; CHECK: define available_externally void @bar
+; CHECK-LABEL: define available_externally void @bar(
define available_externally void @bar() {
ret void
}