LLVM
8.0.1
|
This class is intended to be used as a driving class for all asm writers. More...
#include "llvm/CodeGen/AsmPrinter.h"
Classes | |
struct | HandlerInfo |
Protected struct HandlerInfo and Handlers permit target extended AsmPrinter adds their own handlers. More... | |
struct | SrcMgrDiagInfo |
struct | XRayFunctionEntry |
Public Types | |
enum | SledKind : uint8_t { SledKind::FUNCTION_ENTER = 0, SledKind::FUNCTION_EXIT = 1, SledKind::TAIL_CALL = 2, SledKind::LOG_ARGS_ENTER = 3, SledKind::CUSTOM_EVENT = 4, SledKind::TYPED_EVENT = 5 } |
enum | CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug } |
using | GOTEquivUsePair = std::pair< const GlobalVariable *, unsigned > |
Map global GOT equivalent MCSymbols to GlobalVariables and keep track of its number of uses by other globals. More... | |
Public Member Functions | |
~AsmPrinter () override | |
DwarfDebug * | getDwarfDebug () |
DwarfDebug * | getDwarfDebug () const |
uint16_t | getDwarfVersion () const |
void | setDwarfVersion (uint16_t Version) |
bool | isPositionIndependent () const |
bool | isVerbose () const |
Return true if assembly output should contain comments. More... | |
unsigned | getFunctionNumber () const |
Return a unique ID for the current function. More... | |
virtual const MCSymbol * | getFunctionFrameSymbol () const |
Return symbol for the function pseudo stack if the stack frame is not a register based. More... | |
MCSymbol * | getFunctionBegin () const |
MCSymbol * | getFunctionEnd () const |
MCSymbol * | getCurExceptionSym () |
const TargetLoweringObjectFile & | getObjFileLowering () const |
Return information about object file lowering. More... | |
const DataLayout & | getDataLayout () const |
Return information about data layout. More... | |
unsigned | getPointerSize () const |
Return the pointer size from the TargetMachine. More... | |
const MCSubtargetInfo & | getSubtargetInfo () const |
Return information about subtarget. More... | |
void | EmitToStreamer (MCStreamer &S, const MCInst &Inst) |
const MCSection * | getCurrentSection () const |
Return the current section we are emitting to. More... | |
void | getNameWithPrefix (SmallVectorImpl< char > &Name, const GlobalValue *GV) const |
MCSymbol * | getSymbol (const GlobalValue *GV) const |
void | recordSled (MCSymbol *Sled, const MachineInstr &MI, SledKind Kind, uint8_t Version=0) |
void | emitXRayTable () |
Emit a table with all XRay instrumentation points. More... | |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
Record analysis usage. More... | |
bool | doInitialization (Module &M) override |
Set up the AsmPrinter when we are working on a new module. More... | |
bool | doFinalization (Module &M) override |
Shut down the asmprinter. More... | |
bool | runOnMachineFunction (MachineFunction &MF) override |
Emit the specified function out to the OutStreamer. More... | |
void | SetupMachineFunction (MachineFunction &MF) |
This should be called when a new MachineFunction is being processed from runOnMachineFunction. More... | |
void | EmitFunctionBody () |
This method emits the body and trailer for a function. More... | |
void | emitCFIInstruction (const MachineInstr &MI) |
void | emitFrameAlloc (const MachineInstr &MI) |
void | emitStackSizeSection (const MachineFunction &MF) |
CFIMoveType | needsCFIMoves () const |
bool | needsOnlyDebugCFIMoves () const |
Returns false if needsCFIMoves() == CFI_M_EH for any function in the module. More... | |
bool | needsSEHMoves () |
virtual void | EmitConstantPool () |
Print to the current output stream assembly representations of the constants in the constant pool MCP. More... | |
virtual void | EmitJumpTableInfo () |
Print assembly representations of the jump tables used by the current function to the current output stream. More... | |
virtual void | EmitGlobalVariable (const GlobalVariable *GV) |
Emit the specified global variable to the .s file. More... | |
bool | EmitSpecialLLVMGlobal (const GlobalVariable *GV) |
Check to see if the specified global is a special global used by LLVM. More... | |
void | EmitAlignment (unsigned NumBits, const GlobalObject *GV=nullptr) const |
Emit an alignment directive to the specified power of two boundary. More... | |
virtual const MCExpr * | lowerConstant (const Constant *CV) |
Lower the specified LLVM Constant to an MCExpr. More... | |
void | EmitGlobalConstant (const DataLayout &DL, const Constant *CV) |
Print a general LLVM constant to the .s file. More... | |
void | computeGlobalGOTEquivs (Module &M) |
Unnamed constant global variables solely contaning a pointer to another globals variable act like a global variable "proxy", or GOT equivalents, i.e., it's only used to hold the address of the latter. More... | |
void | emitGlobalGOTEquivs () |
Constant expressions using GOT equivalent globals may not be eligible for PC relative GOT entry conversion, in such cases we need to emit the proxies we previously omitted in EmitGlobalVariable. More... | |
void | emitStackMaps (StackMaps &SM) |
Emit the stack maps. More... | |
virtual void | EmitStartOfAsmFile (Module &) |
This virtual method can be overridden by targets that want to emit something at the start of their file. More... | |
virtual void | EmitEndOfAsmFile (Module &) |
This virtual method can be overridden by targets that want to emit something at the end of their file. More... | |
virtual void | EmitFunctionBodyStart () |
Targets can override this to emit stuff before the first basic block in the function. More... | |
virtual void | EmitFunctionBodyEnd () |
Targets can override this to emit stuff after the last basic block in the function. More... | |
virtual void | EmitBasicBlockStart (const MachineBasicBlock &MBB) const |
Targets can override this to emit stuff at the start of a basic block. More... | |
virtual void | EmitBasicBlockEnd (const MachineBasicBlock &MBB) |
Targets can override this to emit stuff at the end of a basic block. More... | |
virtual void | EmitInstruction (const MachineInstr *) |
Targets should implement this to emit instructions. More... | |
virtual MCSymbol * | GetCPISymbol (unsigned CPID) const |
Return the symbol for the specified constant pool entry. More... | |
virtual void | EmitFunctionEntryLabel () |
EmitFunctionEntryLabel - Emit the label that is the entrypoint for the function. More... | |
virtual void | EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV) |
virtual void | EmitXXStructor (const DataLayout &DL, const Constant *CV) |
Targets can override this to change how global constants that are part of a C++ static/global constructor list are emitted. More... | |
virtual bool | isBlockOnlyReachableByFallthrough (const MachineBasicBlock *MBB) const |
Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through. More... | |
virtual void | emitImplicitDef (const MachineInstr *MI) const |
Targets can override this to customize the output of IMPLICIT_DEF instructions in verbose mode. More... | |
MCSymbol * | createTempSymbol (const Twine &Name) const |
MCSymbol * | getSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix) const |
Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix. More... | |
MCSymbol * | GetExternalSymbolSymbol (StringRef Sym) const |
Return the MCSymbol for the specified ExternalSymbol. More... | |
MCSymbol * | GetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const |
Return the symbol for the specified jump table entry. More... | |
MCSymbol * | GetJTSetSymbol (unsigned UID, unsigned MBBID) const |
Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter. More... | |
MCSymbol * | GetBlockAddressSymbol (const BlockAddress *BA) const |
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block. More... | |
MCSymbol * | GetBlockAddressSymbol (const BasicBlock *BB) const |
void | printOffset (int64_t Offset, raw_ostream &OS) const |
This is just convenient handler for printing offsets. More... | |
void | emitInt8 (int Value) const |
Emit a byte directive and value. More... | |
void | emitInt16 (int Value) const |
Emit a short directive and value. More... | |
void | emitInt32 (int Value) const |
Emit a long directive and value. More... | |
void | emitInt64 (uint64_t Value) const |
Emit a long long directive and value. More... | |
void | EmitLabelDifference (const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) const |
Emit something like ".long Hi-Lo" where the size in bytes of the directive is specified by Size and Hi/Lo specify the labels. More... | |
void | EmitLabelDifferenceAsULEB128 (const MCSymbol *Hi, const MCSymbol *Lo) const |
Emit something like ".uleb128 Hi-Lo". More... | |
void | EmitLabelPlusOffset (const MCSymbol *Label, uint64_t Offset, unsigned Size, bool IsSectionRelative=false) const |
Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Size and Label specifies the label. More... | |
void | EmitLabelReference (const MCSymbol *Label, unsigned Size, bool IsSectionRelative=false) const |
Emit something like ".long Label" where the size in bytes of the directive is specified by Size and Label specifies the label. More... | |
void | EmitDwarfOffset (const MCSymbol *Label, uint64_t Offset) const |
Emit something like ".long Label + Offset". More... | |
void | EmitSLEB128 (int64_t Value, const char *Desc=nullptr) const |
Emit the specified signed leb128 value. More... | |
void | EmitULEB128 (uint64_t Value, const char *Desc=nullptr) const |
Emit the specified unsigned leb128 value. More... | |
void | EmitEncodingByte (unsigned Val, const char *Desc=nullptr) const |
Emit a .byte 42 directive that corresponds to an encoding. More... | |
unsigned | GetSizeOfEncodedValue (unsigned Encoding) const |
Return the size of the encoding in bytes. More... | |
void | EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const |
Emit reference to a ttype global with a specified encoding. More... | |
void | emitDwarfSymbolReference (const MCSymbol *Label, bool ForceOffset=false) const |
Emit a reference to a symbol for use in dwarf. More... | |
void | emitDwarfStringOffset (DwarfStringPoolEntry S) const |
Emit the 4-byte offset of a string from the start of its section. More... | |
void | emitDwarfStringOffset (DwarfStringPoolEntryRef S) const |
Emit the 4-byte offset of a string from the start of its section. More... | |
virtual unsigned | getISAEncoding () |
Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified. More... | |
virtual void | EmitDebugValue (const MCExpr *Value, unsigned Size) const |
Emit the directive and value for debug thread local expression. More... | |
void | emitCFIInstruction (const MCCFIInstruction &Inst) const |
Emit frame instruction to describe the layout of the frame. More... | |
template<typename T > | |
void | emitDwarfAbbrevs (const T &Abbrevs) const |
Emit Dwarf abbreviation table. More... | |
void | emitDwarfAbbrev (const DIEAbbrev &Abbrev) const |
void | emitDwarfDIE (const DIE &Die) const |
Recursively emit Dwarf DIE tree. More... | |
virtual void | PrintSpecial (const MachineInstr *MI, raw_ostream &OS, const char *Code) const |
Print information related to the specified machine instr that is independent of the operand, and may be independent of the instr itself. More... | |
virtual bool | PrintAsmOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &OS) |
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant. More... | |
virtual bool | PrintAsmMemoryOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &OS) |
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant as an address. More... | |
virtual void | emitInlineAsmStart () const |
Let the target do anything it needs to do before emitting inlineasm. More... | |
virtual void | emitInlineAsmEnd (const MCSubtargetInfo &StartInfo, const MCSubtargetInfo *EndInfo) const |
Let the target do anything it needs to do after emitting inlineasm. More... | |
Public Member Functions inherited from llvm::MachineFunctionPass | |
bool | doInitialization (Module &) override |
doInitialization - Virtual method overridden by subclasses to do any necessary initialization before any pass is run. More... | |
Public Member Functions inherited from llvm::FunctionPass | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &OS, const std::string &Banner) const override |
createPrinterPass - Get a function printer pass. More... | |
void | assignPassManager (PMStack &PMS, PassManagerType T) override |
Find appropriate Function Pass Manager or Call Graph Pass Manager in the PM Stack and add self into that manager. More... | |
PassManagerType | getPotentialPassManagerType () const override |
Return what kind of Pass Manager can manage this pass. More... | |
Public Member Functions inherited from llvm::Pass | |
Pass (PassKind K, char &pid) | |
Pass (const Pass &)=delete | |
Pass & | operator= (const Pass &)=delete |
virtual | ~Pass () |
PassKind | getPassKind () const |
virtual StringRef | getPassName () const |
getPassName - Return a nice clean name for a pass. More... | |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual void | print (raw_ostream &OS, const Module *M) const |
print - Print out the internal state of the pass. More... | |
void | dump () const |
virtual void | preparePassManager (PMStack &) |
Check if available pass managers are suitable for this pass or not. More... | |
void | setResolver (AnalysisResolver *AR) |
AnalysisResolver * | getResolver () const |
virtual void | releaseMemory () |
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. More... | |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
getAdjustedAnalysisPointer - This method is used when a pass implements an analysis interface through multiple inheritance. More... | |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information. More... | |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to get analysis information that might be around, for example to update it. More... | |
bool | mustPreserveAnalysisID (char &AID) const |
mustPreserveAnalysisID - This method serves the same function as getAnalysisIfAvailable, but works if you just have an AnalysisID. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More... | |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Public Attributes | |
TargetMachine & | TM |
Target machine description. More... | |
const MCAsmInfo * | MAI |
Target Asm Printer information. More... | |
MCContext & | OutContext |
This is the context for the output file that we are streaming. More... | |
std::unique_ptr< MCStreamer > | OutStreamer |
This is the MCStreamer object for the file we are generating. More... | |
MachineFunction * | MF = nullptr |
The current machine function. More... | |
MachineModuleInfo * | MMI = nullptr |
This is a pointer to the current MachineModuleInfo. More... | |
MachineDominatorTree * | MDT = nullptr |
This is a pointer to the current MachineLoopInfo. More... | |
MachineLoopInfo * | MLI = nullptr |
This is a pointer to the current MachineLoopInfo. More... | |
MachineOptimizationRemarkEmitter * | ORE |
Optimization remark emitter. More... | |
MCSymbol * | CurrentFnSym = nullptr |
The symbol for the current function. More... | |
MCSymbol * | CurrentFnSymForSize = nullptr |
The symbol used to represent the start of the current function for the purpose of calculating its size (e.g. More... | |
MapVector< const MCSymbol *, GOTEquivUsePair > | GlobalGOTEquivs |
bool | EnablePrintSchedInfo = false |
Enable print [latency:throughput] in output. More... | |
SmallVector< XRayFunctionEntry, 4 > | Sleds |
unsigned | XRayFnUniqueID = 0 |
Protected Member Functions | |
AsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer) | |
Protected Member Functions inherited from llvm::MachineFunctionPass | |
MachineFunctionPass (char &ID) | |
void | getAnalysisUsage (AnalysisUsage &AU) const override |
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this. More... | |
virtual MachineFunctionProperties | getRequiredProperties () const |
virtual MachineFunctionProperties | getSetProperties () const |
virtual MachineFunctionProperties | getClearedProperties () const |
Protected Member Functions inherited from llvm::FunctionPass | |
bool | skipFunction (const Function &F) const |
Optional passes call this function to check whether the pass should be skipped. More... | |
Protected Attributes | |
SmallVector< HandlerInfo, 1 > | Handlers |
A vector of all debug/EH info emitters we should use. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::Pass | |
static const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
This class is intended to be used as a driving class for all asm writers.
Definition at line 79 of file AsmPrinter.h.
using llvm::AsmPrinter::GOTEquivUsePair = std::pair<const GlobalVariable *, unsigned> |
Map global GOT equivalent MCSymbols to GlobalVariables and keep track of its number of uses by other globals.
Definition at line 122 of file AsmPrinter.h.
Enumerator | |
---|---|
CFI_M_None | |
CFI_M_EH | |
CFI_M_Debug |
Definition at line 319 of file AsmPrinter.h.
|
strong |
Enumerator | |
---|---|
FUNCTION_ENTER | |
FUNCTION_EXIT | |
TAIL_CALL | |
LOG_ARGS_ENTER | |
CUSTOM_EVENT | |
TYPED_EVENT |
Definition at line 243 of file AsmPrinter.h.
|
explicitprotected |
Definition at line 186 of file AsmPrinter.cpp.
References OutStreamer.
|
override |
Definition at line 192 of file AsmPrinter.cpp.
References assert(), getGCMap(), and Handlers.
void AsmPrinter::computeGlobalGOTEquivs | ( | Module & | M | ) |
Unnamed constant global variables solely contaning a pointer to another globals variable act like a global variable "proxy", or GOT equivalents, i.e., it's only used to hold the address of the latter.
Unnamed constant global variables solely contaning a pointer to another globals variable is equivalent to a GOT table entry; it contains the the address of another symbol.
One optimization is to replace accesses to these proxies by using the GOT entry for the final global instead. Hence, we select GOT equivalent candidates among all the module global variables, avoid emitting them unnecessarily and finally replace references to them by pc relative accesses to GOT entries.
Optimize it and replace accesses to these "GOT equivalents" by using the GOT entry for the final global instead. Compute GOT equivalent candidates among all global variables to avoid emitting them if possible later on, after it use is replaced by a GOT entry access.
Definition at line 1287 of file AsmPrinter.cpp.
References G, getObjFileLowering(), getSymbol(), GlobalGOTEquivs, llvm::Module::globals(), and isGOTEquivalentCandidate().
Referenced by doFinalization(), and needsOnlyDebugCFIMoves().
Definition at line 2729 of file AsmPrinter.cpp.
References llvm::MCContext::createTempSymbol(), and OutContext.
Referenced by llvm::DwarfFile::addRange(), llvm::DwarfDebug::beginModule(), computeIndexValue(), llvm::DwarfStringPool::DwarfStringPool(), llvm::DwarfUnit::emitCommonHeader(), llvm::EHStreamer::emitExceptionTable(), EmitFunctionBody(), llvm::DwarfCompileUnit::emitHeader(), emitLoclistsTableHeader(), emitRnglistsTableHeader(), EmitXXStructor(), llvm::WasmException::endFunction(), llvm::AccelTableBase::finalize(), getCurExceptionSym(), llvm::WebAssemblyMCInstLower::Lower(), and SetupMachineFunction().
Shut down the asmprinter.
If you override this in your pass, you must make sure to call it explicitly.
Reimplemented from llvm::Pass.
Reimplemented in llvm::NVPTXAsmPrinter, and llvm::AMDGPUAsmPrinter.
Definition at line 1366 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::GCModuleInfo::begin(), llvm::SmallVectorImpl< T >::clear(), computeGlobalGOTEquivs(), llvm::GlobalValue::DefaultVisibility, llvm::dyn_cast(), E, llvm::TargetOptions::EmitAddrsig, EmitAlignment(), EmitEndOfAsmFile(), emitGlobalGOTEquivs(), EmitGlobalVariable(), llvm::TargetLoweringObjectFile::emitLinkerFlagsForGlobal(), llvm::TargetLoweringObjectFile::emitLinkerFlagsForUsed(), llvm::TargetLoweringObjectFile::emitModuleMetadata(), llvm::GCModuleInfo::end(), F(), llvm::raw_ostream::flush(), G, llvm::MCAsmInfo::getCodePointerSize(), llvm::MCContext::getCOFFSection(), getDataLayout(), llvm::MCObjectFileInfo::getDataSection(), llvm::MCObjectFileInfo::getDrectveSection(), llvm::MCContext::getELFSection(), GetExternalSymbolSymbol(), llvm::Function::getFunction(), llvm::MachineModuleInfoELF::GetGVStubList(), llvm::MachineModuleInfoCOFF::GetGVStubList(), llvm::Value::getName(), llvm::MCAsmInfo::getNonexecutableStackSection(), llvm::MachineModuleInfo::getObjFileInfo(), getObjFileLowering(), llvm::MCContext::getOrCreateSymbol(), llvm::DataLayout::getPointerSize(), llvm::SectionKind::getReadOnly(), llvm::TargetLoweringObjectFile::getSectionForConstant(), getSymbol(), llvm::TargetMachine::getTargetTriple(), llvm::MCAsmInfo::getWeakRefDirective(), llvm::Module::globals(), Handlers, llvm::GlobalValue::hasAtLeastLocalUnnamedAddr(), llvm::GlobalValue::hasDLLImportStorageClass(), llvm::GlobalValue::hasLocalLinkage(), llvm::MachineModuleInfo::hasNosplitStack(), llvm::MachineModuleInfo::hasSplitStack(), llvm::AArch64CC::HI, I, llvm::COFF::IMAGE_COMDAT_SELECT_ANY, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::Triple::isOSBinFormatCOFF(), llvm::Triple::isOSBinFormatELF(), llvm::GlobalValue::isThreadLocal(), llvm::Log2_32(), MAI, llvm::MCSA_Global, llvm::MCSA_WeakReference, MF, MI, MMI, Name, llvm::TargetMachine::Options, OutContext, OutStreamer, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::reverse(), llvm::ELF::SHT_PROGBITS, llvm::StringRef::startswith(), T, llvm::TimePassesIsEnabled, TM, llvm::Value::use_empty(), and llvm::MachineModuleInfo::usesMorestackAddr().
Referenced by llvm::AMDGPUAsmPrinter::doFinalization(), and llvm::NVPTXAsmPrinter::doFinalization().
Set up the AsmPrinter when we are working on a new module.
If your pass overrides this, it must make sure to explicitly call this implementation.
Reimplemented from llvm::Pass.
Reimplemented in llvm::NVPTXAsmPrinter, llvm::X86AsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 248 of file AsmPrinter.cpp.
References llvm::ARM, assert(), llvm::DwarfDebug::beginModule(), llvm::Target::createMCSubtargetInfo(), llvm::MCAsmInfo::doesSupportDebugInformation(), llvm::DwarfCFI, EmitStartOfAsmFile(), F(), llvm::sys::path::filename(), llvm::Module::getCodeViewFlag(), llvm::Module::getDwarfVersion(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::Module::getFunctionList(), llvm::MachineModuleInfo::getModule(), llvm::Module::getModuleFlag(), llvm::Module::getModuleInlineAsm(), getObjFileLowering(), llvm::Module::getSDKVersion(), llvm::Module::getSourceFileName(), llvm::MCContext::getSubtargetCopy(), llvm::TargetMachine::getTarget(), llvm::TargetMachine::getTargetCPU(), llvm::TargetMachine::getTargetFeatureString(), llvm::TargetMachine::getTargetTriple(), llvm::MCAsmInfo::getWinEHEncodingType(), Handlers, llvm::MCAsmInfo::hasSingleParameterDotFile(), I, llvm::WinEH::Invalid, llvm::Triple::isOSWindows(), llvm::WinEH::Itanium, llvm_unreachable, MAI, llvm::TargetOptions::MCOptions, MI, MMI, llvm::None, llvm::TargetMachine::Options, OutContext, OutStreamer, llvm::SjLj, llvm::Triple::str(), TM, llvm::Wasm, llvm::WinEH, and llvm::WinEH::X86.
Referenced by llvm::SystemZAsmPrinter::doInitialization(), and llvm::NVPTXAsmPrinter::doInitialization().
void AsmPrinter::EmitAlignment | ( | unsigned | NumBits, |
const GlobalObject * | GV = nullptr |
||
) | const |
Emit an alignment directive to the specified power of two boundary.
For example, if you pass in 3 here, you will get an 8 byte alignment. If a global value is specified, and if that global has an explicit alignment requested, it will override the alignment request if required for correctness.
Definition at line 2099 of file AsmPrinter.cpp.
References assert(), getCurrentSection(), llvm::Module::getDataLayout(), getGVAlignmentLog2(), llvm::GlobalValue::getParent(), and OutStreamer.
Referenced by llvm::WinException::beginFunclet(), doFinalization(), EmitBasicBlockStart(), EmitCamlGlobal(), EmitConstantPool(), EmitDebugValue(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), EmitSpecialLLVMGlobal(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), needsOnlyDebugCFIMoves(), and llvm::ARMAsmPrinter::runOnMachineFunction().
|
virtual |
Targets can override this to emit stuff at the end of a basic block.
Reimplemented in llvm::MipsAsmPrinter, and llvm::X86AsmPrinter.
Definition at line 2932 of file AsmPrinter.cpp.
References Context, llvm::MCAsmInfo::getHiddenDeclarationVisibilityAttr(), llvm::MCAsmInfo::getHiddenVisibilityAttr(), llvm::MCAsmInfo::getProtectedVisibilityAttr(), llvm::GlobalValue::HiddenVisibility, isBlockOnlyReachableByFallthrough(), MAI, llvm::MCSA_Invalid, OutStreamer, llvm::GlobalValue::ProtectedVisibility, and Visibility.
Referenced by llvm::MipsAsmPrinter::EmitBasicBlockEnd(), EmitFunctionBody(), and EmitFunctionBodyEnd().
|
virtual |
Targets can override this to emit stuff at the start of a basic block.
EmitBasicBlockStart - This method prints the label for the specified MachineBasicBlock, an alignment (if present) and a comment describing it if appropriate.
By default, this method prints the label for the specified MachineBasicBlock, an alignment (if present) and a comment describing it if appropriate.
Reimplemented in llvm::AMDGPUAsmPrinter.
Definition at line 2873 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), Context, EmitAlignment(), emitBasicBlockLoopComments(), llvm::MachineModuleInfo::getAddrLabelSymbolToEmit(), llvm::MachineBasicBlock::getAlignment(), llvm::MachineBasicBlock::getBasicBlock(), llvm::MachineBasicBlock::getNumber(), llvm::MachineBasicBlock::getSymbol(), Handlers, llvm::MachineBasicBlock::hasAddressTaken(), llvm::BasicBlock::hasAddressTaken(), llvm::AArch64CC::HI, isBlockOnlyReachableByFallthrough(), llvm::MachineBasicBlock::isEHFuncletEntry(), isVerbose(), MLI, MMI, OutStreamer, and llvm::MachineBasicBlock::pred_empty().
Referenced by llvm::AMDGPUAsmPrinter::EmitBasicBlockStart(), EmitFunctionBody(), EmitFunctionBodyEnd(), and VisitGlobalVariableForEmission().
void AsmPrinter::emitCFIInstruction | ( | const MachineInstr & | MI | ) |
Definition at line 968 of file AsmPrinter.cpp.
References llvm::ARM, CFI_M_None, llvm::DwarfCFI, llvm::MachineOperand::getCFIIndex(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineFunction::getFrameInstructions(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::getParent(), I, MAI, MF, and needsCFIMoves().
Referenced by EmitFunctionBody(), getISAEncoding(), and runOnMachineFunction().
void AsmPrinter::emitCFIInstruction | ( | const MCCFIInstruction & | Inst | ) | const |
Emit frame instruction to describe the layout of the frame.
Definition at line 190 of file AsmPrinterDwarf.cpp.
References llvm::MCCFIInstruction::getOffset(), llvm::MCCFIInstruction::getOperation(), llvm::MCCFIInstruction::getRegister(), llvm::MCCFIInstruction::getRegister2(), llvm::MCCFIInstruction::getValues(), llvm_unreachable, llvm::MCCFIInstruction::OpAdjustCfaOffset, llvm::MCCFIInstruction::OpDefCfa, llvm::MCCFIInstruction::OpDefCfaOffset, llvm::MCCFIInstruction::OpDefCfaRegister, llvm::MCCFIInstruction::OpEscape, llvm::MCCFIInstruction::OpGnuArgsSize, llvm::MCCFIInstruction::OpNegateRAState, llvm::MCCFIInstruction::OpOffset, llvm::MCCFIInstruction::OpRegister, llvm::MCCFIInstruction::OpRestore, llvm::MCCFIInstruction::OpSameValue, llvm::MCCFIInstruction::OpWindowSave, and OutStreamer.
|
virtual |
Print to the current output stream assembly representations of the constants in the constant pool MCP.
EmitConstantPool - Print to the current output stream assembly representations of the constants in the constant pool MCP.
This is used to print out constants which have been "spilled to memory" by the code generator.
Reimplemented in llvm::MipsAsmPrinter, llvm::ARMAsmPrinter, and llvm::WebAssemblyAsmPrinter.
Definition at line 1655 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, C, llvm::MachineConstantPoolEntry::ConstVal, llvm::HexagonISD::CP, EmitAlignment(), EmitGlobalConstant(), EmitMachineConstantPoolValue(), llvm::MachineConstantPoolEntry::getAlignment(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstants(), GetCPISymbol(), getDataLayout(), getObjFileLowering(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MachineConstantPoolEntry::getSectionKind(), llvm::MachineConstantPoolEntry::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), llvm::MCSymbol::isUndefined(), llvm::Log2_32(), llvm::MachineConstantPoolEntry::MachineCPVal, MF, OutStreamer, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::SmallVectorBase::size(), and llvm::MachineConstantPoolEntry::Val.
Referenced by llvm::MipsAsmPrinter::EmitConstantPool(), EmitDebugValue(), and needsOnlyDebugCFIMoves().
Emit the directive and value for debug thread local expression.
Value
- The value to emit. Size
- The size of the integer (in bytes) to emit.
Reimplemented in llvm::MipsAsmPrinter.
Definition at line 633 of file AsmPrinter.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCContext::createLinkerPrivateTempSymbol(), llvm::MCContext::createTempSymbol(), CurrentFnSym, llvm::GlobalValue::dropLLVMManglingEscape(), EmitAlignment(), EmitConstantPool(), EmitFunctionEntryLabel(), EmitGlobalConstant(), F(), llvm::MachineFunction::getAlignment(), llvm::Module::getDataLayout(), llvm::MachineFunction::getFunction(), llvm::Value::getName(), getObjFileLowering(), llvm::GlobalValue::getParent(), llvm::Function::getPrefixData(), llvm::Function::getPrologueData(), llvm::GlobalValue::getVisibility(), Handlers, llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasFunctionAlignment(), llvm::Function::hasPrefixData(), llvm::Function::hasPrologueData(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), llvm::AArch64CC::HI, isVerbose(), MAI, llvm::MCSA_AltEntry, llvm::MCSA_ELF_TypeFunction, MF, MMI, OutContext, OutStreamer, llvm::Value::printAsOperand(), T, llvm::MachineModuleInfo::takeDeletedSymbolsForFunction(), llvm::TimePassesIsEnabled, TM, and llvm::MCAsmInfo::useAssignmentForEHBegin().
Referenced by llvm::MipsAsmPrinter::EmitDebugValue(), llvm::DIEExpr::EmitValue(), and getISAEncoding().
Definition at line 268 of file AsmPrinterDwarf.cpp.
References llvm::DIEAbbrev::Emit(), EmitULEB128(), and llvm::DIEAbbrev::getNumber().
Referenced by emitDwarfAbbrevs().
Emit Dwarf abbreviation table.
Definition at line 562 of file AsmPrinter.h.
References llvm::InlineAsm::AD_ATT, llvm::tgtok::Code, Context, emitDwarfAbbrev(), emitDwarfDIE(), EmitInlineAsm(), emitInlineAsmEnd(), emitInlineAsmStart(), EmitULEB128(), List, PrintAsmMemoryOperand(), PrintAsmOperand(), PrintSpecial(), and Visibility.
Referenced by llvm::DIEAbbrevSet::Emit().
Recursively emit Dwarf DIE tree.
Definition at line 233 of file AsmPrinterDwarf.cpp.
References llvm::dwarf::AccessibilityString(), assert(), llvm::dwarf::AttributeString(), llvm::DIE::children(), emitInt8(), EmitULEB128(), llvm::DIE::getAbbrevNumber(), llvm::DIE::getOffset(), llvm::DIE::getSize(), llvm::DIE::getTag(), llvm::DIE::hasChildren(), isVerbose(), OutStreamer, llvm::dwarf::TagString(), llvm::Twine::utohexstr(), and llvm::DIEValueList::values().
Referenced by emitDwarfAbbrevs(), and llvm::DwarfFile::emitUnit().
Emit something like ".long Label + Offset".
Definition at line 182 of file AsmPrinterDwarf.cpp.
References EmitLabelPlusOffset(), llvm::MCAsmInfo::getCodePointerSize(), and MAI.
Referenced by computeIndexValue(), and EmitLabelReference().
void AsmPrinter::emitDwarfStringOffset | ( | DwarfStringPoolEntry | S | ) | const |
Emit the 4-byte offset of a string from the start of its section.
When possible, emit a DwarfStringPool section offset without any relocations, and without using the symbol. Otherwise, defers to emitDwarfSymbolReference().
Definition at line 171 of file AsmPrinterDwarf.cpp.
References assert(), llvm::MCAsmInfo::doesDwarfUseRelocationsAcrossSections(), emitDwarfSymbolReference(), emitInt32(), MAI, llvm::DwarfStringPoolEntry::Offset, and llvm::DwarfStringPoolEntry::Symbol.
Referenced by llvm::DwarfStringPool::emit(), emitDwarfStringOffset(), EmitLabelReference(), and llvm::AccelTableBase::finalize().
|
inline |
Emit the 4-byte offset of a string from the start of its section.
Definition at line 541 of file AsmPrinter.h.
References emitDwarfStringOffset(), and llvm::DwarfStringPoolEntryRef::getEntry().
void AsmPrinter::emitDwarfSymbolReference | ( | const MCSymbol * | Label, |
bool | ForceOffset = false |
||
) | const |
Emit a reference to a symbol for use in dwarf.
Different object formats represent this in different ways. Some use a relocation others encode the label offset in its section.
Definition at line 151 of file AsmPrinterDwarf.cpp.
References llvm::MCAsmInfo::doesDwarfUseRelocationsAcrossSections(), EmitLabelDifference(), llvm::MCSection::getBeginSymbol(), llvm::MCSymbol::getSection(), MAI, llvm::MCAsmInfo::needsDwarfSectionOffsetDirective(), and OutStreamer.
Referenced by computeIndexValue(), llvm::DwarfUnit::emitCommonHeader(), emitDwarfStringOffset(), EmitLabelReference(), llvm::DIELocList::EmitValue(), and llvm::AccelTableBase::finalize().
Emit a .byte 42 directive that corresponds to an encoding.
EmitEncodingByte - Emit a .byte 42 directive that corresponds to an encoding.
If verbose assembly output is enabled, we output comments describing the encoding. Desc is a string saying what the encoding is specifying (e.g. "LSDA").
If verbose assembly output is enabled, we output comments describing the encoding. Desc is an optional string saying what the encoding is specifying (e.g. "LSDA").
Definition at line 108 of file AsmPrinterDwarf.cpp.
References DecodeDWARFEncoding(), isVerbose(), and OutStreamer.
Referenced by llvm::EHStreamer::emitExceptionTable(), and EmitLabelReference().
|
inlinevirtual |
This virtual method can be overridden by targets that want to emit something at the end of their file.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::WebAssemblyAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 388 of file AsmPrinter.h.
Referenced by doFinalization().
void AsmPrinter::emitFrameAlloc | ( | const MachineInstr & | MI | ) |
Definition at line 993 of file AsmPrinter.cpp.
References llvm::MCConstantExpr::create(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getMCSymbol(), llvm::MachineInstr::getOperand(), OutContext, and OutStreamer.
Referenced by EmitFunctionBody(), and runOnMachineFunction().
void AsmPrinter::EmitFunctionBody | ( | ) |
This method emits the body and trailer for a function.
EmitFunctionBody - This method emits the body and trailer for a function.
Definition at line 1043 of file AsmPrinter.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), createTempSymbol(), CurrentFnSym, CurrentFnSymForSize, DEBUG_TYPE, llvm::ISD::EH_LABEL, llvm::MachineOptimizationRemarkEmitter::emit(), EmitBasicBlockEnd(), EmitBasicBlockStart(), emitCFIInstruction(), emitComments(), emitDebugLabelComment(), emitDebugValueComment(), emitFrameAlloc(), EmitFunctionBodyEnd(), EmitFunctionBodyStart(), emitImplicitDef(), EmitInstruction(), EmitJumpTableInfo(), emitKill(), emitStackSizeSection(), F(), llvm::MachineDominatorTree::getBase(), GetBlockAddressSymbol(), llvm::MCInst::getOpcode(), getSubtargetInfo(), llvm::TargetMachine::getTargetTriple(), Handlers, llvm::MachineModuleInfo::hasDebugInfo(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), llvm::AArch64CC::HI, llvm::ISD::INLINEASM, llvm::MCSymbol::isDefined(), llvm::Triple::isOSBinFormatCOFF(), llvm::Triple::isOSWindows(), isVerbose(), llvm::AMDGPUISD::KILL, MAI, MDT, MF, MI, MLI, MMI, needFuncLabelsForEHOrDebugInfo(), llvm::MachineInstr::NoSchedComment, ORE, OutContext, OutStreamer, llvm::MachineInstr::setAsmPrinterFlag(), T, llvm::TimePassesIsEnabled, and TM.
Referenced by llvm::R600AsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
|
inlinevirtual |
Targets can override this to emit stuff after the last basic block in the function.
Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::AMDGPUAsmPrinter, and llvm::ARMAsmPrinter.
Definition at line 396 of file AsmPrinter.h.
References EmitBasicBlockEnd(), and EmitBasicBlockStart().
Referenced by EmitFunctionBody().
|
inlinevirtual |
Targets can override this to emit stuff before the first basic block in the function.
Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::AMDGPUAsmPrinter, and llvm::WebAssemblyAsmPrinter.
Definition at line 392 of file AsmPrinter.h.
Referenced by EmitFunctionBody(), and llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart().
|
virtual |
EmitFunctionEntryLabel - Emit the label that is the entrypoint for the function.
This can be overridden by targets as required to do custom stuff.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, and llvm::ARMAsmPrinter.
Definition at line 725 of file AsmPrinter.cpp.
References CurrentFnSym, llvm::MCSymbol::getName(), llvm::MCSymbol::isDefined(), llvm::MCSymbol::isVariable(), OutStreamer, llvm::MCSymbol::redefineIfPossible(), and llvm::report_fatal_error().
Referenced by EmitDebugValue(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), and EmitInstruction().
void AsmPrinter::EmitGlobalConstant | ( | const DataLayout & | DL, |
const Constant * | CV | ||
) |
Print a general LLVM constant to the .s file.
EmitGlobalConstant - Print a general LLVM constant to the .s file.
Definition at line 2702 of file AsmPrinter.cpp.
References emitGlobalConstantImpl(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), MAI, OutStreamer, and Size.
Referenced by EmitConstantPool(), EmitDebugValue(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitXXStructor(), and needsOnlyDebugCFIMoves().
void AsmPrinter::emitGlobalGOTEquivs | ( | ) |
Constant expressions using GOT equivalent globals may not be eligible for PC relative GOT entry conversion, in such cases we need to emit the proxies we previously omitted in EmitGlobalVariable.
Constant expressions using GOT equivalent globals may not be eligible for PC relative GOT entry conversion, in such cases we need to emit such globals we previously omitted in EmitGlobalVariable.
Definition at line 1304 of file AsmPrinter.cpp.
References assert(), llvm::MCConstantExpr::create(), EmitGlobalVariable(), llvm::GlobalValue::getBaseObject(), llvm::Module::getDataLayout(), llvm::GlobalIndirectSymbol::getIndirectSymbol(), getObjFileLowering(), llvm::Type::getPointerElementType(), getSymbol(), llvm::GlobalValue::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::GlobalValue::getVisibility(), llvm::MCAsmInfo::getWeakRefDirective(), GlobalGOTEquivs, llvm::MCAsmInfo::hasAltEntry(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::GlobalValue::hasExternalLinkage(), llvm::GlobalValue::hasLinkOnceLinkage(), llvm::GlobalValue::hasLocalLinkage(), llvm::GlobalValue::hasPrivateLinkage(), llvm::GlobalValue::hasWeakLinkage(), I, llvm::Type::isFunctionTy(), lowerConstant(), MAI, llvm::MCSA_AltEntry, llvm::MCSA_ELF_TypeFunction, llvm::MCSA_ELF_TypeIndFunction, llvm::MCSA_Global, llvm::MCSA_WeakReference, Name, OutContext, OutStreamer, llvm::SmallVectorTemplateBase< T >::push_back(), and Size.
Referenced by doFinalization(), and needsOnlyDebugCFIMoves().
|
virtual |
Emit the specified global variable to the .s file.
EmitGlobalVariable - Emit the specified global variable to the .s file.
Reimplemented in llvm::AMDGPUAsmPrinter, and llvm::ARMAsmPrinter.
Definition at line 435 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::MCConstantExpr::create(), EmitAlignment(), EmitGlobalConstant(), EmitSpecialLLVMGlobal(), llvm::MCObjectFileInfo::getBSSSection(), llvm::MCObjectFileInfo::getCommDirectiveSupportsAlignment(), llvm::Module::getDataLayout(), llvm::PointerType::getElementType(), GetExternalSymbolSymbol(), getGVAlignmentLog2(), llvm::GlobalVariable::getInitializer(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::MCAsmInfo::getLCOMMDirectiveAlignmentType(), llvm::MCSymbol::getName(), getObjFileLowering(), llvm::MCContext::getOrCreateSymbol(), llvm::GlobalValue::getParent(), llvm::DataLayout::getPointerTypeSize(), getSymbol(), llvm::MCObjectFileInfo::getTLSBSSSection(), llvm::MCObjectFileInfo::getTLSExtraDataSection(), llvm::GlobalValue::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::GlobalValue::getVisibility(), GlobalGOTEquivs, Handlers, llvm::GlobalValue::hasCommonLinkage(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::GlobalVariable::hasInitializer(), llvm::MCAsmInfo::hasMachoTBSSDirective(), llvm::MCAsmInfo::hasMachoZeroFillDirective(), llvm::AArch64CC::HI, llvm::SectionKind::isBSS(), llvm::SectionKind::isBSSLocal(), llvm::SectionKind::isCommon(), llvm::GlobalValue::isDeclaration(), llvm::MCSymbol::isDefined(), llvm::SectionKind::isThreadBSS(), llvm::SectionKind::isThreadData(), llvm::SectionKind::isThreadLocal(), llvm::GlobalValue::isThreadLocal(), llvm::MCSymbol::isVariable(), isVerbose(), llvm::MCSection::isVirtualSection(), MAI, llvm::MCSA_ELF_TypeObject, llvm::MCSA_Local, llvm::LCOMM::NoAlignment, OutContext, OutStreamer, llvm::Value::printAsOperand(), llvm::MCSymbol::redefineIfPossible(), llvm::report_fatal_error(), llvm::TargetLoweringObjectFile::SectionForGlobal(), Size, T, llvm::TimePassesIsEnabled, TM, and llvm::TargetMachine::useEmulatedTLS().
Referenced by doFinalization(), emitGlobalGOTEquivs(), llvm::ARMAsmPrinter::EmitGlobalVariable(), llvm::AMDGPUAsmPrinter::EmitGlobalVariable(), and needsOnlyDebugCFIMoves().
|
virtual |
Targets can override this to customize the output of IMPLICIT_DEF instructions in verbose mode.
emitImplicitDef - This method emits the specified machine instruction that is an implicit def.
Definition at line 813 of file AsmPrinter.cpp.
References llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), MF, OutStreamer, llvm::printReg(), and llvm::raw_svector_ostream::str().
Referenced by EmitFunctionBody(), and EmitXXStructor().
|
virtual |
Let the target do anything it needs to do after emitting inlineasm.
This callback can be used restore the original mode in case the inlineasm contains directives to switch modes. StartInfo
- the original subtarget info before inline asm EndInfo
- the final subtarget info after parsing the inline asm, or NULL if the value is unknown.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 654 of file AsmPrinterInlineAsm.cpp.
Referenced by emitDwarfAbbrevs(), and srcMgrDiagHandler().
|
virtual |
Let the target do anything it needs to do before emitting inlineasm.
StartInfo
- the subtarget info before parsing inline asm
Definition at line 652 of file AsmPrinterInlineAsm.cpp.
Referenced by emitDwarfAbbrevs(), and srcMgrDiagHandler().
|
inlinevirtual |
Targets should implement this to emit instructions.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::WebAssemblyAsmPrinter, llvm::AVRAsmPrinter, llvm::HexagonAsmPrinter, llvm::SystemZAsmPrinter, and llvm::R600AsmPrinter.
Definition at line 408 of file AsmPrinter.h.
References EmitFunctionEntryLabel(), EmitMachineConstantPoolValue(), GetCPISymbol(), and llvm_unreachable.
Referenced by EmitFunctionBody().
void AsmPrinter::emitInt16 | ( | int | Value | ) | const |
Emit a short directive and value.
Definition at line 2048 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by computeIndexValue(), llvm::AppleAccelTableTypeData::emit(), llvm::AppleAccelTableStaticTypeData::emit(), EmitCamlGlobal(), llvm::DwarfUnit::emitCommonHeader(), llvm::DwarfDebug::emitDebugLocEntryLocation(), emitListsTableHeaderStart(), llvm::DwarfStringPool::emitStringOffsetsTableHeader(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), EmitXXStructor(), llvm::AccelTableBase::finalize(), and llvm::AddressPool::getIndex().
void AsmPrinter::emitInt32 | ( | int | Value | ) | const |
Emit a long directive and value.
Definition at line 2053 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by computeIndexValue(), llvm::AppleAccelTableOffsetData::emit(), llvm::AppleAccelTableTypeData::emit(), llvm::AppleAccelTableStaticOffsetData::emit(), llvm::AppleAccelTableStaticTypeData::emit(), llvm::DwarfUnit::emitCommonHeader(), emitDwarfStringOffset(), emitLoclistsTableHeader(), emitRnglistsTableHeader(), llvm::DwarfStringPool::emitStringOffsetsTableHeader(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), EmitXXStructor(), llvm::AccelTableBase::finalize(), and llvm::AddressPool::getIndex().
void AsmPrinter::emitInt64 | ( | uint64_t | Value | ) | const |
Emit a long long directive and value.
Definition at line 2058 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by llvm::DwarfCompileUnit::emitHeader(), and EmitXXStructor().
void AsmPrinter::emitInt8 | ( | int | Value | ) | const |
Emit a byte directive and value.
Definition at line 2043 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by computeIndexValue(), llvm::AppleAccelTableTypeData::emit(), llvm::AppleAccelTableStaticTypeData::emit(), llvm::DwarfUnit::emitCommonHeader(), emitDebugRangesImpl(), emitDwarfDIE(), llvm::APByteStreamer::EmitInt8(), emitListsTableHeaderStart(), emitLoclistsTableHeader(), llvm::DIEInlineString::EmitValue(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), EmitXXStructor(), and llvm::AddressPool::getIndex().
|
virtual |
Print assembly representations of the jump tables used by the current function to the current output stream.
EmitJumpTableInfo - Print assembly representations of the jump tables used by the current function to the current output stream.
emit a .set directive for each unique entry.
Reimplemented in llvm::WebAssemblyAsmPrinter.
Definition at line 1734 of file AsmPrinter.cpp.
References assert(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::MCAsmInfo::doesSetDirectiveSuppressReloc(), llvm::MachineJumpTableInfo::EK_BlockAddress, llvm::MachineJumpTableInfo::EK_Custom32, llvm::MachineJumpTableInfo::EK_GPRel32BlockAddress, llvm::MachineJumpTableInfo::EK_GPRel64BlockAddress, llvm::MachineJumpTableInfo::EK_Inline, llvm::MachineJumpTableInfo::EK_LabelDifference32, EmitAlignment(), F(), getDataLayout(), llvm::MachineFunction::getDataLayout(), llvm::MachineJumpTableInfo::getEntryAlignment(), llvm::MachineJumpTableInfo::getEntryKind(), llvm::MachineJumpTableInfo::getEntrySize(), llvm::MachineFunction::getFunction(), GetJTISymbol(), GetJTSetSymbol(), llvm::MachineFunction::getJumpTableInfo(), llvm::MachineJumpTableInfo::getJumpTables(), llvm::MachineBasicBlock::getNumber(), getObjFileLowering(), llvm::TargetLowering::getPICJumpTableRelocBaseExpr(), llvm::TargetLoweringObjectFile::getSectionForJumpTable(), llvm::MachineFunction::getSubtarget(), llvm::MachineBasicBlock::getSymbol(), llvm::TargetSubtargetInfo::getTargetLowering(), llvm::DataLayout::hasLinkerPrivateGlobalPrefix(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::HexagonISD::JT, llvm_unreachable, llvm::Log2_32(), llvm::TargetLowering::LowerCustomJumpTableEntry(), MAI, llvm::MCDR_DataRegionEnd, llvm::MCDR_DataRegionJT32, MF, OutContext, OutStreamer, llvm::TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection(), and TM.
Referenced by EmitFunctionBody(), and needsOnlyDebugCFIMoves().
void AsmPrinter::EmitLabelDifference | ( | const MCSymbol * | Hi, |
const MCSymbol * | Lo, | ||
unsigned | Size | ||
) | const |
Emit something like ".long Hi-Lo" where the size in bytes of the directive is specified by Size and Hi/Lo specify the labels.
This implicitly uses .set if it is available.
This implicitly uses .set if it avoids relocations.
Definition at line 2065 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by computeIndexValue(), llvm::DwarfUnit::emitCommonHeader(), emitDwarfSymbolReference(), emitListsTableHeaderStart(), emitLoclistsTableHeader(), emitRnglistsTableHeader(), llvm::DIEDelta::EmitValue(), EmitXXStructor(), and llvm::AccelTableBase::finalize().
Emit something like ".uleb128 Hi-Lo".
Definition at line 54 of file AsmPrinterDwarf.cpp.
References OutStreamer.
Referenced by llvm::EHStreamer::emitExceptionTable(), emitLoclistsTableHeader(), and EmitXXStructor().
void AsmPrinter::EmitLabelPlusOffset | ( | const MCSymbol * | Label, |
uint64_t | Offset, | ||
unsigned | Size, | ||
bool | IsSectionRelative = false |
||
) | const |
Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Size and Label specifies the label.
EmitLabelPlusOffset - Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Size and Label specifies the label.
This implicitly uses .set if it is available.
Definition at line 2073 of file AsmPrinter.cpp.
References llvm::MCConstantExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), MAI, llvm::MCAsmInfo::needsDwarfSectionOffsetDirective(), OutContext, and OutStreamer.
Referenced by EmitDwarfOffset(), EmitLabelReference(), llvm::DIEEntry::EmitValue(), and EmitXXStructor().
|
inline |
Emit something like ".long Label" where the size in bytes of the directive is specified by Size and Label specifies the label.
Definition at line 498 of file AsmPrinter.h.
References EmitDwarfOffset(), emitDwarfStringOffset(), emitDwarfSymbolReference(), EmitEncodingByte(), EmitLabelPlusOffset(), EmitSLEB128(), EmitTTypeReference(), EmitULEB128(), and GetSizeOfEncodedValue().
Referenced by llvm::BTFDebug::BTFDebug(), and llvm::DIELabel::EmitValue().
|
virtual |
Reimplemented in llvm::ARMAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 2713 of file AsmPrinter.cpp.
References llvm_unreachable.
Referenced by EmitConstantPool(), llvm::MipsAsmPrinter::EmitInstruction(), and EmitInstruction().
Emit the specified signed leb128 value.
EmitSLEB128 - emit the specified signed leb128 value.
Definition at line 39 of file AsmPrinterDwarf.cpp.
References isVerbose(), and OutStreamer.
Referenced by llvm::DIEAbbrev::Emit(), llvm::EHStreamer::emitExceptionTable(), EmitLabelReference(), llvm::APByteStreamer::EmitSLEB128(), and llvm::DIEInteger::EmitValue().
bool AsmPrinter::EmitSpecialLLVMGlobal | ( | const GlobalVariable * | GV | ) |
Check to see if the specified global is a special global used by LLVM.
EmitSpecialLLVMGlobal - Check to see if the specified global is a special global used by LLVM.
If so, emit it and return true, otherwise do nothing and return false.
Definition at line 1874 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, assert(), llvm::SmallVectorTemplateCommon< T >::back(), llvm::SmallVectorTemplateCommon< T >::begin(), llvm::dyn_cast(), EmitAlignment(), EmitXXStructor(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::Module::getDataLayout(), llvm::SequentialType::getElementType(), llvm::GlobalVariable::getInitializer(), llvm::ConstantInt::getLimitedValue(), llvm::Value::getName(), llvm::Module::getNamedMetadata(), llvm::StructType::getNumElements(), llvm::User::getNumOperands(), llvm::MDNode::getNumOperands(), llvm::NamedMDNode::getNumOperands(), getObjFileLowering(), llvm::User::getOperand(), llvm::MDNode::getOperand(), llvm::NamedMDNode::getOperand(), llvm::GlobalValue::getParent(), llvm::DataLayout::getPointerPrefAlignment(), llvm::GlobalObject::getSection(), llvm::TargetLoweringObjectFile::getSectionForCommandLines(), llvm::TargetLoweringObjectFile::getStaticCtorSection(), llvm::TargetLoweringObjectFile::getStaticDtorSection(), getSymbol(), llvm::ConstantArray::getType(), llvm::CompositeType::getTypeAtIndex(), llvm::GlobalValue::hasAppendingLinkage(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::MCAsmInfo::hasIdentDirective(), llvm::GlobalVariable::hasInitializer(), llvm::MCAsmInfo::hasNoDeadStrip(), llvm::GlobalValue::isDeclarationForLinker(), List, llvm::Log2_32(), MAI, llvm::MCSA_NoDeadStrip, N, llvm::RISCVFenceField::O, llvm::User::operands(), OutStreamer, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::report_fatal_error(), and llvm::Value::stripPointerCasts().
Referenced by EmitGlobalVariable(), and needsOnlyDebugCFIMoves().
void AsmPrinter::emitStackMaps | ( | StackMaps & | SM | ) |
Emit the stack maps.
Definition at line 3026 of file AsmPrinter.cpp.
References assert(), llvm::GCModuleInfo::begin(), llvm::GCModuleInfo::end(), I, MI, llvm::StackMaps::serializeToStackMapSection(), and llvm::AsmPrinterHandler::~AsmPrinterHandler().
Referenced by llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), and needsOnlyDebugCFIMoves().
void AsmPrinter::emitStackSizeSection | ( | const MachineFunction & | MF | ) |
Definition at line 1003 of file AsmPrinter.cpp.
References llvm::TargetOptions::EmitStackSizeSection, getCurrentSection(), llvm::MachineFunction::getFrameInfo(), getFunctionBegin(), getObjFileLowering(), llvm::TargetMachine::getProgramPointerSize(), llvm::MachineFrameInfo::getStackSize(), llvm::MCObjectFileInfo::getStackSizesSection(), llvm::MachineFunction::getTarget(), llvm::MachineFrameInfo::hasVarSizedObjects(), llvm::TargetMachine::Options, OutStreamer, and TM.
Referenced by EmitFunctionBody(), and runOnMachineFunction().
|
inlinevirtual |
This virtual method can be overridden by targets that want to emit something at the start of their file.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, llvm::X86AsmPrinter, and llvm::ARMAsmPrinter.
Definition at line 384 of file AsmPrinter.h.
Referenced by doInitialization().
void AsmPrinter::EmitToStreamer | ( | MCStreamer & | S, |
const MCInst & | Inst | ||
) |
Definition at line 231 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitInstruction(), and getSubtargetInfo().
Referenced by llvm::MipsAsmPrinter::EmitEndOfAsmFile(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::AVRAsmPrinter::EmitInstruction(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), EmitNop(), getFunctionEnd(), llvm::LowerARMMachineInstrToMCInst(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), and VisitGlobalVariableForEmission().
void AsmPrinter::EmitTTypeReference | ( | const GlobalValue * | GV, |
unsigned | Encoding | ||
) | const |
Emit reference to a ttype global with a specified encoding.
Definition at line 139 of file AsmPrinterDwarf.cpp.
References getObjFileLowering(), GetSizeOfEncodedValue(), llvm::TargetLoweringObjectFile::getTTypeGlobalReference(), MMI, OutStreamer, and TM.
Referenced by EmitLabelReference(), llvm::EHStreamer::emitTypeInfos(), and llvm::ARMException::endFunction().
Emit the specified unsigned leb128 value.
Definition at line 46 of file AsmPrinterDwarf.cpp.
References isVerbose(), and OutStreamer.
Referenced by llvm::DIEAbbrev::Emit(), llvm::DwarfDebug::emitDebugLocEntryLocation(), emitDebugRangesImpl(), emitDwarfAbbrev(), emitDwarfAbbrevs(), emitDwarfDIE(), llvm::EHStreamer::emitExceptionTable(), EmitLabelReference(), emitLoclistsTableHeader(), emitRangeList(), llvm::EHStreamer::emitTypeInfos(), llvm::APByteStreamer::EmitULEB128(), llvm::DIEInteger::EmitValue(), llvm::DIEEntry::EmitValue(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), and llvm::AccelTableBase::finalize().
void AsmPrinter::emitXRayTable | ( | ) |
Emit a table with all XRay instrumentation points.
Definition at line 3069 of file AsmPrinter.cpp.
References assert(), llvm::MCContext::createTempSymbol(), CurrentFnSym, llvm::dyn_cast(), F(), llvm::MCAsmInfo::getCodePointerSize(), llvm::GlobalObject::getComdat(), llvm::MCContext::getELFSection(), llvm::MachineFunction::getFunction(), llvm::MCContext::getMachOSection(), llvm::Comdat::getName(), llvm::SectionKind::getReadOnlyWithRel(), llvm::MachineFunction::getSubtarget(), llvm::MCSubtargetInfo::getTargetTriple(), llvm::GlobalObject::hasComdat(), llvm::Triple::isOSBinFormatELF(), llvm::Triple::isOSBinFormatMachO(), llvm_unreachable, MAI, MF, OutContext, OutStreamer, llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_GROUP, llvm::ELF::SHF_LINK_ORDER, llvm::ELF::SHF_WRITE, llvm::ELF::SHT_PROGBITS, Sleds, and XRayFnUniqueID.
Referenced by llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), and llvm::X86AsmPrinter::runOnMachineFunction().
|
inlinevirtual |
Targets can override this to change how global constants that are part of a C++ static/global constructor list are emitted.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 421 of file AsmPrinter.h.
References createTempSymbol(), EmitGlobalConstant(), emitImplicitDef(), emitInt16(), emitInt32(), emitInt64(), emitInt8(), EmitLabelDifference(), EmitLabelDifferenceAsULEB128(), EmitLabelPlusOffset(), GetBlockAddressSymbol(), GetExternalSymbolSymbol(), GetJTISymbol(), GetJTSetSymbol(), getSymbolWithGlobalValueBase(), llvm::MipsISD::Hi, isBlockOnlyReachableByFallthrough(), llvm::MipsISD::Lo, printOffset(), and Size.
Referenced by EmitSpecialLLVMGlobal().
|
overridevirtual |
Record analysis usage.
Reimplemented from llvm::Pass.
Reimplemented in llvm::NVPTXAsmPrinter.
Definition at line 240 of file AsmPrinter.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::MachineFunctionPass::getAnalysisUsage(), and llvm::AnalysisUsage::setPreservesAll().
Referenced by llvm::NVPTXAsmPrinter::getAnalysisUsage().
MCSymbol * AsmPrinter::GetBlockAddressSymbol | ( | const BlockAddress * | BA | ) | const |
Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
Definition at line 2733 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), llvm::BlockAddress::getBasicBlock(), and MMI.
Referenced by llvm::ARCMCInstLower::ARCMCInstLower(), EmitFunctionBody(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitXXStructor(), llvm::LanaiMCInstLower::GetBlockAddressSymbol(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::SystemZMCInstLower::getExpr(), getRetOpcode(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), lowerConstant(), llvm::AVRMCInstLower::lowerInstruction(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), and llvm::MipsAsmPrinter::printOperand().
MCSymbol * AsmPrinter::GetBlockAddressSymbol | ( | const BasicBlock * | BB | ) | const |
Definition at line 2737 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), and MMI.
Return the symbol for the specified constant pool entry.
GetCPISymbol - Return the symbol for the specified constant pool entry.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 2742 of file AsmPrinter.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::MachineConstantPoolEntry::Alignment, llvm::MachineConstantPoolEntry::ConstVal, llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstants(), getDataLayout(), llvm::MachineFunction::getDataLayout(), getFunctionNumber(), getObjFileLowering(), llvm::MCContext::getOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::MachineConstantPoolEntry::getSectionKind(), getSubtargetInfo(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), llvm::MCSA_Global, MF, OutContext, OutStreamer, and llvm::MachineConstantPoolEntry::Val.
Referenced by llvm::ARCMCInstLower::ARCMCInstLower(), EmitConstantPool(), llvm::MipsAsmPrinter::EmitInstruction(), EmitInstruction(), llvm::SystemZMCInstLower::getExpr(), getRetOpcode(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), llvm::AVRMCInstLower::lowerInstruction(), llvm::AArch64MCInstLower::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::HexagonAsmPrinter::printOperand(), printSymbolOperand(), and smallData().
MCSymbol * AsmPrinter::getCurExceptionSym | ( | ) |
Definition at line 1609 of file AsmPrinter.cpp.
References createTempSymbol().
Referenced by llvm::EHStreamer::emitExceptionTable(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), getExceptionSym(), and getFunctionEnd().
Return the current section we are emitting to.
getCurrentSection() - Return the current section we are emitting to.
Definition at line 236 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by EmitAlignment(), emitStackSizeSection(), and getFunctionEnd().
const DataLayout & AsmPrinter::getDataLayout | ( | ) | const |
Return information about data layout.
Definition at line 216 of file AsmPrinter.cpp.
References llvm::Module::getDataLayout(), llvm::MachineModuleInfo::getModule(), and MMI.
Referenced by llvm::DwarfUnit::addConstantFPValue(), llvm::DwarfUnit::addConstantValue(), llvm::DwarfUnit::constructContainingTypeDIEs(), ConvertDoubleToBytes(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), llvm::AddressPool::emit(), EmitConstantPool(), emitGlobalConstantFP(), emitGlobalConstantLargeInt(), llvm::ARMAsmPrinter::EmitInstruction(), EmitJumpTableInfo(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::WasmException::endModule(), llvm::DwarfCFIException::endModule(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::ARMAsmPrinter::GetCPISymbol(), GetCPISymbol(), GetExternalSymbolSymbol(), getFunctionEnd(), llvm::AddressPool::getIndex(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), getOpenCLAlignment(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), GetSymbolFromOperand(), lowerConstant(), llvm::MipsAsmPrinter::printOperand(), VisitGlobalVariableForEmission(), and llvm::WinException::WinException().
|
inline |
Definition at line 194 of file AsmPrinter.h.
Referenced by llvm::DIEHash::addSLEB128(), and llvm::DIELocList::EmitValue().
|
inline |
Definition at line 195 of file AsmPrinter.h.
References getDwarfVersion(), isPositionIndependent(), setDwarfVersion(), and llvm::IndexedInstrProf::Version.
uint16_t AsmPrinter::getDwarfVersion | ( | ) | const |
Definition at line 3141 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by llvm::AddressPool::emit(), llvm::DIEAbbrev::Emit(), llvm::DwarfStringPool::emitStringOffsetsTableHeader(), getDwarfDebug(), llvm::AddressPool::getIndex(), llvm::DIEInteger::SizeOf(), and llvm::DIEEntry::SizeOf().
Return the MCSymbol for the specified ExternalSymbol.
Definition at line 2788 of file AsmPrinter.cpp.
References getDataLayout(), llvm::Mangler::getNameWithPrefix(), llvm::MCContext::getOrCreateSymbol(), and OutContext.
Referenced by llvm::ARCMCInstLower::ARCMCInstLower(), doFinalization(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitXXStructor(), llvm::WasmException::endModule(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::BPFMCInstLower::GetExternalSymbolSymbol(), llvm::LanaiMCInstLower::GetExternalSymbolSymbol(), llvm::AArch64MCInstLower::GetExternalSymbolSymbol(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), llvm::AVRMCInstLower::lowerInstruction(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), and VisitGlobalVariableForEmission().
|
inline |
Definition at line 212 of file AsmPrinter.h.
Referenced by llvm::DebugHandlerBase::beginFunction(), llvm::BTFDebug::beginFunctionImpl(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::BTFDebug::beginInstruction(), llvm::EHStreamer::emitExceptionTable(), emitStackSizeSection(), llvm::DwarfDebug::endFunctionImpl(), getTryAncestor(), and llvm::DwarfCompileUnit::updateSubprogramScopeDIE().
|
inline |
Definition at line 213 of file AsmPrinter.h.
References EmitToStreamer(), getCurExceptionSym(), getCurrentSection(), getDataLayout(), getNameWithPrefix(), getObjFileLowering(), getPointerSize(), getSubtargetInfo(), getSymbol(), and Name.
Referenced by llvm::EHStreamer::emitExceptionTable(), llvm::CodeViewDebug::endFunctionImpl(), llvm::DwarfDebug::endFunctionImpl(), getTryAncestor(), and llvm::DwarfCompileUnit::updateSubprogramScopeDIE().
Return symbol for the function pseudo stack if the stack frame is not a register based.
Reimplemented in llvm::NVPTXAsmPrinter.
Definition at line 210 of file AsmPrinter.h.
Referenced by llvm::DwarfCompileUnit::constructLabelDIE().
unsigned AsmPrinter::getFunctionNumber | ( | ) | const |
Return a unique ID for the current function.
getFunctionNumber - Return a unique ID for the current function.
Definition at line 208 of file AsmPrinter.cpp.
References llvm::MachineFunction::getFunctionNumber(), and MF.
Referenced by ConvertDoubleToBytes(), emitBasicBlockLoopComments(), llvm::AMDGPUAsmPrinter::EmitBasicBlockStart(), llvm::EHStreamer::emitExceptionTable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::ARMAsmPrinter::GetCPISymbol(), GetCPISymbol(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), getOpenCLAlignment(), isVerbose(), llvm::MipsAsmPrinter::printOperand(), and PrintSpecial().
|
inlinevirtual |
Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 546 of file AsmPrinter.h.
References emitCFIInstruction(), and EmitDebugValue().
Referenced by llvm::DwarfUnit::applySubprogramAttributes().
Return the symbol for the specified jump table entry.
GetJTISymbol - Return the symbol for the specified jump table entry.
Definition at line 2769 of file AsmPrinter.cpp.
References llvm::MachineFunction::getJTISymbol(), MF, and OutContext.
Referenced by llvm::ARCMCInstLower::ARCMCInstLower(), EmitJumpTableInfo(), EmitXXStructor(), llvm::SystemZMCInstLower::getExpr(), getRetOpcode(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), llvm::AVRMCInstLower::lowerInstruction(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), and smallData().
Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter.
GetJTSetSymbol - Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter.
Definition at line 2775 of file AsmPrinter.cpp.
References getDataLayout(), getFunctionNumber(), llvm::MCContext::getOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), and OutContext.
Referenced by EmitJumpTableInfo(), and EmitXXStructor().
void AsmPrinter::getNameWithPrefix | ( | SmallVectorImpl< char > & | Name, |
const GlobalValue * | GV | ||
) | const |
Definition at line 425 of file AsmPrinter.cpp.
References llvm::TargetMachine::getNameWithPrefix(), getObjFileLowering(), and TM.
Referenced by llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), getFunctionEnd(), and getModifierVariantKind().
const TargetLoweringObjectFile & AsmPrinter::getObjFileLowering | ( | ) | const |
Return information about object file lowering.
Definition at line 212 of file AsmPrinter.cpp.
References llvm::TargetMachine::getObjFileLowering(), and TM.
Referenced by llvm::DwarfCompileUnit::addAddrTableBase(), llvm::DwarfUnit::addLoclistsBase(), llvm::DwarfUnit::addRnglistsBase(), llvm::DwarfCompileUnit::addScopeRangeList(), llvm::DwarfUnit::addStringOffsetsStart(), llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), llvm::DwarfDebug::beginModule(), llvm::CodeViewDebug::CodeViewDebug(), computeGlobalGOTEquivs(), computeIndexValue(), doFinalization(), doInitialization(), llvm::AddressPool::emit(), EmitCamlGlobal(), llvm::DwarfUnit::emitCommonHeader(), EmitConstantPool(), emitDebugRangesImpl(), EmitDebugValue(), llvm::emitDWARF5AccelTable(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), emitGlobalConstantImpl(), emitGlobalGOTEquivs(), EmitGlobalVariable(), EmitJumpTableInfo(), emitLoclistsTableHeader(), emitNullTerminatedSymbolName(), EmitSpecialLLVMGlobal(), emitStackSizeSection(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::DwarfDebug::endFunctionImpl(), llvm::DwarfCFIException::endModule(), GetCPISymbol(), getFunctionEnd(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), getNameWithPrefix(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), getSymbolWithGlobalValueBase(), handleIndirectSymViaGOTPCRel(), llvm::DwarfCompileUnit::initStmtList(), lowerConstant(), llvm::R600AsmPrinter::runOnMachineFunction(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().
unsigned AsmPrinter::getPointerSize | ( | ) | const |
Return the pointer size from the TargetMachine.
Definition at line 222 of file AsmPrinter.cpp.
References llvm::TargetMachine::getPointerSize(), and TM.
Referenced by getFunctionEnd(), llvm::DIEInteger::SizeOf(), and llvm::DIEExpr::SizeOf().
Return the size of the encoding in bytes.
GetSizeOfEncodedValue - Return the size of the encoding in bytes.
Definition at line 121 of file AsmPrinterDwarf.cpp.
References llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_omit, llvm::dwarf::DW_EH_PE_udata2, llvm::dwarf::DW_EH_PE_udata4, llvm::dwarf::DW_EH_PE_udata8, llvm::MachineFunction::getDataLayout(), llvm::DataLayout::getPointerSize(), llvm_unreachable, and MF.
Referenced by EmitLabelReference(), and EmitTTypeReference().
const MCSubtargetInfo & AsmPrinter::getSubtargetInfo | ( | ) | const |
Return information about subtarget.
Definition at line 226 of file AsmPrinter.cpp.
References assert(), llvm::MachineFunction::getSubtarget(), and MF.
Referenced by EmitFunctionBody(), EmitGCCInlineAsmStr(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), EmitNop(), EmitNops(), EmitToStreamer(), GetCPISymbol(), getFunctionEnd(), and llvm::LowerARMMachineInstrToMCInst().
MCSymbol * AsmPrinter::getSymbol | ( | const GlobalValue * | GV | ) | const |
Definition at line 430 of file AsmPrinter.cpp.
References llvm::TargetMachine::getSymbol(), and TM.
Referenced by llvm::ARCMCInstLower::ARCMCInstLower(), computeGlobalGOTEquivs(), llvm::DwarfUnit::constructTypeDIE(), ConvertDoubleToBytes(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), emitGlobalGOTEquivs(), EmitGlobalVariable(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitSpecialLLVMGlobal(), llvm::WinException::endFunclet(), llvm::ARMException::endFunction(), llvm::WinCFGuard::endModule(), llvm::DwarfCFIException::endModule(), llvm::WinException::endModule(), llvm::SystemZMCInstLower::getExpr(), getFunctionEnd(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::BPFMCInstLower::GetGlobalAddressSymbol(), llvm::LanaiMCInstLower::GetGlobalAddressSymbol(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), getModifierVariantKind(), getOpenCLAlignment(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), GetSymbolFromOperand(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), handleIndirectSymViaGOTPCRel(), llvm::HexagonLowerToMC(), llvm::XCoreMCInstLower::Initialize(), llvm::MipsMCInstLower::Initialize(), llvm::WebAssemblyAsmPrinter::lowerConstant(), lowerConstant(), llvm::AVRMCInstLower::lowerInstruction(), llvm::LowerRISCVMachineOperandToMCOperand(), LowerSymbolOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::printOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), printSymbolOperand(), SetupMachineFunction(), smallData(), and VisitGlobalVariableForEmission().
MCSymbol * AsmPrinter::getSymbolWithGlobalValueBase | ( | const GlobalValue * | GV, |
StringRef | Suffix | ||
) | const |
Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix.
Definition at line 2782 of file AsmPrinter.cpp.
References getObjFileLowering(), llvm::TargetLoweringObjectFile::getSymbolWithGlobalValueBase(), and TM.
Referenced by EmitXXStructor(), getModifierVariantKind(), and printSymbolOperand().
|
virtual |
Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through.
isBlockOnlyReachableByFallthough - Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, and llvm::HexagonAsmPrinter.
Definition at line 2963 of file AsmPrinter.cpp.
References llvm::Registry< T >::begin(), E, llvm::MachineBasicBlock::empty(), llvm::Registry< T >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), getGCMap(), llvm::GCStrategy::getName(), I, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::MachineBasicBlock::isEHPad(), llvm::MachineBasicBlock::isLayoutSuccessor(), MI, Name, OP, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_empty(), llvm::MachineBasicBlock::pred_size(), llvm::report_fatal_error(), llvm::MachineBasicBlock::terminators(), and llvm::GCStrategy::usesMetadata().
Referenced by EmitBasicBlockEnd(), emitBasicBlockLoopComments(), EmitBasicBlockStart(), EmitXXStructor(), llvm::HexagonAsmPrinter::isBlockOnlyReachableByFallthrough(), and llvm::AMDGPUAsmPrinter::isBlockOnlyReachableByFallthrough().
bool AsmPrinter::isPositionIndependent | ( | ) | const |
Definition at line 203 of file AsmPrinter.cpp.
References llvm::TargetMachine::isPositionIndependent(), and TM.
Referenced by checkFunctionsAttributeConsistency(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), EmitNops(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), and getDwarfDebug().
|
inline |
Return true if assembly output should contain comments.
Definition at line 203 of file AsmPrinter.h.
References getFunctionNumber().
Referenced by EmitBasicBlockStart(), EmitDebugValue(), emitDwarfDIE(), EmitEncodingByte(), EmitFunctionBody(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), EmitGlobalVariable(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), EmitSLEB128(), EmitULEB128(), llvm::R600AsmPrinter::runOnMachineFunction(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().
Lower the specified LLVM Constant to an MCExpr.
Reimplemented in llvm::AMDGPUAsmPrinter, llvm::WebAssemblyAsmPrinter, and llvm::R600AsmPrinter.
Definition at line 2118 of file AsmPrinter.cpp.
References llvm::MCID::Add, C, llvm::ConstantFoldConstant(), llvm::MCConstantExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MCBinaryExpr::createAnd(), llvm::MCBinaryExpr::createDiv(), llvm::MCBinaryExpr::createMod(), llvm::MCBinaryExpr::createMul(), llvm::MCBinaryExpr::createOr(), llvm::MCBinaryExpr::createShl(), llvm::MCBinaryExpr::createSub(), llvm::MCBinaryExpr::createXor(), llvm::dyn_cast(), emitGlobalConstantFP(), emitGlobalConstantImpl(), GetBlockAddressSymbol(), getDataLayout(), llvm::MachineFunction::getFunction(), llvm::ConstantExpr::getIntegerCast(), llvm::DataLayout::getIntPtrType(), getObjFileLowering(), llvm::ConstantExpr::getOpcode(), llvm::User::getOperand(), llvm::GlobalValue::getParent(), llvm::APInt::getSExtValue(), getSymbol(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::DataLayout::getTypeAllocSizeInBits(), llvm::IsConstantOffsetFromGlobal(), llvm::Constant::isNullValue(), LLVM_FALLTHROUGH, llvm_unreachable, llvm::TargetLoweringObjectFile::lowerRelativeReference(), MF, OutContext, llvm::Value::printAsOperand(), llvm::report_fatal_error(), llvm::raw_string_ostream::str(), and TM.
Referenced by llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), emitGlobalConstantImpl(), emitGlobalGOTEquivs(), getOpenCLAlignment(), llvm::R600AsmPrinter::lowerConstant(), llvm::WebAssemblyAsmPrinter::lowerConstant(), llvm::AMDGPUAsmPrinter::lowerConstant(), and needsOnlyDebugCFIMoves().
AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves | ( | ) | const |
Definition at line 953 of file AsmPrinter.cpp.
References CFI_M_Debug, CFI_M_EH, CFI_M_None, llvm::DwarfCFI, llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineFunction::getFunction(), llvm::MachineModuleInfo::hasDebugInfo(), MAI, MF, MMI, and llvm::Function::needsUnwindTableEntry().
Referenced by llvm::DwarfCFIException::beginFunction(), llvm::ARMException::beginFunction(), and emitCFIInstruction().
|
inline |
Returns false if needsCFIMoves() == CFI_M_EH for any function in the module.
Definition at line 324 of file AsmPrinter.h.
References computeGlobalGOTEquivs(), EmitAlignment(), EmitConstantPool(), EmitGlobalConstant(), emitGlobalGOTEquivs(), EmitGlobalVariable(), EmitJumpTableInfo(), EmitSpecialLLVMGlobal(), emitStackMaps(), lowerConstant(), and needsSEHMoves().
Referenced by llvm::DwarfCFIException::beginFragment(), and llvm::ARMException::beginFunction().
bool AsmPrinter::needsSEHMoves | ( | ) |
Definition at line 964 of file AsmPrinter.cpp.
References llvm::MachineFunction::getFunction(), MAI, MF, llvm::Function::needsUnwindTableEntry(), and llvm::MCAsmInfo::usesWindowsCFI().
Referenced by llvm::WinException::beginFunction(), and needsOnlyDebugCFIMoves().
|
virtual |
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant as an address.
Targets should override this to format as appropriate. This method can return true if the operand is erroneous.
Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::WebAssemblyAsmPrinter, llvm::HexagonAsmPrinter, llvm::AVRAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 645 of file AsmPrinterInlineAsm.cpp.
Referenced by emitDwarfAbbrevs(), EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), and llvm::WebAssemblyAsmPrinter::PrintAsmMemoryOperand().
|
virtual |
Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant.
PrintAsmOperand - Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant.
Targets should override this to format as appropriate. This method can return true if the operand is erroneous.
Targets should override this to format as appropriate.
Reimplemented in llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::WebAssemblyAsmPrinter, llvm::HexagonAsmPrinter, llvm::AVRAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 614 of file AsmPrinterInlineAsm.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getType(), and llvm::MachineOperand::MO_Immediate.
Referenced by ConvertDoubleToBytes(), emitDwarfAbbrevs(), EmitGCCInlineAsmStr(), EmitHiLo(), EmitMSInlineAsmStr(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), llvm::AMDGPUAsmPrinter::PrintAsmOperand(), and llvm::MipsAsmPrinter::PrintAsmOperand().
void AsmPrinter::printOffset | ( | int64_t | Offset, |
raw_ostream & | OS | ||
) | const |
This is just convenient handler for printing offsets.
Definition at line 2718 of file AsmPrinter.cpp.
Referenced by EmitXXStructor(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), and printSymbolOperand().
|
virtual |
Print information related to the specified machine instr that is independent of the operand, and may be independent of the instr itself.
PrintSpecial - Print information related to the specified machine instr that is independent of the operand, and may be independent of the instr itself.
This can be useful for portably encoding the comment character or other bits of target-specific knowledge into the asmstrings. The syntax used is ${:comment}. Targets can override this to add support for their own strange codes.
Definition at line 584 of file AsmPrinterInlineAsm.cpp.
References llvm::MCAsmInfo::getCommentString(), llvm::MachineFunction::getDataLayout(), getFunctionNumber(), llvm::DataLayout::getPrivateGlobalPrefix(), MAI, MF, MI, llvm::report_fatal_error(), and llvm::raw_string_ostream::str().
Referenced by emitDwarfAbbrevs(), EmitGCCInlineAsmStr(), and EmitMSInlineAsmStr().
void AsmPrinter::recordSled | ( | MCSymbol * | Sled, |
const MachineInstr & | MI, | ||
SledKind | Kind, | ||
uint8_t | Version = 0 |
||
) |
Definition at line 3128 of file AsmPrinter.cpp.
References CurrentFnSym, F(), FUNCTION_ENTER, llvm::Function::getFnAttribute(), llvm::MachineFunction::getFunction(), llvm::MachineInstr::getMF(), llvm::Function::hasFnAttribute(), LOG_ARGS_ENTER, and Sleds.
Referenced by llvm::MipsAsmPrinter::EmitEndOfAsmFile(), EmitNops(), and llvm::LowerARMMachineInstrToMCInst().
|
inlineoverridevirtual |
Emit the specified function out to the OutStreamer.
Implements llvm::MachineFunctionPass.
Reimplemented in llvm::NVPTXAsmPrinter, llvm::X86AsmPrinter, llvm::MipsAsmPrinter, llvm::AMDGPUAsmPrinter, llvm::ARMAsmPrinter, llvm::WebAssemblyAsmPrinter, llvm::HexagonAsmPrinter, and llvm::R600AsmPrinter.
Definition at line 296 of file AsmPrinter.h.
References emitCFIInstruction(), emitFrameAlloc(), EmitFunctionBody(), emitStackSizeSection(), MI, and SetupMachineFunction().
Referenced by llvm::HexagonAsmPrinter::runOnMachineFunction(), llvm::WebAssemblyAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), and llvm::NVPTXAsmPrinter::runOnMachineFunction().
void AsmPrinter::setDwarfVersion | ( | uint16_t | Version | ) |
Definition at line 3145 of file AsmPrinter.cpp.
References OutStreamer.
Referenced by getDwarfDebug().
void AsmPrinter::SetupMachineFunction | ( | MachineFunction & | MF | ) |
This should be called when a new MachineFunction is being processed from runOnMachineFunction.
Definition at line 1615 of file AsmPrinter.cpp.
References createTempSymbol(), CurrentFnSym, CurrentFnSymForSize, llvm::TargetOptions::EmitStackSizeSection, EnablePrintSchedInfo, llvm::MachineFunction::getFunction(), llvm::MachineFunction::getSubtarget(), getSymbol(), llvm::MachineFunction::getTarget(), MAI, MF, MMI, needFuncLabelsForEHOrDebugInfo(), llvm::MCAsmInfo::needsLocalForSize(), llvm::TargetMachine::Options, ORE, PrintSchedule, and llvm::TargetSubtargetInfo::supportPrintSchedInfo().
Referenced by llvm::R600AsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
MCSymbol* llvm::AsmPrinter::CurrentFnSym = nullptr |
The symbol for the current function.
This is recalculated at the beginning of each call to runOnMachineFunction().
Definition at line 113 of file AsmPrinter.h.
Referenced by llvm::WinException::beginFunction(), EmitDebugValue(), EmitFunctionBody(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), llvm::X86AsmPrinter::EmitFunctionBodyStart(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), emitXRayTable(), getDwarfRegNum(), getOpenCLAlignment(), llvm::FaultMaps::recordFaultingOp(), recordSled(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), SetupMachineFunction(), and VisitGlobalVariableForEmission().
MCSymbol* llvm::AsmPrinter::CurrentFnSymForSize = nullptr |
The symbol used to represent the start of the current function for the purpose of calculating its size (e.g.
using the .size directive). By default, this is equal to CurrentFnSym.
Definition at line 118 of file AsmPrinter.h.
Referenced by EmitFunctionBody(), getDwarfRegNum(), llvm::FaultMaps::recordFaultingOp(), and SetupMachineFunction().
Enable print [latency:throughput] in output.
Definition at line 126 of file AsmPrinter.h.
Referenced by emitComments(), llvm::X86AsmPrinter::EmitInstruction(), SetupMachineFunction(), and srcMgrDiagHandler().
MapVector<const MCSymbol *, GOTEquivUsePair> llvm::AsmPrinter::GlobalGOTEquivs |
Definition at line 123 of file AsmPrinter.h.
Referenced by computeGlobalGOTEquivs(), emitGlobalGOTEquivs(), EmitGlobalVariable(), and handleIndirectSymViaGOTPCRel().
|
protected |
A vector of all debug/EH info emitters we should use.
This vector maintains ownership of the emitters.
Definition at line 161 of file AsmPrinter.h.
Referenced by doFinalization(), doInitialization(), EmitBasicBlockStart(), EmitDebugValue(), EmitFunctionBody(), EmitGlobalVariable(), and ~AsmPrinter().
Target Asm Printer information.
Definition at line 85 of file AsmPrinter.h.
Referenced by llvm::DwarfTypeUnit::addGlobalType(), llvm::DwarfUnit::addSectionLabel(), llvm::ARMException::beginFunction(), llvm::WinException::beginFunction(), canBeHidden(), llvm::EHStreamer::computeCallSiteTable(), ConvertDoubleToBytes(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), doInitialization(), dwarfCCToCodeView(), EmitBasicBlockEnd(), emitCFIInstruction(), llvm::DwarfUnit::emitCommonHeader(), EmitDebugValue(), EmitDwarfOffset(), emitDwarfStringOffset(), emitDwarfSymbolReference(), llvm::EHStreamer::emitExceptionTable(), EmitFunctionBody(), EmitGCCInlineAsmStr(), EmitGlobalConstant(), emitGlobalGOTEquivs(), EmitGlobalVariable(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), EmitLabelPlusOffset(), emitListsTableHeaderStart(), emitLoclistsTableHeader(), emitNullTerminatedSymbolName(), emitRangeList(), EmitSpecialLLVMGlobal(), llvm::DIEString::EmitValue(), emitXRayTable(), llvm::WinException::endFunclet(), llvm::ARMException::endFunction(), llvm::DwarfCFIException::endModule(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), getOpenCLAlignment(), llvm::NVPTXAsmPrinter::getVirtualRegisterName(), needsCFIMoves(), needsSEHMoves(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::WebAssemblyAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), PrintSpecial(), printSymbolOperand(), SetupMachineFunction(), llvm::DIELabel::SizeOf(), llvm::DIEDelta::SizeOf(), llvm::DIEString::SizeOf(), llvm::DIEEntry::SizeOf(), llvm::DIELocList::SizeOf(), srcMgrDiagHandler(), and VisitGlobalVariableForEmission().
MachineDominatorTree* llvm::AsmPrinter::MDT = nullptr |
This is a pointer to the current MachineLoopInfo.
Definition at line 103 of file AsmPrinter.h.
Referenced by EmitFunctionBody().
MachineFunction* llvm::AsmPrinter::MF = nullptr |
The current machine function.
Definition at line 97 of file AsmPrinter.h.
Referenced by llvm::DwarfCompileUnit::addAddress(), llvm::DwarfCompileUnit::addComplexAddress(), llvm::WinException::beginFunclet(), llvm::DebugHandlerBase::beginFunction(), llvm::CodeViewDebug::beginInstruction(), llvm::EHStreamer::computeActionsTable(), llvm::WasmException::computeCallSiteTable(), llvm::EHStreamer::computeCallSiteTable(), llvm::DwarfCompileUnit::constructLabelDIE(), llvm::DIEDwarfExpression::DIEDwarfExpression(), llvm::AMDGPUAsmPrinter::doFinalization(), doFinalization(), emitBasicBlockLoopComments(), emitCFIInstruction(), emitComments(), llvm::WebAssemblyAsmPrinter::EmitConstantPool(), EmitConstantPool(), emitDebugLocValue(), llvm::MipsAsmPrinter::EmitDebugValue(), EmitDebugValue(), emitDebugValueComment(), llvm::EHStreamer::emitExceptionTable(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyStart(), llvm::X86AsmPrinter::EmitFunctionBodyStart(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), emitImplicitDef(), llvm::R600AsmPrinter::EmitInstruction(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitKill(), EmitNop(), llvm::EHStreamer::emitTypeInfos(), emitXRayTable(), llvm::WinException::endFunclet(), llvm::ARMException::endFunction(), GetCPISymbol(), getDwarfRegNum(), getFunctionNumber(), GetJTISymbol(), llvm::R600AsmPrinter::getPassName(), GetSizeOfEncodedValue(), getSubtargetInfo(), llvm::HexagonAsmPrinter::HexagonProcessInstruction(), lowerConstant(), llvm::AMDGPUAsmPrinter::lowerOperand(), llvm::WasmException::markFunctionEnd(), llvm::DwarfCFIExceptionBase::markFunctionEnd(), needsCFIMoves(), needsReferenceType(), needsSEHMoves(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::AVRAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), printConstant(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), PrintSpecial(), printSymbolOperand(), SetupMachineFunction(), srcMgrDiagHandler(), llvm::DwarfCompileUnit::updateSubprogramScopeDIE(), and VisitGlobalVariableForEmission().
MachineLoopInfo* llvm::AsmPrinter::MLI = nullptr |
This is a pointer to the current MachineLoopInfo.
Definition at line 106 of file AsmPrinter.h.
Referenced by EmitBasicBlockStart(), and EmitFunctionBody().
MachineModuleInfo* llvm::AsmPrinter::MMI = nullptr |
This is a pointer to the current MachineModuleInfo.
Definition at line 100 of file AsmPrinter.h.
Referenced by checkFunctionsAttributeConsistency(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), llvm::NVPTXAsmPrinter::doInitialization(), doInitialization(), EmitBasicBlockStart(), EmitDebugValue(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), EmitGCCInlineAsmStr(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::WinCFGuard::endModule(), GetBlockAddressSymbol(), getDataLayout(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), getMachOMMI(), getModifierVariantKind(), handleIndirectSymViaGOTPCRel(), needsCFIMoves(), printSymbolOperand(), SetupMachineFunction(), and srcMgrDiagHandler().
MachineOptimizationRemarkEmitter* llvm::AsmPrinter::ORE |
Optimization remark emitter.
Definition at line 109 of file AsmPrinter.h.
Referenced by EmitFunctionBody(), and SetupMachineFunction().
MCContext& llvm::AsmPrinter::OutContext |
This is the context for the output file that we are streaming.
This owns all of the global MC-related objects for the generated translation unit.
Definition at line 89 of file AsmPrinter.h.
Referenced by ConvertDoubleToBytes(), createTempSymbol(), doFinalization(), doInitialization(), llvm::AddressPool::emit(), EmitCamlGlobal(), EmitDebugValue(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), emitFrameAlloc(), EmitFunctionBody(), emitGlobalGOTEquivs(), EmitGlobalVariable(), llvm::R600AsmPrinter::EmitInstruction(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::AVRAsmPrinter::EmitInstruction(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), EmitLabelPlusOffset(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitNop(), EmitNops(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), emitXRayTable(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::WinException::endFunclet(), llvm::WasmException::endModule(), llvm::WinCFGuard::endModule(), llvm::ARMAsmPrinter::GetCPISymbol(), GetCPISymbol(), GetExternalSymbolSymbol(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), llvm::DebugHandlerBase::getFunctionLocalOffsetAfterInsn(), GetJTISymbol(), GetJTSetSymbol(), getModifierVariantKind(), GetSymbolFromOperand(), GetSymbolRef(), llvm::HexagonLowerToMC(), llvm::HexagonAsmPrinter::HexagonProcessInstruction(), lowerAddrSpaceCast(), llvm::LowerARMMachineInstrToMCInst(), llvm::R600AsmPrinter::lowerConstant(), llvm::WebAssemblyAsmPrinter::lowerConstant(), llvm::AMDGPUAsmPrinter::lowerConstant(), lowerConstant(), llvm::AMDGPUAsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineOperandToMCOperand(), lowerSymbolOperand(), LowerSymbolOperand(), printSymbolOperand(), smallData(), srcMgrDiagHandler(), and VisitGlobalVariableForEmission().
std::unique_ptr<MCStreamer> llvm::AsmPrinter::OutStreamer |
This is the MCStreamer object for the file we are generating.
This contains the transient state for the current translation unit that we are generating (such as the current section etc).
Definition at line 94 of file AsmPrinter.h.
Referenced by AsmPrinter(), llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), llvm::ARMException::beginFunction(), llvm::DwarfDebug::beginFunctionImpl(), llvm::DebugHandlerBase::beginInstruction(), llvm::DwarfDebug::beginInstruction(), canBeHidden(), checkFunctionsAttributeConsistency(), computeIndexValue(), llvm::AMDGPUAsmPrinter::doFinalization(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), llvm::NVPTXAsmPrinter::doInitialization(), doInitialization(), llvm::DwarfDebug::DwarfDebug(), llvm::DwarfStringPool::emit(), llvm::AddressPool::emit(), llvm::DIEAbbrevSet::Emit(), EmitAlignment(), EmitBasicBlockEnd(), emitBasicBlockLoopComments(), EmitBasicBlockStart(), EmitCamlGlobal(), emitCFIInstruction(), llvm::DwarfUnit::emitCommonHeader(), EmitConstantPool(), emitDebugLabelComment(), llvm::DwarfDebug::emitDebugLocEntryLocation(), emitDebugRangesImpl(), EmitDebugValue(), emitDebugValueComment(), llvm::emitDWARF5AccelTable(), emitDwarfDIE(), emitDwarfSymbolReference(), EmitEncodingByte(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), emitFrameAlloc(), EmitFunctionBody(), llvm::ARMAsmPrinter::EmitFunctionBodyEnd(), llvm::X86AsmPrinter::EmitFunctionBodyEnd(), llvm::X86AsmPrinter::EmitFunctionBodyStart(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), emitGlobalGOTEquivs(), EmitGlobalVariable(), llvm::DwarfCompileUnit::emitHeader(), llvm::DwarfTypeUnit::emitHeader(), emitImplicitDef(), llvm::ARMAsmPrinter::emitInlineAsmEnd(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::AVRAsmPrinter::EmitInstruction(), llvm::WebAssemblyAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), emitInt16(), emitInt32(), emitInt64(), llvm::APByteStreamer::EmitInt8(), emitInt8(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableInsts(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), emitKill(), EmitLabelDifference(), EmitLabelDifferenceAsULEB128(), EmitLabelPlusOffset(), emitListsTableHeaderStart(), emitLoclistsTableHeader(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitNop(), emitRangeList(), emitRnglistsTableHeader(), llvm::APByteStreamer::EmitSLEB128(), EmitSLEB128(), EmitSpecialLLVMGlobal(), emitStackSizeSection(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), llvm::DwarfStringPool::emitStringOffsetsTableHeader(), EmitTTypeReference(), llvm::EHStreamer::emitTypeInfos(), llvm::APByteStreamer::EmitULEB128(), EmitULEB128(), llvm::DwarfFile::emitUnit(), llvm::DIEInteger::EmitValue(), llvm::DIEInlineString::EmitValue(), llvm::DIEEntry::EmitValue(), emitXRayTable(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::DwarfCFIExceptionBase::endFragment(), llvm::WinException::endFunclet(), llvm::WasmException::endFunction(), llvm::ARMException::endFunction(), llvm::WinException::endFunction(), llvm::DwarfDebug::endFunctionImpl(), llvm::DebugHandlerBase::endInstruction(), llvm::WasmException::endModule(), llvm::WinCFGuard::endModule(), llvm::DwarfCFIException::endModule(), llvm::WinException::endModule(), llvm::AccelTableBase::finalize(), GetCPISymbol(), getCurrentSection(), getDwarfRegNum(), getDwarfVersion(), llvm::DwarfDebug::getDwarfVersion(), llvm::NVPTXAsmPrinter::getFunctionFrameSymbol(), llvm::AddressPool::getIndex(), llvm::DwarfUnit::getMD5AsBytes(), getOpenCLAlignment(), llvm::DwarfCompileUnit::getOrCreateSourceID(), llvm::R600AsmPrinter::getPassName(), getRsrcReg(), llvm::WebAssemblyAsmPrinter::getTargetStreamer(), llvm::AMDGPUAsmPrinter::getTargetStreamer(), getTryAncestor(), handleIndirectSymViaGOTPCRel(), llvm::HexagonAsmPrinter::HexagonProcessInstruction(), llvm::DwarfCompileUnit::initStmtList(), llvm::LowerARMMachineInstrToMCInst(), llvm::FaultMaps::recordFaultingOp(), llvm::R600AsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::NVPTXAsmPrinter::runOnMachineFunction(), llvm::FaultMaps::serializeToFaultMapSection(), llvm::StackMaps::serializeToStackMapSection(), setDwarfVersion(), llvm::DIEInteger::SizeOf(), llvm::DIEEntry::SizeOf(), srcMgrDiagHandler(), VisitGlobalVariableForEmission(), and llvm::ARMException::~ARMException().
SmallVector<XRayFunctionEntry, 4> llvm::AsmPrinter::Sleds |
Definition at line 268 of file AsmPrinter.h.
Referenced by emitXRayTable(), and recordSled().
TargetMachine& llvm::AsmPrinter::TM |
Target machine description.
Definition at line 82 of file AsmPrinter.h.
Referenced by llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), llvm::CodeViewDebug::beginFunctionImpl(), llvm::DwarfDebug::beginModule(), checkFunctionsAttributeConsistency(), llvm::NVPTXAsmPrinter::doFinalization(), doFinalization(), llvm::NVPTXAsmPrinter::doInitialization(), doInitialization(), llvm::DwarfDebug::DwarfDebug(), emitBasicBlockLoopComments(), EmitDebugValue(), llvm::WebAssemblyAsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), llvm::AMDGPUAsmPrinter::EmitFunctionBodyEnd(), llvm::WebAssemblyAsmPrinter::EmitFunctionBodyStart(), llvm::AMDGPUAsmPrinter::EmitFunctionEntryLabel(), EmitGCCInlineAsmStr(), EmitGlobalVariable(), llvm::X86AsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), EmitJumpTableInfo(), emitStackSizeSection(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), llvm::AMDGPUAsmPrinter::EmitStartOfAsmFile(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::MipsAsmPrinter::getCurrentABIString(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), getNameWithPrefix(), getObjFileLowering(), getOpenCLAlignment(), llvm::DwarfCompileUnit::getOrCreateGlobalVariableDIE(), getPointerSize(), llvm::AMDGPUAsmPrinter::getSTI(), getSymbol(), GetSymbolFromOperand(), GetSymbolRef(), getSymbolWithGlobalValueBase(), isPositionIndependent(), lowerAddrSpaceCast(), llvm::R600AsmPrinter::lowerConstant(), llvm::AMDGPUAsmPrinter::lowerConstant(), lowerConstant(), llvm::AArch64MCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), srcMgrDiagHandler(), VisitGlobalVariableForEmission(), and llvm::WinException::WinException().
unsigned llvm::AsmPrinter::XRayFnUniqueID = 0 |
Definition at line 271 of file AsmPrinter.h.
Referenced by emitXRayTable().