mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Convert uint gep operands to long
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4528 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69afeca154
commit
2b0679ff0b
@ -10,8 +10,8 @@ int "do_merge"()
|
||||
begin
|
||||
%reg108 = call int %connect_left( )
|
||||
%cast1002 = cast ulong 8 to sbyte *
|
||||
%reg108-idxcast = cast int %reg108 to uint
|
||||
%reg1000 = getelementptr sbyte * %cast1002, uint %reg108-idxcast
|
||||
%reg108-idxcast = cast int %reg108 to long
|
||||
%reg1000 = getelementptr sbyte * %cast1002, long %reg108-idxcast
|
||||
%cast1003 = cast sbyte * %reg1000 to sbyte * *
|
||||
%reg112 = load sbyte * * %cast1003
|
||||
%cast111 = cast sbyte * %reg112 to int
|
||||
|
@ -11,9 +11,9 @@ implementation
|
||||
void "build_image_array"()
|
||||
begin
|
||||
bb0: ;[#uses=0]
|
||||
%reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, uint 7 ; <%Disjunct * * *> [#uses=1]
|
||||
%reg109 = getelementptr %Disjunct * * * %chosen_disjuncts, long 7 ; <%Disjunct * * *> [#uses=1]
|
||||
%reg108 = load %Disjunct * * * %reg109 ; <%Disjunct * *> [#uses=1]
|
||||
%reg1000 = getelementptr %Disjunct * * %reg108, uint 3 ; <%Disjunct * *> [#uses=1]
|
||||
%reg1000 = getelementptr %Disjunct * * %reg108, long 3 ; <%Disjunct * *> [#uses=1]
|
||||
%cast1007 = cast %Disjunct * * %reg1000 to sbyte * * ; <sbyte * *> [#uses=1]
|
||||
%reg110 = load sbyte * * %cast1007 ; <sbyte *> [#uses=1]
|
||||
%cast1008 = cast ulong 4 to sbyte * ; <sbyte *> [#uses=1]
|
||||
|
@ -14,7 +14,7 @@ bb0: ;[#uses=1]
|
||||
%A = cast %Village* %village to ulong
|
||||
%reg123 = add ulong %A, %cast121 ; <%Village *> [#uses=1]
|
||||
%reg123 = cast ulong %reg123 to %Village*
|
||||
%idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
|
||||
%idx = getelementptr %Village * %reg123, long 0, ubyte 0, long 0 ; <%Village *> [#uses=1]
|
||||
%reg118 = load %Village** %idx
|
||||
ret %Village *%reg118
|
||||
end
|
||||
|
@ -21,10 +21,10 @@ bb1: ;[#uses=0]
|
||||
%reg115 = malloc sbyte *, uint 1 ; <sbyte * *> [#uses=1]
|
||||
store sbyte * * %reg115, sbyte * * * %reg112
|
||||
%reg121 = load sbyte * * * %reg112 ; <sbyte * *> [#uses=1]
|
||||
%size-idxcast1 = cast int %size to uint ; <uint> [#uses=1]
|
||||
%reg1221 = getelementptr sbyte * * %reg121, uint %size-idxcast1 ; <sbyte * *> [#uses=1]
|
||||
%size-idxcast1 = cast int %size to long ; <uint> [#uses=1]
|
||||
%reg1221 = getelementptr sbyte * * %reg121, long %size-idxcast1 ; <sbyte * *> [#uses=1]
|
||||
store sbyte * null, sbyte * * %reg1221
|
||||
%reg232 = getelementptr sbyte * * * %reg112, uint 1 ; <sbyte * * *> [#uses=1]
|
||||
%reg232 = getelementptr sbyte * * * %reg112, long 1 ; <sbyte * * *> [#uses=1]
|
||||
%cast243 = cast int (uint) * %map to sbyte * * ; <sbyte * *> [#uses=1]
|
||||
store sbyte * * %cast243, sbyte * * * %reg232
|
||||
%cast246 = cast sbyte * * * %reg112 to %Hash ; <%Hash> [#uses=1]
|
||||
|
@ -12,13 +12,13 @@ bb0: ;[#uses=0]
|
||||
br bool %cond220, label %bb5, label %bb2
|
||||
|
||||
bb2: ;[#uses=3]
|
||||
%reg2221 = getelementptr sbyte*** %cast219, uint 6 ; <sbyte***> [#uses=1]
|
||||
%reg2221 = getelementptr sbyte*** %cast219, long 6 ; <sbyte***> [#uses=1]
|
||||
%reg108 = load sbyte*** %reg2221 ; <sbyte**> [#uses=3]
|
||||
%reg2251 = getelementptr sbyte** %reg108, uint 5 ; <sbyte**> [#uses=1]
|
||||
%reg2251 = getelementptr sbyte** %reg108, long 5 ; <sbyte**> [#uses=1]
|
||||
store sbyte* null, sbyte** %reg2251
|
||||
%reg2281 = getelementptr sbyte*** %cast219, uint 6 ; <sbyte***> [#uses=1]
|
||||
%reg2281 = getelementptr sbyte*** %cast219, long 6 ; <sbyte***> [#uses=1]
|
||||
store sbyte** null, sbyte*** %reg2281
|
||||
%reg2311 = getelementptr sbyte*** %cast219, uint 5 ; <sbyte***> [#uses=1]
|
||||
%reg2311 = getelementptr sbyte*** %cast219, long 5 ; <sbyte***> [#uses=1]
|
||||
%reg114 = load sbyte*** %reg2311 ; <sbyte**> [#uses=2]
|
||||
%cond234 = seteq sbyte** %reg114, null ; <bool> [#uses=1]
|
||||
br bool %cond234, label %bb4, label %bb3
|
||||
@ -26,12 +26,12 @@ bb2: ;[#uses=3]
|
||||
bb3: ;[#uses=4]
|
||||
%reg115 = phi sbyte*** [ %cast117, %bb3 ], [ %cast219, %bb2 ] ; <sbyte***> [#uses=2]
|
||||
%reg116 = phi sbyte** [ %cast118, %bb3 ], [ %reg114, %bb2 ] ; <sbyte**> [#uses=4]
|
||||
%reg236 = getelementptr sbyte** %reg116, uint 5 ; <sbyte**> [#uses=1]
|
||||
%reg236 = getelementptr sbyte** %reg116, long 5 ; <sbyte**> [#uses=1]
|
||||
%reg110 = load sbyte** %reg236 ; <sbyte*> [#uses=1]
|
||||
%reg239 = getelementptr sbyte** %reg116, uint 5 ; <sbyte**> [#uses=1]
|
||||
%reg239 = getelementptr sbyte** %reg116, long 5 ; <sbyte**> [#uses=1]
|
||||
%cast241 = cast sbyte*** %reg115 to sbyte* ; <sbyte*> [#uses=1]
|
||||
store sbyte* %cast241, sbyte** %reg239
|
||||
%reg242 = getelementptr sbyte*** %reg115, uint 6 ; <sbyte***> [#uses=1]
|
||||
%reg242 = getelementptr sbyte*** %reg115, long 6 ; <sbyte***> [#uses=1]
|
||||
store sbyte** %reg116, sbyte*** %reg242
|
||||
%cast117 = cast sbyte** %reg116 to sbyte*** ; <sbyte***> [#uses=1]
|
||||
%cast118 = cast sbyte* %reg110 to sbyte** ; <sbyte**> [#uses=2]
|
||||
@ -39,9 +39,9 @@ bb3: ;[#uses=4]
|
||||
br bool %cond245, label %bb3, label %bb4
|
||||
|
||||
bb4: ;[#uses=2]
|
||||
%reg247 = getelementptr sbyte*** %cast219, uint 5 ; <sbyte***> [#uses=1]
|
||||
%reg247 = getelementptr sbyte*** %cast219, long 5 ; <sbyte***> [#uses=1]
|
||||
store sbyte** %reg108, sbyte*** %reg247
|
||||
%reg250 = getelementptr sbyte** %reg108, uint 6 ; <sbyte**> [#uses=2]
|
||||
%reg250 = getelementptr sbyte** %reg108, long 6 ; <sbyte**> [#uses=2]
|
||||
cast sbyte** %reg250 to sbyte**** ; <sbyte****>:0 [#uses=0]
|
||||
%cast252 = cast sbyte*** %cast219 to sbyte* ; <sbyte*> [#uses=1]
|
||||
store sbyte* %cast252, sbyte** %reg250
|
||||
|
@ -18,7 +18,7 @@ bb2: ;[#uses=3]
|
||||
bb5: ;[#uses=2]
|
||||
%reg125 = phi sbyte* [ %reg126, %bb2], [ null, %0 ]
|
||||
%reg263 = malloc sbyte*, uint 3 ; <sbyte**> [#uses=4]
|
||||
%reg2641 = getelementptr sbyte** %reg263, uint 1 ; <sbyte**> [#uses=1]
|
||||
%reg2641 = getelementptr sbyte** %reg263, long 1 ; <sbyte**> [#uses=1]
|
||||
store sbyte* %reg125, sbyte** %reg2641
|
||||
store sbyte* %reg125, sbyte** %reg263
|
||||
%cast271 = cast sbyte** %reg263 to %CON_node* ; <%CON_node*> [#uses=1]
|
||||
|
Loading…
Reference in New Issue
Block a user