search for: setdesc

Displaying 8 results from an estimated 8 matches for "setdesc".

Did you mean: getdesc
2013 Feb 14
0
[LLVMdev] changing opcode
...ect: [LLVMdev] changing opcode > > Is there a simple way to just change the opcode of a machine > instruction. > > I have a lot of long/short pairs where when I know the offset, i can > replace the long version with the short version. Are you looking for something like this: MI.setDesc(TII.get(NewOpcode)); This is in PPCRegisterInfo::eliminateFrameIndex. -Hal > > Tia. > > REed > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailm...
2013 Nov 18
3
[LLVMdev] possible thumb bug in constant islands
...ands::fixupUnconditionalBr(ImmBranch &Br) { MachineInstr *MI = Br.MI; 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 Feb 14
5
[LLVMdev] changing opcode
Is there a simple way to just change the opcode of a machine instruction. I have a lot of long/short pairs where when I know the offset, i can replace the long version with the short version. Tia. REed
2013 Nov 19
0
[LLVMdev] possible thumb bug in constant islands
...(ImmBranch &Br) { > MachineInstr *MI = Br.MI; > 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
1
[LLVMdev] possible thumb bug in constant islands
...neInstr *MI = Br.MI; >> 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; &...
2019 Feb 02
3
GlobalISEL, and MachineMemOperands?
Looking through the X86 GlobalISEL code for selecting loads and stores, I'm not seeing the creation of the MachineMemOperands I'd expect to see and do see being generated by SelectionDAG.  Is this simply an oversight, or is there some aspect of the new design which pushes us away from MMOs? Various parts of the machine instruction level optimization passes use the existence and
2015 Jan 11
3
[LLVMdev] [RFC] [PATCH] add tail call optimization to thumb1-only targets
...continue; - // ARMv4T requires BX, see emitEpilogue - if (STI.hasV4TOps() && !STI.hasV5TOps()) + + // ARMv4T and tail call returns require BX, see emitEpilogue + if ((STI.hasV4TOps() && !STI.hasV5TOps())) continue; + Reg = ARM::PC; (*MIB).setDesc(TII.get(ARM::tPOP_RET)); MIB.copyImplicitOps(&*MI); Index: ARMSubtarget.cpp =================================================================== --- ARMSubtarget.cpp (Revision 225589) +++ ARMSubtarget.cpp (Arbeitskopie) @@ -262,7 +262,7 @@ SupportsTailCall = !isTargetIOS() || !getTar...
2012 Apr 19
0
[LLVMdev] Target Dependent Hexagon Packetizer patch
...nInstrInfo *QII = (const HexagonInstrInfo *) TII; >> + >> + int NewOpcode; >> + if (RC == Hexagon::PredRegsRegisterClass) >> + NewOpcode = GetDotNewPredOp(MI->getOpcode()); >> + else >> + NewOpcode = GetDotNewOp(MI->getOpcode()); >> + MI->setDesc(QII->get(NewOpcode)); >> + >> + return true; >> +} >> + >> +// Returns the most basic instruction for the .new predicated instructions and >> +// new-value stores. >> +// For example, all of the following instructions will be converted back to the >&...