search for: islegaltohoistinto

Displaying 2 results from an estimated 2 matches for "islegaltohoistinto".

2020 Nov 12
2
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...Logic(MachineFunction &MF, MachineBasicBlock* origMBB) { const llvm::TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); auto MMI = &MF.getMMI(); llvm::Module &M = const_cast<Module &>(*MMI->getModule()); if (origMBB->empty() || !origMBB->isLegalToHoistInto()) return; llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), TII.get(X86::POP64r)).addReg(X86::RCX); /* SOME ADDITIONAL LOGIC COMMENTED OUT */ llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), TII.get(X86::PUSH64r)).addReg(X86::RCX); } bool Virtual...
2020 Nov 12
0
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...p;MF, > MachineBasicBlock* origMBB) { > const llvm::TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); > auto MMI = &MF.getMMI(); > llvm::Module &M = const_cast<Module &>(*MMI->getModule()); > if (origMBB->empty() || !origMBB->isLegalToHoistInto()) > return; > llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), > TII.get(X86::POP64r)).addReg(X86::RCX); > /* SOME ADDITIONAL LOGIC COMMENTED OUT */ > llvm::BuildMI(*origMBB, origMBB->begin(), DebugLoc(), > TII.get(X86::PUSH64r)).ad...