search for: bb25

Displaying 3 results from an estimated 3 matches for "bb25".

Did you mean: bb2
2011 Aug 19
1
[LLVMdev] Break operands into multiple instructions
...ies. I am using clang++ (version 2.9) to compile cpp code into LLVM bit code. When I generate the llvm bit code using clang++ using -O3, I get many instances of instructions that look like the following. br i1 icmp ne (i8* bitcast (i32 (i32)* @pthread_cancel to i8*), i8* null), label %bb23, label %bb25 Here three LLVM instructions are used in one instruction, namely br, icmp and bitcast. Is there a way to tell clang++ to break the operand of br into 3 separate instructions or a pass that exists that does it. Ideally, I would like to see the following I8* tmp0 = i8* bitcast (i32 (i32)* @pthread_...
2010 Apr 20
2
[LLVMdev] How to delete a instruction?
...%i.0.reg2mem.0) nounwind ; <i32> [#uses=1] - %tmp16 = add i32 %tmp14, %s.0.reg2mem.0 ; <i32> [#uses=2] %indvar.next = add i32 %i.0.reg2mem.0, 1 ; <i32> [#uses=2] %exitcond = icmp eq i32 %indvar.next, %n ; <i1> [#uses=1] br i1 %exitcond, label %bb25, label %bb12 For example, I want to delete the instructions above with symbol '-' in front, but when I delete the first one, I got the next prompt message: While deleting: i32 %s.0.reg2mem.0 Use still stuck around after Def is destroyed: %tmp16 = add i32 %tmp14, %s.0.reg2mem.0 ;...
2010 Apr 20
0
[LLVMdev] How to delete a instruction?
...<i32> > [#uses=1] > - %tmp16 = add i32 %tmp14, %s.0.reg2mem.0 ; <i32> [#uses=2] > %indvar.next = add i32 %i.0.reg2mem.0, 1 ; <i32> [#uses=2] > %exitcond = icmp eq i32 %indvar.next, %n ; <i1> [#uses=1] > br i1 %exitcond, label %bb25, label %bb12 > > For example, I want to delete the instructions above with symbol '-' > in front, but when I delete the first one, I got the next prompt message: > > While deleting: i32 %s.0.reg2mem.0 > Use still stuck around after Def is destroyed: %tmp16 = add i32 &gt...