aboutsummaryrefslogtreecommitdiffstats
path: root/test/Feature
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-09-29 00:01:14 +0000
committerDevang Patel <dpatel@apple.com>2009-09-29 00:01:14 +0000
commit0475c9170e9621292a48c688c3976031be5650bb (patch)
tree27fa176e397a7b67a917a5fe229c48e86bf41bdd /test/Feature
parent9ad675893f8357add0015531dc53892bb017e54b (diff)
downloadexternal_llvm-0475c9170e9621292a48c688c3976031be5650bb.zip
external_llvm-0475c9170e9621292a48c688c3976031be5650bb.tar.gz
external_llvm-0475c9170e9621292a48c688c3976031be5650bb.tar.bz2
Parse custom metadata attached with an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/md_on_instruction.ll8
-rw-r--r--test/Feature/md_on_instruction2.ll10
2 files changed, 9 insertions, 9 deletions
diff --git a/test/Feature/md_on_instruction.ll b/test/Feature/md_on_instruction.ll
index 3fa0b61..d765cd8 100644
--- a/test/Feature/md_on_instruction.ll
+++ b/test/Feature/md_on_instruction.ll
@@ -4,13 +4,13 @@ define i32 @foo() nounwind ssp {
entry:
%retval = alloca i32 ; <i32*> [#uses=2]
call void @llvm.dbg.func.start(metadata !0)
- store i32 42, i32* %retval, dbg !3
- br label %0, dbg !3
+ store i32 42, i32* %retval, !dbg !3
+ br label %0, !dbg !3
; <label>:0 ; preds = %entry
call void @llvm.dbg.region.end(metadata !0)
- %1 = load i32* %retval, dbg !3 ; <i32> [#uses=1]
- ret i32 %1, dbg !3
+ %1 = load i32* %retval, !dbg !3 ; <i32> [#uses=1]
+ ret i32 %1, !dbg !3
}
declare void @llvm.dbg.func.start(metadata) nounwind readnone
diff --git a/test/Feature/md_on_instruction2.ll b/test/Feature/md_on_instruction2.ll
index f5bd513..da9e49e 100644
--- a/test/Feature/md_on_instruction2.ll
+++ b/test/Feature/md_on_instruction2.ll
@@ -1,15 +1,15 @@
-; RUN: llvm-as < %s | llvm-dis | grep " dbg " | count 4
+; RUN: llvm-as < %s | llvm-dis | grep " !dbg " | count 4
define i32 @foo() nounwind ssp {
entry:
%retval = alloca i32 ; <i32*> [#uses=2]
call void @llvm.dbg.func.start(metadata !0)
- store i32 42, i32* %retval, dbg !3
- br label %0, dbg !3
+ store i32 42, i32* %retval, !dbg !3
+ br label %0, !dbg !3
; <label>:0 ; preds = %entry
call void @llvm.dbg.region.end(metadata !0)
- %1 = load i32* %retval, dbg !3 ; <i32> [#uses=1]
- ret i32 %1, dbg !3
+ %1 = load i32* %retval, !dbg !3 ; <i32> [#uses=1]
+ ret i32 %1, !dbg !3
}
declare void @llvm.dbg.func.start(metadata) nounwind readnone