mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Add support for embedded metadata to LLVM. This introduces two new types of
Constant, MDString and MDNode which can only be used by globals with a name that starts with "llvm." or as arguments to a function with the same naming restriction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
11
test/Feature/embeddedmetadata.ll
Normal file
11
test/Feature/embeddedmetadata.ll
Normal file
@@ -0,0 +1,11 @@
|
||||
; RUN: llvm-as < %s | llvm-dis | not grep undef
|
||||
|
||||
declare i8 @llvm.something({ } %a)
|
||||
|
||||
@llvm.foo = internal constant { } !{i17 123, { } !"foobar"}
|
||||
|
||||
define void @foo() {
|
||||
%x = call i8 @llvm.something({ } !{{ } !"f\00oa", i42 123})
|
||||
ret void
|
||||
}
|
||||
|
Reference in New Issue
Block a user