LLVM 24.0.0git
RetpolineThunkInserter Struct Reference
Inheritance diagram for RetpolineThunkInserter:
[legend]

Public Member Functions

const char * getThunkPrefix ()
bool mayUseThunk (const MachineFunction &MF)
bool insertThunks (MachineModuleInfo &MMI, MachineFunction &MF, bool ExistingThunks)
void populateThunk (MachineFunction &MF)
Public Member Functions inherited from llvm::ThunkInserter< RetpolineThunkInserter >
void init (Module &M)
bool run (MachineModuleInfo &MMI, MachineFunction &MF)

Additional Inherited Members

Protected Member Functions inherited from llvm::ThunkInserter< RetpolineThunkInserter >
void createThunkFunction (MachineModuleInfo &MMI, StringRef Name, bool Comdat=true, StringRef TargetAttrs="")
 Create an empty thunk function.
void doInitialization (Module &M)
 Initializes thunk inserter.
const char * getThunkPrefix ()
 Returns common prefix for thunk function's names.
bool mayUseThunk (const MachineFunction &MF)
 Checks if MF may use thunks (true - maybe, false - definitely not).
bool insertThunks (MachineModuleInfo &MMI, MachineFunction &MF, bool ExistingThunks)
 Rewrites the function if necessary, returns the set of thunks added.
void populateThunk (MachineFunction &MF)
 Populate the thunk function with instructions.

Detailed Description

Definition at line 58 of file X86IndirectThunks.cpp.

Member Function Documentation

◆ getThunkPrefix()

const char * RetpolineThunkInserter::getThunkPrefix ( )
inline

Definition at line 59 of file X86IndirectThunks.cpp.

References RetpolineNamePrefix.

◆ insertThunks()

◆ mayUseThunk()

bool RetpolineThunkInserter::mayUseThunk ( const MachineFunction & MF)
inline

Definition at line 60 of file X86IndirectThunks.cpp.

References llvm::MachineFunction::getSubtarget().

◆ populateThunk()


The documentation for this struct was generated from the following file: