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