mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-25 14:32:53 +00:00
f493a569c3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1474 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
366 B
LLVM
19 lines
366 B
LLVM
|
|
%MyVar = uninitialized global int
|
|
%MyIntList = uninitialized global { \2 *, int }
|
|
uninitialized global int ; int*:0
|
|
|
|
%AConst = constant int 123
|
|
|
|
%AString = constant [4 x ubyte] c"test"
|
|
|
|
implementation
|
|
|
|
int "foo"(int %blah)
|
|
begin
|
|
store int 5, int *%MyVar
|
|
store int 12, { \2 *, int } * %MyIntList, uint 0, ubyte 1
|
|
ret int %blah
|
|
end
|
|
|