mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 01:13:25 +00:00
f493a569c3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1474 91177308-0d34-0410-b5e6-96231b3b80d8
33 lines
803 B
LLVM
33 lines
803 B
LLVM
|
|
%MyVar = global int 4
|
|
%MyIntList = uninitialized global { \2 *, int }
|
|
|
|
%AConst = constant int 123
|
|
|
|
%Intern1 = internal constant int 52 ;; Intern in both testlink[12].ll
|
|
%Intern2 = constant int 12345 ;; Intern in one but not in other
|
|
|
|
%MyIntListPtr = constant { {\2,int}* } { {\2,int}* %MyIntList }
|
|
%MyVarPtr = global { int * } { int * %MyVar }
|
|
|
|
constant int 412
|
|
|
|
implementation
|
|
|
|
int "foo"(int %blah)
|
|
begin
|
|
store int %blah, int *%MyVar
|
|
store int 12, { \2 *, int } * %MyIntList, uint 0, ubyte 1
|
|
|
|
%ack = load int * %0 ;; Load from the unnamed constant
|
|
%fzo = add int %ack, %blah
|
|
ret int %fzo
|
|
end
|
|
|
|
declare void "unimp"(float, double)
|
|
|
|
internal void "testintern"() begin ret void end
|
|
void "Testintern"() begin ret void end
|
|
internal void "testIntern"() begin ret void end
|
|
|