Displaying 2 results from an estimated 2 matches for "__insertvtllogic".
2020 Nov 12
2
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...I have a X86
MachineFunctionPass added to addPreEmitPass2 stage which simply inserts a
push rcx immediately followed by pop rcx before each basic block (only the
relevant logic portions are included):
/* Inserts push rcx followed by pop rcx before each MachineBasicBlock */
void VirtualTimeManager::__insertVtlLogic(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->isLeg...
2020 Nov 12
0
LLVM X86 MachineBasicBlock inserting push and pop instructions causes segmentation fault
...tionPass added to addPreEmitPass2 stage which simply inserts
> a push rcx immediately followed by pop rcx before each basic block (only
> the relevant logic portions are included):
>
> /* Inserts push rcx followed by pop rcx before each MachineBasicBlock */
> void VirtualTimeManager::__insertVtlLogic(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->empt...