#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineOperand.h"
-#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/Support/Debug.h"
StringRef getPassName() const override {
return "X86 insert wait instruction";
}
-
-private:
- const TargetInstrInfo *TII; // Machine instruction info.
};
} // namespace
return false;
const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>();
- TII = ST.getInstrInfo();
+ const X86InstrInfo *TII = ST.getInstrInfo();
bool Changed = false;
for (MachineBasicBlock &MBB : MF) {