search for: splitblockbeforeinstr

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

2020 Mar 13
2
How to simply split MachineBasicBlock ?
...ng some machine function pass. I want to split MachineBasicBlcok when I find some specific machine instruction. But I don't insert or delete any machine instruction. I just "simply" , "purely" split the MachineBasicBlcok. (So, I stole the idea from ARM64BranchRelaxation::splitBlockBeforeInstr.) This is my code : // I would pass call instruction to this function void split_mbb(MachineInstr* mi){ MachineBasicBlock* mbb=mi->getParent(); MachineFunction* mf=mbb->getParent(); MachineBasicBlock* new_mbb=mf->CreateMachineBasicBlock(mbb->getBasicBlock()); MachineFunction...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...Offset += ARM::GetInstSize(MI), > + Offset += TII->GetInstSize(MI), > MI = next(MI)) { > if (CPUIndex < CPUsers.size() && CPUsers[CPUIndex].MI == MI) { > if (!OffsetIsInRange(Offset, EndInsertOffset, > @@ -1225,7 +1225,7 @@ > SplitBlockBeforeInstr(MI); > // No need for the branch to the next block. We're adding a > unconditional > // branch to the destination. > - int delta = ARM::GetInstSize(&MBB->back()); > + int delta = TII->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