38 const std::string FEntryName =
40 if (FEntryName !=
"true")
43 auto &FirstMBB = *MF.
begin();
44 auto &FirstMI = *FirstMBB.begin();
47 BuildMI(FirstMBB, FirstMI, FirstMI.getDebugLoc(),
48 TII->get(TargetOpcode::FENTRY_CALL));
54 INITIALIZE_PASS(FEntryInserter,
"fentry-insert",
"Insert fentry calls",
false,
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
char & FEntryInserterID
This pass inserts FEntry calls.
Attribute getFnAttribute(Attribute::AttrKind Kind) const
Return the attribute for the given attribute kind.
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
const HexagonInstrInfo * TII
void initializeFEntryInserterPass(PassRegistry &)
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
Module.h This file contains the declarations for the Module class.
StringRef getValueAsString() const
Return the attribute's value as a string.
virtual const TargetInstrInfo * getInstrInfo() const