[llvm-commits] [llvm] r92793 - in /llvm/trunk: lib/AsmParser/LLParser.cpp lib/AsmParser/LLParser.h test/Assembler/functionlocal-metadata.ll
Devang Patel
dpatel at apple.com
Tue Jan 5 16:57:41 PST 2010
On Jan 5, 2010, at 2:22 PM, Victor Hernandez wrote:
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/test/Assembler/functionlocal-metadata.ll (added)
> +++ llvm/trunk/test/Assembler/functionlocal-metadata.ll Tue Jan 5
> 16:22:14 2010
> @@ -0,0 +1,22 @@
> +; RUN: llvm-as < %s | llvm-dis | grep {ret void, !foo !0, !bar !1}
> +
> +define void @Foo(i32 %a, i32 %b) {
> +entry:
> + %0 = add i32 %a, 1 ; <i32> [#uses=1]
> + %two = add i32 %b, 2 ; <i32> [#uses=2]
> +
> + call void @llvm.dbg.func.start(metadata !{i32 %0})
> + call void @llvm.dbg.func.start(metadata !{i32 %b, i32 %0})
> + call void @llvm.dbg.func.start(metadata !{i32 %a, metadata !"foo"})
> + call void @llvm.dbg.func.start(metadata !{metadata !0, i32 %two})
> +
> + ret void, !foo !0, !bar !1
> +}
> +
> +!0 = metadata !{i32 662302, i32 26, metadata !1, null}
> +!1 = metadata !{i32 4, metadata !"foo"}
> +
> +declare void @llvm.dbg.func.start(metadata) nounwind readnone
> +
> +!foo = !{ !0 }
> +!bar = !{ !1 }
>
Pl. avoid using dead intrinsic (llvm.dbg.func.start) in new test cases.
-
Devang
More information about the llvm-commits
mailing list