search for: adjustbboffsetsafter

Displaying 5 results from an estimated 5 matches for "adjustbboffsetsafter".

2013 Nov 18
3
[LLVMdev] possible thumb bug in constant islands
...MachineBasicBlock *MBB = MI->getParent(); if (!isThumb1) llvm_unreachable("fixupUnconditionalBr is Thumb1 only!"); // Use BL to implement far jump. Br.MaxDisp = (1 << 21) * 2; MI->setDesc(TII->get(ARM::tBfar)); BBInfo[MBB->getNumber()].Size += 2; adjustBBOffsetsAfter(MBB); HasFarJump = true; ++NumUBrFixed; DEBUG(dbgs() << " Changed B to long jump " << *MI); return true; }
2013 Nov 19
0
[LLVMdev] possible thumb bug in constant islands
...MI->getParent(); > if (!isThumb1) > llvm_unreachable("fixupUnconditionalBr is Thumb1 only!"); > > // Use BL to implement far jump. > Br.MaxDisp = (1 << 21) * 2; > MI->setDesc(TII->get(ARM::tBfar)); > BBInfo[MBB->getNumber()].Size += 2; > adjustBBOffsetsAfter(MBB); > HasFarJump = true; > ++NumUBrFixed; > > DEBUG(dbgs() << " Changed B to long jump " << *MI); > > return true; > } > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu...
2013 Nov 19
1
[LLVMdev] possible thumb bug in constant islands
...Thumb1) >> llvm_unreachable("fixupUnconditionalBr is Thumb1 only!"); >> >> // Use BL to implement far jump. >> Br.MaxDisp = (1 << 21) * 2; >> MI->setDesc(TII->get(ARM::tBfar)); >> BBInfo[MBB->getNumber()].Size += 2; >> adjustBBOffsetsAfter(MBB); >> HasFarJump = true; >> ++NumUBrFixed; >> >> DEBUG(dbgs() << " Changed B to long jump " << *MI); >> >> return true; >> } >> >> _______________________________________________ >> LLVM Developers mailing...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...al > // branch to the destination. > - int delta = ARM::GetInstSize(&MBB->back()); > + int delta = TII->GetInstSize(&MBB->back()); > BBSizes[MBB->getNumber()] -= delta; > MachineBasicBlock* SplitBB = next(MachineFunction::iterator(MBB)); > AdjustBBOffsetsAfter(SplitBB, -delta); > @@ -1243,18 +1243,18 @@ > BuildMI(MBB, TII->get(MI->getOpcode())).addMBB(NextBB) > .addImm(CC).addReg(CCReg); > Br.MI = &MBB->back(); > - BBSizes[MBB->getNumber()] += ARM::GetInstSize(&MBB->back()); > + BBSizes[MBB->getNumber...
2008 Apr 15
4
[LLVMdev] Being able to know the jitted code-size before emitting
OK, here's a new patch that adds the infrastructure and the implementation for X86, ARM and PPC of GetInstSize and GetFunctionSize. Both functions are virtual functions defined in TargetInstrInfo.h. For X86, I moved some commodity functions from X86CodeEmitter to X86InstrInfo. What do you think? Nicolas Evan Cheng wrote: > > I think both of these belong to TargetInstrInfo. And