Displaying 4 results from an estimated 4 matches for "ins_h".
2011 May 09
2
[LLVMdev] <badref> showed up when duplicating a list of dependent instructions
...and insert them into a PREVIOUS location inside the same function (all
globals and locals are properly declared before the PREVIOUS location).
Here is the list of instructions I want to duplicate and insert:
0 %90 = load i32* @strstart, align 4
1 %91 = add i32 %90, 2
2 %88 = load i32* @ins_h, align 4
3 %92 = getelementptr inbounds [65536 x i8]* @window, i32 0, i32 %91
4 %89 = shl i32 %88, 5
5 %93 = load i8* %92, align 1
6 %.masked = and i32 %89, 32736
7 %94 = zext i8 %93 to i32
8 %95 = xor i32 %94, %.masked
9 %.sum73 = or i32 %95, 32768
10 %104 = getelementptr i...
2011 May 09
0
[LLVMdev] <badref> showed up when duplicating a list of dependent instructions
...in(); p != coll.end(); ++p){
> Instruction * CurI = * p;
> Instruction * CloneI = CurI->clone();
clone doesn't know have any magical way of knowing that it should update the
instruction's operands to point to the clone you created earlier. For example,
consider
%l = load i32* @ins_h, align 4
%s = shl i32 %l, 5
You clone %l, getting:
%lc = load i32* @ins_h, align 4
You clone %s, getting:
%sc = shl i32 %l, 5
But %sc still has %l as an operand. You want it to have %lc as an
operand, which requires doing more.
Ciao, Duncan.
> CloneI->setName(CurI->getName());...
2011 May 04
2
[LLVMdev] identifying all dependent instructions through multi-levels of def-use relationship
...; preds = %bb29,
%bb30.preheader
%match_length.354 = phi i32 [ %match_length.2.ph, %bb29 ], [ 2,
%bb30.preheader ]
%match_available.153 = phi i32 [ %match_available.0.ph, %bb29 ], [ 0,
%bb30.preheader ]
tail call void @start_ckpt() nounwind noinline
%88 = load i32* @ins_h, align 4 ; [0]
%89 = shl i32 %88, 5 ;[1]
%90 = load i32* @strstart, align 4 ; [2]
%91 = add i32 %90, 2 ; [3]
%92 = getelementptr inbounds [65536 x i8]* @window, i32 0, i32 %91
; [4]
%93 = load...
2011 May 05
0
[LLVMdev] identifying all dependent instructions through multi-levels of def-use relationship
...29,
> %bb30.preheader
> %match_length.354 = phi i32 [ %match_length.2.ph, %bb29 ], [ 2,
> %bb30.preheader ]
> %match_available.153 = phi i32 [ %match_available.0.ph, %bb29 ], [
> 0, %bb30.preheader ]
> tail call void @start_ckpt() nounwind noinline
> %88 = load i32* @ins_h, align 4 ; [0]
> %89 = shl i32 %88, 5 ;[1]
> %90 = load i32* @strstart, align 4 ; [2]
> %91 = add i32 %90, 2 ; [3]
> %92 = getelementptr inbounds [65536 x i8]* @window, i32 0, i32 %91
>...