[llvm-commits] [llvm] r103007 - in /llvm/trunk: lib/VMCore/Metadata.cpp test/Transforms/GlobalOpt/metadata.ll

Devang Patel dpatel at apple.com
Tue May 4 13:14:35 PDT 2010


On May 4, 2010, at 1:11 PM, Duncan Sands wrote:

> Hi Devang,
> 
>> Try replace llvm.dbg.value with llvm.foo.bar in test. It fails. I have not analyzed why.
> 
> I've replaced it with llvm.foo, which works here.

Are you sure ? I do not have any local patch and the third metadata parameter is dropped by AsmParser here. This is what I see after parsing is done.

@G = internal global i8** null                    ; <i8***> [#uses=1]

define i32 @main(i32 %argc, i8** %argv) {
  store i8** %argv, i8*** @G
  ret i32 0
}

define void @foo(i32 %x) {
  call void @llvm.foo(metadata !{i8*** @G, i32 %x}, i64 0, metadata !-1)
  ret void
}

declare void @llvm.foo(metadata, i64, metadata) nounwind readnone

!named = !{!0}

!0 = metadata !{i8*** @G}

-
Devang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100504/f4bf402e/attachment.html>


More information about the llvm-commits mailing list