llvm-6502/test/Feature/embeddedmetadata.ll
Devang Patel e54abc90fe Introduce MetadataBase, a base class for MDString and MDNode.
Derive MDString directly from MetadataBase. 
Introduce new bitcode block to hold metadata.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76759 91177308-0d34-0410-b5e6-96231b3b80d8
2009-07-22 17:43:22 +00:00

14 lines
327 B
LLVM

; RUN: llvm-as < %s | llvm-dis | not grep undef
declare i8 @llvm.something(metadata %a, i32 %b, metadata %c)
;; Simple MDNode
!21 = metadata !{i17 123, null, metadata !"foobar"}
define void @foo() {
;; Intrinsic using MDNode and MDString
%x = call i8 @llvm.something(metadata !21, i32 42, metadata !"bar")
ret void
}