mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-19 17:37:24 +00:00
19 lines
315 B
LLVM
19 lines
315 B
LLVM
|
|
||
|
%str = type { int*, int* }
|
||
|
|
||
|
implementation
|
||
|
|
||
|
void %bar(%str* %S, bool %C) {
|
||
|
br bool %C, label %T, label %F
|
||
|
T:
|
||
|
%A = getelementptr %str* %S, long 0, ubyte 0
|
||
|
br label %Out
|
||
|
F:
|
||
|
%B = getelementptr %str* %S, long 0, ubyte 1
|
||
|
br label %Out
|
||
|
Out:
|
||
|
%P = phi int** [%A, %T], [%B, %F]
|
||
|
store int* null, int** %P
|
||
|
ret void
|
||
|
}
|