LLVM API Documentation

Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions
llvm::AsmPrinter Class Reference

This class is intended to be used as a driving class for all asm writers. More...

#include <AsmPrinter.h>

Inheritance diagram for llvm::AsmPrinter:
Inheritance graph
[legend]
Collaboration diagram for llvm::AsmPrinter:
Collaboration graph
[legend]

List of all members.

Classes

struct  HandlerInfo

Public Types

enum  CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug }

Public Member Functions

virtual ~AsmPrinter ()
DwarfDebuggetDwarfDebug ()
bool isVerbose () const
unsigned getFunctionNumber () const
const TargetLoweringObjectFilegetObjFileLowering () const
 Return information about object file lowering.
const DataLayoutgetDataLayout () const
 Return information about data layout.
const MCSubtargetInfogetSubtargetInfo () const
 Return information about subtarget.
void EmitToStreamer (MCStreamer &S, const MCInst &Inst)
StringRef getTargetTriple () const
 Return the target triple string.
const MCSectiongetCurrentSection () const
 Return the current section we are emitting to.
void getNameWithPrefix (SmallVectorImpl< char > &Name, const GlobalValue *GV) const
MCSymbolgetSymbol (const GlobalValue *GV) const
void getAnalysisUsage (AnalysisUsage &AU) const override
bool doInitialization (Module &M) override
bool doFinalization (Module &M) override
bool runOnMachineFunction (MachineFunction &MF) override
 Emit the specified function out to the OutStreamer.
void SetupMachineFunction (MachineFunction &MF)
void EmitFunctionHeader ()
 This method emits the header for the current function.
void EmitFunctionBody ()
 This method emits the body and trailer for a function.
void emitCFIInstruction (const MachineInstr &MI)
CFIMoveType needsCFIMoves ()
bool needsSEHMoves ()
virtual void EmitConstantPool ()
void EmitJumpTableInfo ()
virtual void EmitGlobalVariable (const GlobalVariable *GV)
 Emit the specified global variable to the .s file.
bool EmitSpecialLLVMGlobal (const GlobalVariable *GV)
void EmitAlignment (unsigned NumBits, const GlobalObject *GO=nullptr) const
void EmitBasicBlockStart (const MachineBasicBlock &MBB) const
void EmitGlobalConstant (const Constant *CV)
 Print a general LLVM constant to the .s file.
virtual void EmitStartOfAsmFile (Module &)
virtual void EmitEndOfAsmFile (Module &)
virtual void EmitFunctionBodyStart ()
virtual void EmitFunctionBodyEnd ()
virtual void EmitBasicBlockEnd (const MachineBasicBlock &MBB)
 Targets can override this to emit stuff at the end of a basic block.
virtual void EmitInstruction (const MachineInstr *)
 Targets should implement this to emit instructions.
virtual MCSymbolGetCPISymbol (unsigned CPID) const
 Return the symbol for the specified constant pool entry.
virtual void EmitFunctionEntryLabel ()
virtual void EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV)
virtual void EmitXXStructor (const Constant *CV)
virtual bool isBlockOnlyReachableByFallthrough (const MachineBasicBlock *MBB) const
virtual void emitImplicitDef (const MachineInstr *MI) const
MCSymbolGetTempSymbol (Twine Name, unsigned ID) const
MCSymbolGetTempSymbol (Twine Name) const
 Return an assembler temporary label with the specified stem.
MCSymbolgetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix) const
MCSymbolGetExternalSymbolSymbol (StringRef Sym) const
 Return the MCSymbol for the specified ExternalSymbol.
MCSymbolGetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const
 Return the symbol for the specified jump table entry.
MCSymbolGetJTSetSymbol (unsigned UID, unsigned MBBID) const
MCSymbolGetBlockAddressSymbol (const BlockAddress *BA) const
MCSymbolGetBlockAddressSymbol (const BasicBlock *BB) const
void printOffset (int64_t Offset, raw_ostream &OS) const
 This is just convenient handler for printing offsets.
void EmitInt8 (int Value) const
void EmitInt16 (int Value) const
void EmitInt32 (int Value) const
void EmitLabelDifference (const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) const
void EmitLabelOffsetDifference (const MCSymbol *Hi, uint64_t Offset, const MCSymbol *Lo, unsigned Size) const
void EmitLabelPlusOffset (const MCSymbol *Label, uint64_t Offset, unsigned Size, bool IsSectionRelative=false) const
void EmitLabelReference (const MCSymbol *Label, unsigned Size, bool IsSectionRelative=false) const
void EmitSLEB128 (int64_t Value, const char *Desc=nullptr) const
 Emit the specified signed leb128 value.
void EmitULEB128 (uint64_t Value, const char *Desc=nullptr, unsigned PadTo=0) const
 Emit the specified unsigned leb128 value.
void EmitCFAByte (unsigned Val) const
 Emit a .byte 42 directive for a DW_CFA_xxx value.
void EmitEncodingByte (unsigned Val, const char *Desc=nullptr) const
unsigned GetSizeOfEncodedValue (unsigned Encoding) const
 Return the size of the encoding in bytes.
void EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const
 Emit reference to a ttype global with a specified encoding.
void EmitSectionOffset (const MCSymbol *Label, const MCSymbol *SectionLabel) const
virtual unsigned getISAEncoding ()
 Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified.
void EmitDwarfOpPiece (ByteStreamer &Streamer, unsigned SizeInBits, unsigned OffsetInBits=0) const
void EmitDwarfRegOpPiece (ByteStreamer &BS, const MachineLocation &MLoc, unsigned PieceSize=0, unsigned PieceOffset=0) const
 Emit a partial DWARF register operation.
virtual void EmitDwarfRegOp (ByteStreamer &BS, const MachineLocation &MLoc, bool Indirect) const
 EmitDwarfRegOp - Emit dwarf register operation.
void emitCFIInstruction (const MCCFIInstruction &Inst) const
 Emit frame instruction to describe the layout of the frame.
virtual void PrintSpecial (const MachineInstr *MI, raw_ostream &OS, const char *Code) const
virtual bool PrintAsmOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &OS)
virtual bool PrintAsmMemoryOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode, raw_ostream &OS)
virtual void emitInlineAsmEnd (const MCSubtargetInfo &StartInfo, const MCSubtargetInfo *EndInfo) const

Public Attributes

TargetMachineTM
const MCAsmInfoMAI
const MCInstrInfoMII
MCContextOutContext
MCStreamerOutStreamer
const MachineFunctionMF
 The current machine function.
MachineModuleInfoMMI
 This is a pointer to the current MachineModuleInfo.
ManglerMang
MCSymbolCurrentFnSym
MCSymbolCurrentFnSymForSize

Protected Member Functions

 AsmPrinter (TargetMachine &TM, MCStreamer &Streamer)

Detailed Description

This class is intended to be used as a driving class for all asm writers.

Definition at line 61 of file AsmPrinter.h.


Member Enumeration Documentation

Enumerator:
CFI_M_None 
CFI_M_EH 
CFI_M_Debug 

Definition at line 206 of file AsmPrinter.h.


Constructor & Destructor Documentation

AsmPrinter::AsmPrinter ( TargetMachine TM,
MCStreamer Streamer 
) [explicit, protected]
AsmPrinter::~AsmPrinter ( ) [virtual]

Definition at line 112 of file AsmPrinter.cpp.

References llvm::SmallVectorBase::empty(), getGCMap(), and OutStreamer.


Member Function Documentation

bool AsmPrinter::doFinalization ( Module M) [override, virtual]

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.

Definition at line 857 of file AsmPrinter.cpp.

References llvm::MCStreamer::AddBlankLine(), llvm::GCModuleInfo::begin(), llvm::CallingConv::C, llvm::MCSymbolRefExpr::Create(), llvm::GlobalValue::DefaultVisibility, EmitAlignment(), llvm::MCStreamer::EmitAssignment(), EmitEndOfAsmFile(), EmitGlobalVariable(), llvm::MCStreamer::EmitInstruction(), llvm::MCStreamer::EmitLabel(), llvm::TargetLoweringObjectFile::emitModuleFlags(), llvm::MCStreamer::EmitSymbolAttribute(), llvm::MCStreamer::EmitThumbFunc(), llvm::SmallVectorBase::empty(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::empty(), llvm::GCModuleInfo::end(), F(), llvm::MCStreamer::Finish(), llvm::MCStreamer::Flush(), G, llvm::Triple::getArch(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::MCAsmInfo::getNonexecutableStackSection(), getObjFileLowering(), llvm::MCContext::GetOrCreateSymbol(), llvm::TargetMachine::getSubtargetImpl(), getSubtargetInfo(), getSymbol(), llvm::JumpInstrTableInfo::getTables(), getTargetTriple(), llvm::TargetInstrInfo::getTrap(), llvm::TargetInstrInfo::getUnconditionalBranch(), llvm::MCAsmInfo::getWeakRefDirective(), llvm::Module::globals(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasSetDirective(), llvm::AArch64CC::HI, I, lowerConstant(), MAI, Mang, llvm::MCSA_ELF_TypeFunction, llvm::MCSA_Global, llvm::MCSA_WeakReference, llvm::AArch64CC::MI, MMI, Name, llvm::NextPowerOf2(), OutContext, OutStreamer, llvm::MCStreamer::reset(), llvm::MCStreamer::SwitchSection(), T, llvm::Triple::thumb, llvm::Triple::thumbeb, llvm::TimePassesIsEnabled, TM, llvm::Value::use_empty(), and llvm::MCSymbolRefExpr::VK_PLT.

Referenced by llvm::NVPTXAsmPrinter::doFinalization().

bool AsmPrinter::doInitialization ( Module M) [override, virtual]
void AsmPrinter::EmitAlignment ( unsigned  NumBits,
const GlobalObject GO = 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 1522 of file AsmPrinter.cpp.

References llvm::MCStreamer::EmitCodeAlignment(), llvm::MCStreamer::EmitValueToAlignment(), getCurrentSection(), llvm::TargetSubtargetInfo::getDataLayout(), getGVAlignmentLog2(), llvm::MCSection::getKind(), llvm::TargetMachine::getSubtargetImpl(), llvm::SectionKind::isText(), OutStreamer, and TM.

Referenced by doFinalization(), EmitBasicBlockStart(), EmitConstantPool(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionHeader(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), and EmitJumpTableInfo().

virtual void llvm::AsmPrinter::EmitBasicBlockEnd ( const MachineBasicBlock MBB) [inline, virtual]

Targets can override this to emit stuff at the end of a basic block.

Reimplemented in llvm::X86AsmPrinter.

Definition at line 268 of file AsmPrinter.h.

Referenced by EmitFunctionBody().

void AsmPrinter::EmitCFAByte ( unsigned  Val) const

Emit a .byte 42 directive for a DW_CFA_xxx value.

EmitCFAByte - Emit a .byte 42 directive for a DW_CFA_xxx value.

Definition at line 57 of file AsmPrinterDwarf.cpp.

References llvm::MCStreamer::AddComment(), llvm::dwarf::CallFrameString(), llvm::dwarf::DW_CFA_offset, llvm::MCStreamer::EmitIntValue(), isVerbose(), and OutStreamer.

void AsmPrinter::EmitConstantPool ( ) [virtual]

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.

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, and llvm::ARMAsmPrinter.

Definition at line 1037 of file AsmPrinter.cpp.

References Align(), llvm::CallingConv::C, llvm::MachineConstantPoolEntry::ConstVal, EmitAlignment(), EmitGlobalConstant(), llvm::MCStreamer::EmitLabel(), EmitMachineConstantPoolValue(), llvm::MCStreamer::EmitZeros(), llvm::MachineConstantPoolEntry::getAlignment(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstants(), GetCPISymbol(), llvm::TargetSubtargetInfo::getDataLayout(), getObjFileLowering(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MachineConstantPoolEntry::getSectionKind(), llvm::TargetMachine::getSubtargetImpl(), llvm::MachineConstantPoolEntry::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), llvm::MCSymbol::isUndefined(), llvm::Log2_32(), llvm::MachineConstantPoolEntry::MachineCPVal, MF, OutStreamer, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::MCStreamer::SwitchSection(), TM, and llvm::MachineConstantPoolEntry::Val.

Referenced by llvm::MipsAsmPrinter::EmitConstantPool(), and EmitFunctionHeader().

void AsmPrinter::EmitDwarfOpPiece ( ByteStreamer Streamer,
unsigned  SizeInBits,
unsigned  OffsetInBits = 0 
) const

Emit a dwarf register operation for describing

  • a small value occupying only part of a register or
  • a register representing only part of a value.

Definition at line 218 of file AsmPrinterDwarf.cpp.

References llvm::dwarf::DW_OP_bit_piece, llvm::dwarf::DW_OP_piece, llvm::ByteStreamer::EmitInt8(), and llvm::ByteStreamer::EmitULEB128().

Referenced by EmitDwarfRegOpPiece().

void AsmPrinter::EmitDwarfRegOp ( ByteStreamer BS,
const MachineLocation MLoc,
bool  Indirect 
) const [virtual]
void AsmPrinter::EmitDwarfRegOpPiece ( ByteStreamer BS,
const MachineLocation MLoc,
unsigned  PieceSize = 0,
unsigned  PieceOffset = 0 
) const

Emit a partial DWARF register operation.

Parameters:
MLocthe register
PieceSizesize and
PieceOffsetoffset of the piece in bits, if this is one piece of an aggregate value.

If size and offset is zero an operation for the entire register is emitted: Some targets do not provide a DWARF register number for every register. If this is the case, this function will attempt to emit a DWARF register by emitting a piece of a super-register or by piecing together multiple subregisters that alias the register.

Definition at line 245 of file AsmPrinterDwarf.cpp.

References llvm::MCStreamer::AddComment(), llvm::SmallBitVector::any(), llvm::dwarf::DW_OP_nop, EmitDwarfOpPiece(), emitDwarfOpShr(), emitDwarfRegOp(), llvm::ByteStreamer::EmitInt8(), llvm::MachineLocation::getReg(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), llvm::MachineLocation::isReg(), llvm::MCRegisterInfo::DiffListIterator::isValid(), OutStreamer, llvm::SmallBitVector::set(), and TM.

Referenced by EmitDwarfRegOp().

void AsmPrinter::EmitEncodingByte ( unsigned  Val,
const char *  Desc = nullptr 
) const

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").

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 an optional string saying what the encoding is specifying (e.g. "LSDA").

Definition at line 113 of file AsmPrinterDwarf.cpp.

References llvm::MCStreamer::AddComment(), DecodeDWARFEncoding(), llvm::MCStreamer::EmitIntValue(), isVerbose(), and OutStreamer.

Referenced by llvm::EHStreamer::emitExceptionTable().

virtual void llvm::AsmPrinter::EmitEndOfAsmFile ( Module ) [inline, virtual]

This virtual method can be overridden by targets that want to emit something at the end of their file.

Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::AMDGPUAsmPrinter, and llvm::SystemZAsmPrinter.

Definition at line 257 of file AsmPrinter.h.

Referenced by doFinalization().

This method emits the body and trailer for a function.

EmitFunctionBody - This method emits the body and trailer for a function.

Definition at line 726 of file AsmPrinter.cpp.

References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::TargetOpcode::CFI_INSTRUCTION, llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateSub(), llvm::MCContext::CreateTempSymbol(), CurrentFnSym, CurrentFnSymForSize, llvm::TargetOpcode::DBG_VALUE, llvm::TargetOpcode::EH_LABEL, EmitBasicBlockEnd(), EmitBasicBlockStart(), emitCFIInstruction(), emitComments(), emitDebugValueComment(), llvm::MCStreamer::EmitELFSize(), EmitFunctionBodyEnd(), EmitFunctionBodyStart(), emitImplicitDef(), EmitInstruction(), llvm::MCStreamer::EmitInstruction(), EmitJumpTableInfo(), emitKill(), llvm::MCStreamer::EmitLabel(), llvm::MachineModuleInfo::EndFunction(), F(), llvm::TargetOpcode::GC_LABEL, GetBlockAddressSymbol(), llvm::MCStreamer::GetCommentOS(), llvm::TargetSubtargetInfo::getInstrInfo(), llvm::TargetInstrInfo::getNoopForMachoTarget(), llvm::MCInst::getOpcode(), llvm::TargetMachine::getSubtargetImpl(), getSubtargetInfo(), llvm::MachineModuleInfo::hasDebugInfo(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), llvm::AArch64CC::HI, llvm::TargetOpcode::IMPLICIT_DEF, llvm::TargetOpcode::INLINEASM, llvm::MCSymbol::isDefined(), isVerbose(), llvm::TargetOpcode::KILL, MAI, MF, llvm::AArch64CC::MI, MMI, OutContext, OutStreamer, T, llvm::TimePassesIsEnabled, and TM.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().

virtual void llvm::AsmPrinter::EmitFunctionBodyEnd ( ) [inline, virtual]

Targets can override this to emit stuff after the last basic block in the function.

Reimplemented in llvm::MipsAsmPrinter, and llvm::ARMAsmPrinter.

Definition at line 265 of file AsmPrinter.h.

Referenced by EmitFunctionBody().

virtual void llvm::AsmPrinter::EmitFunctionBodyStart ( ) [inline, virtual]

Targets can override this to emit stuff before the first basic block in the function.

Reimplemented in llvm::MipsAsmPrinter.

Definition at line 261 of file AsmPrinter.h.

Referenced by EmitFunctionBody().

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, and llvm::ARMAsmPrinter.

Definition at line 540 of file AsmPrinter.cpp.

References CurrentFnSym, llvm::MCStreamer::EmitLabel(), llvm::MCSymbol::getName(), llvm::MCSymbol::isUndefined(), OutStreamer, and llvm::report_fatal_error().

Referenced by EmitFunctionHeader().

Emit the specified global variable to the .s file.

EmitGlobalVariable - Emit the specified global variable to the .s file.

Definition at line 322 of file AsmPrinter.cpp.

References llvm::MCStreamer::AddBlankLine(), Align(), llvm::MCConstantExpr::Create(), EmitAlignment(), llvm::MCStreamer::EmitCommonSymbol(), llvm::MCStreamer::EmitELFSize(), EmitGlobalConstant(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitLocalCommonSymbol(), EmitSpecialLLVMGlobal(), llvm::MCStreamer::EmitSymbolAttribute(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCStreamer::EmitTBSSSymbol(), llvm::MCStreamer::EmitZerofill(), llvm::MCObjectFileInfo::getCommDirectiveSupportsAlignment(), llvm::MCStreamer::GetCommentOS(), llvm::TargetSubtargetInfo::getDataLayout(), llvm::SequentialType::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(), llvm::TargetMachine::getSubtargetImpl(), getSymbol(), llvm::MCObjectFileInfo::getTLSBSSSection(), llvm::MCObjectFileInfo::getTLSExtraDataSection(), llvm::GlobalValue::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::GlobalValue::getVisibility(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::GlobalVariable::hasInitializer(), llvm::MCAsmInfo::hasMachoTBSSDirective(), llvm::MCAsmInfo::hasMachoZeroFillDirective(), llvm::AArch64CC::HI, llvm::SectionKind::isBSSExtern(), llvm::SectionKind::isBSSLocal(), llvm::SectionKind::isCommon(), llvm::GlobalValue::isDeclaration(), llvm::SectionKind::isThreadBSS(), llvm::SectionKind::isThreadData(), llvm::SectionKind::isThreadLocal(), isVerbose(), MAI, Mang, llvm::MCSA_ELF_TypeObject, llvm::MCSA_Global, llvm::MCSA_Local, llvm::LCOMM::NoAlignment, OutContext, OutStreamer, llvm::Value::printAsOperand(), llvm::TargetLoweringObjectFile::SectionForGlobal(), llvm::MCStreamer::SwitchSection(), T, llvm::TimePassesIsEnabled, and TM.

Referenced by doFinalization().

void AsmPrinter::emitImplicitDef ( const MachineInstr MI) const [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 592 of file AsmPrinter.cpp.

References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::MCRegisterInfo::getName(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::TargetMachine::getSubtargetImpl(), OutStreamer, and TM.

Referenced by EmitFunctionBody().

void AsmPrinter::emitInlineAsmEnd ( const MCSubtargetInfo StartInfo,
const MCSubtargetInfo EndInfo 
) const [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 569 of file AsmPrinterInlineAsm.cpp.

virtual void llvm::AsmPrinter::EmitInstruction ( const MachineInstr ) [inline, virtual]

Targets should implement this to emit instructions.

Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::AMDGPUAsmPrinter, llvm::ARMAsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.

Definition at line 271 of file AsmPrinter.h.

References llvm_unreachable.

Referenced by EmitFunctionBody().

void AsmPrinter::EmitInt16 ( int  Value) const

Emit a short directive and value.

EmitInt16 - Emit a short directive and value.

Definition at line 1432 of file AsmPrinter.cpp.

References llvm::MCStreamer::EmitIntValue(), and OutStreamer.

Referenced by llvm::DwarfUnit::emitHeader(), llvm::DIELoc::EmitValue(), and llvm::DIEBlock::EmitValue().

void AsmPrinter::EmitInt32 ( int  Value) const

Emit a long directive and value.

EmitInt32 - Emit a long directive and value.

Definition at line 1438 of file AsmPrinter.cpp.

References llvm::MCStreamer::EmitIntValue(), and OutStreamer.

Referenced by llvm::DwarfUnit::emitHeader(), llvm::DwarfFile::emitUnits(), llvm::DIEEntry::EmitValue(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), and llvm::WinCodeViewLineTables::endModule().

void AsmPrinter::EmitInt8 ( int  Value) const

Emit a byte directive and value.

EmitInt8 - Emit a byte directive and value.

Definition at line 1426 of file AsmPrinter.cpp.

References llvm::MCStreamer::EmitIntValue(), and OutStreamer.

Referenced by llvm::DwarfUnit::emitHeader(), llvm::APByteStreamer::EmitInt8(), llvm::DIELoc::EmitValue(), llvm::DIEBlock::EmitValue(), and llvm::WinCodeViewLineTables::endModule().

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.

Definition at line 1118 of file AsmPrinter.cpp.

References llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateSub(), llvm::MachineJumpTableInfo::EK_Inline, llvm::MachineJumpTableInfo::EK_LabelDifference32, EmitAlignment(), llvm::MCStreamer::EmitAssignment(), llvm::MCStreamer::EmitDataRegion(), llvm::MCStreamer::EmitLabel(), F(), llvm::TargetSubtargetInfo::getDataLayout(), llvm::MachineJumpTableInfo::getEntryAlignment(), llvm::MachineJumpTableInfo::getEntryKind(), llvm::MachineFunction::getFunction(), GetJTISymbol(), GetJTSetSymbol(), llvm::MachineFunction::getJumpTableInfo(), llvm::MachineJumpTableInfo::getJumpTables(), llvm::MachineBasicBlock::getNumber(), getObjFileLowering(), llvm::TargetLowering::getPICJumpTableRelocBaseExpr(), llvm::SectionKind::getReadOnly(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MachineFunction::getSubtarget(), llvm::TargetMachine::getSubtargetImpl(), llvm::MachineBasicBlock::getSymbol(), llvm::TargetSubtargetInfo::getTargetLowering(), llvm::DataLayout::hasLinkerPrivateGlobalPrefix(), llvm::MCAsmInfo::hasSetDirective(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::GlobalValue::isWeakForLinker(), llvm::Log2_32(), MAI, Mang, llvm::MCDR_DataRegionEnd, llvm::MCDR_DataRegionJT32, MF, OutContext, OutStreamer, llvm::MCStreamer::SwitchSection(), and TM.

Referenced by EmitFunctionBody().

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.

EmitLabelDifference - 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.

Definition at line 1445 of file AsmPrinter.cpp.

References llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateSub(), llvm::MCStreamer::EmitAssignment(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCStreamer::EmitValue(), GetTempSymbol(), llvm::MCAsmInfo::hasSetDirective(), MAI, OutContext, and OutStreamer.

Referenced by llvm::EHStreamer::emitExceptionTable(), EmitSectionOffset(), llvm::DIEDelta::EmitValue(), and llvm::DIELocList::EmitValue().

void AsmPrinter::EmitLabelOffsetDifference ( const MCSymbol Hi,
uint64_t  Offset,
const MCSymbol Lo,
unsigned  Size 
) const

Emit something like ".long Hi+Offset-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.

EmitLabelOffsetDifference - Emit something like ".long Hi+Offset-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.

Definition at line 1467 of file AsmPrinter.cpp.

References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), CreateAdd(), llvm::MCBinaryExpr::CreateSub(), llvm::MCStreamer::EmitAssignment(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCStreamer::EmitValue(), GetTempSymbol(), llvm::MCAsmInfo::hasSetDirective(), MAI, OutContext, and OutStreamer.

Referenced by llvm::DIEEntry::EmitValue().

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. This implicitly uses .set if it is available.

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 1497 of file AsmPrinter.cpp.

References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), CreateAdd(), llvm::MCStreamer::EmitCOFFSecRel32(), llvm::MCStreamer::EmitValue(), MAI, llvm::MCAsmInfo::needsDwarfSectionOffsetDirective(), OutContext, and OutStreamer.

Referenced by EmitLabelReference(), and llvm::DIEEntry::EmitValue().

void llvm::AsmPrinter::EmitLabelReference ( const MCSymbol Label,
unsigned  Size,
bool  IsSectionRelative = false 
) const [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 366 of file AsmPrinter.h.

References EmitLabelPlusOffset().

Referenced by llvm::DIELabel::EmitValue().

Reimplemented in llvm::ARMAsmPrinter, and llvm::SystemZAsmPrinter.

Definition at line 2038 of file AsmPrinter.cpp.

References llvm_unreachable.

Referenced by EmitConstantPool(), and llvm::MipsAsmPrinter::EmitInstruction().

void AsmPrinter::EmitSectionOffset ( const MCSymbol Label,
const MCSymbol SectionLabel 
) const

Emit the 4-byte offset of Label from the start of its section. This can be done with a special directive if the target supports it (e.g. cygwin) or by emitting it as an offset from a label at the start of the section.

SectionLabel is a temporary label emitted at the start of the section that Label lives in.

EmitSectionOffset - Emit the 4-byte offset of Label from the start of its section. This can be done with a special directive if the target supports it (e.g. cygwin) or by emitting it as an offset from a label at the start of the section.

SectionLabel is a temporary label emitted at the start of the section that Label lives in.

Definition at line 163 of file AsmPrinterDwarf.cpp.

References llvm::MCStreamer::EmitCOFFSecRel32(), EmitLabelDifference(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCSymbol::getSection(), llvm::MCSection::isBaseAddressKnownZero(), llvm::MCSymbol::isInSection(), MAI, llvm::MCAsmInfo::needsDwarfSectionOffsetDirective(), OutStreamer, and llvm::ARMBuildAttrs::Section.

Referenced by llvm::DwarfUnit::emitHeader(), and llvm::DIELocList::EmitValue().

void AsmPrinter::EmitSLEB128 ( int64_t  Value,
const char *  Desc = nullptr 
) const

Emit the specified signed leb128 value.

EmitSLEB128 - emit the specified signed leb128 value.

Definition at line 40 of file AsmPrinterDwarf.cpp.

References llvm::MCStreamer::AddComment(), llvm::MCStreamer::EmitSLEB128IntValue(), isVerbose(), and OutStreamer.

Referenced by llvm::EHStreamer::emitExceptionTable(), llvm::APByteStreamer::EmitSLEB128(), and llvm::DIEInteger::EmitValue().

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.

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 1277 of file AsmPrinter.cpp.

References llvm::MCStreamer::EmitSymbolAttribute(), llvm::GlobalVariable::getInitializer(), llvm::Value::getName(), llvm::MCContext::GetOrCreateSymbol(), llvm::TargetMachine::getRelocationModel(), llvm::GlobalObject::getSection(), llvm::GlobalValue::hasAppendingLinkage(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalVariable::hasInitializer(), llvm::MCAsmInfo::hasNoDeadStrip(), llvm::MCAsmInfo::hasStaticCtorDtorReferenceInStaticMode(), MAI, llvm::MCSA_Reference, OutContext, OutStreamer, llvm::Reloc::Static, and TM.

Referenced by EmitGlobalVariable().

virtual void llvm::AsmPrinter::EmitStartOfAsmFile ( Module ) [inline, virtual]

This virtual method can be overridden by targets that want to emit something at the start of their file.

Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, and llvm::ARMAsmPrinter.

Definition at line 253 of file AsmPrinter.h.

Referenced by doInitialization().

void AsmPrinter::EmitToStreamer ( MCStreamer S,
const MCInst Inst 
)
void AsmPrinter::EmitTTypeReference ( const GlobalValue GV,
unsigned  Encoding 
) const
void AsmPrinter::EmitULEB128 ( uint64_t  Value,
const char *  Desc = nullptr,
unsigned  PadTo = 0 
) const
virtual void llvm::AsmPrinter::EmitXXStructor ( const Constant CV) [inline, virtual]

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 284 of file AsmPrinter.h.

References EmitGlobalConstant().

void AsmPrinter::getAnalysisUsage ( AnalysisUsage AU) const [override, virtual]

Record analysis usage.

Reimplemented from llvm::MachineFunctionPass.

Definition at line 159 of file AsmPrinter.cpp.

References llvm::AnalysisUsage::addRequired(), isVerbose(), and llvm::AnalysisUsage::setPreservesAll().

Definition at line 2075 of file AsmPrinter.cpp.

References llvm::MachineModuleInfo::getAddrLabelSymbol(), and MMI.

MCSymbol * AsmPrinter::GetCPISymbol ( unsigned  CPID) const [virtual]

Return the current section we are emitting to.

getCurrentSection() - Return the current section we are emitting to.

Definition at line 153 of file AsmPrinter.cpp.

References llvm::MCStreamer::getCurrentSection(), and OutStreamer.

Referenced by EmitAlignment().

virtual unsigned llvm::AsmPrinter::getISAEncoding ( ) [inline, virtual]

Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified.

Reimplemented in llvm::ARMAsmPrinter.

Definition at line 406 of file AsmPrinter.h.

Referenced by llvm::DwarfUnit::applySubprogramAttributes().

MCSymbol * AsmPrinter::GetJTISymbol ( unsigned  JTID,
bool  isLinkerPrivate = false 
) const

Return the symbol for the specified jump table entry.

GetJTISymbol - Return the symbol for the specified jump table entry.

Definition at line 2088 of file AsmPrinter.cpp.

References llvm::MachineFunction::getJTISymbol(), MF, and OutContext.

Referenced by EmitJumpTableInfo(), llvm::SystemZMCInstLower::getExpr(), llvm::HexagonLowerToMC(), llvm::AArch64MCInstLower::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), and llvm::LowerPPCMachineInstrToMCInst().

MCSymbol * AsmPrinter::GetJTSetSymbol ( unsigned  UID,
unsigned  MBBID 
) const

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 2094 of file AsmPrinter.cpp.

References llvm::TargetSubtargetInfo::getDataLayout(), getFunctionNumber(), llvm::MCContext::GetOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::TargetMachine::getSubtargetImpl(), OutContext, and TM.

Referenced by EmitJumpTableInfo().

void AsmPrinter::getNameWithPrefix ( SmallVectorImpl< char > &  Name,
const GlobalValue GV 
) const

Definition at line 312 of file AsmPrinter.cpp.

References llvm::TargetMachine::getNameWithPrefix(), Mang, and TM.

Return information about subtarget.

Definition at line 140 of file AsmPrinter.cpp.

References llvm::TargetMachine::getSubtarget(), and TM.

Referenced by doFinalization(), EmitFunctionBody(), and EmitToStreamer().

Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix.

Definition at line 2101 of file AsmPrinter.cpp.

References getObjFileLowering(), llvm::TargetLoweringObjectFile::getSymbolWithGlobalValueBase(), Mang, and TM.

Referenced by printSymbolOperand().

Return the target triple string.

Definition at line 148 of file AsmPrinter.cpp.

References llvm::TargetMachine::getTargetTriple(), and TM.

Referenced by doFinalization(), doInitialization(), and llvm::DwarfDebug::DwarfDebug().

MCSymbol * AsmPrinter::GetTempSymbol ( Twine  Name,
unsigned  ID 
) const

Return an assembler temporary label with the specified stem.

GetTempSymbol - Return an assembler temporary label with the specified stem.

Definition at line 2064 of file AsmPrinter.cpp.

References llvm::TargetSubtargetInfo::getDataLayout(), llvm::MCContext::GetOrCreateSymbol(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::TargetMachine::getSubtargetImpl(), OutContext, and TM.

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, and llvm::HexagonAsmPrinter.

Definition at line 2248 of file AsmPrinter.cpp.

References llvm::MachineBasicBlock::empty(), llvm::MachineBasicBlock::isLandingPad(), llvm::MachineBasicBlock::isLayoutSuccessor(), llvm::AArch64CC::MI, OP, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_empty(), llvm::MachineBasicBlock::pred_size(), and llvm::MachineBasicBlock::terminators().

Referenced by EmitBasicBlockStart().

bool llvm::AsmPrinter::isVerbose ( ) const [inline]
bool AsmPrinter::PrintAsmMemoryOperand ( const MachineInstr MI,
unsigned  OpNo,
unsigned  AsmVariant,
const char *  ExtraCode,
raw_ostream OS 
) [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::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.

Definition at line 562 of file AsmPrinterInlineAsm.cpp.

Referenced by EmitGCCInlineAsmStr(), and EmitMSInlineAsmStr().

bool AsmPrinter::PrintAsmOperand ( const MachineInstr MI,
unsigned  OpNo,
unsigned  AsmVariant,
const char *  ExtraCode,
raw_ostream O 
) [virtual]

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.

PrintAsmOperand - Print the specified operand of MI, an INLINEASM instruction, using the specified assembler variant. Targets should override this to format as appropriate.

Reimplemented in llvm::MipsAsmPrinter, llvm::X86AsmPrinter, llvm::ARMAsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.

Definition at line 536 of file AsmPrinterInlineAsm.cpp.

References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getType(), and llvm::MachineOperand::MO_Immediate.

Referenced by EmitGCCInlineAsmStr(), and EmitMSInlineAsmStr().

void AsmPrinter::printOffset ( int64_t  Offset,
raw_ostream OS 
) const

This is just convenient handler for printing offsets.

Definition at line 2043 of file AsmPrinter.cpp.

Referenced by llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), and printSymbolOperand().

void AsmPrinter::PrintSpecial ( const MachineInstr MI,
raw_ostream OS,
const char *  Code 
) const [virtual]

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.

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 506 of file AsmPrinterInlineAsm.cpp.

References llvm::MCAsmInfo::getCommentString(), llvm::TargetSubtargetInfo::getDataLayout(), getFunctionNumber(), llvm::DataLayout::getPrivateGlobalPrefix(), llvm::TargetMachine::getSubtargetImpl(), MAI, llvm::AArch64CC::MI, llvm::report_fatal_error(), llvm::raw_string_ostream::str(), llvm::LibFunc::strcmp, and TM.

Referenced by EmitGCCInlineAsmStr().

bool llvm::AsmPrinter::runOnMachineFunction ( MachineFunction MF) [inline, override, virtual]

Emit the specified function out to the OutStreamer.

Implements llvm::MachineFunctionPass.

Reimplemented in llvm::X86AsmPrinter, llvm::MipsAsmPrinter, llvm::ARMAsmPrinter, and llvm::AMDGPUAsmPrinter.

Definition at line 183 of file AsmPrinter.h.

References EmitFunctionBody(), EmitFunctionHeader(), and SetupMachineFunction().


Member Data Documentation

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 99 of file AsmPrinter.h.

Referenced by AsmPrinter(), EmitFunctionBody(), and SetupMachineFunction().

Definition at line 71 of file AsmPrinter.h.

Referenced by llvm::HexagonAsmPrinter::EmitInstruction().

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 79 of file AsmPrinter.h.

Referenced by llvm::Win64Exception::beginFunction(), llvm::DwarfCFIException::beginFunction(), llvm::ARMException::beginFunction(), doFinalization(), doInitialization(), llvm::DwarfDebug::DwarfDebug(), llvm::DwarfStringPool::emit(), llvm::AddressPool::emit(), llvm::DwarfFile::emitAbbrevs(), EmitAlignment(), emitBasicBlockLoopComments(), EmitBasicBlockStart(), EmitCamlGlobal(), EmitCFAByte(), emitCFIInstruction(), EmitConstantPool(), emitDebugValueComment(), EmitDwarfRegOpPiece(), EmitEncodingByte(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AMDGPUAsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::EHStreamer::emitExceptionTable(), EmitFunctionBody(), llvm::ARMAsmPrinter::EmitFunctionBodyEnd(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), llvm::DwarfUnit::emitHeader(), llvm::DwarfTypeUnit::emitHeader(), emitImplicitDef(), llvm::ARMAsmPrinter::emitInlineAsmEnd(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), EmitInt16(), EmitInt32(), llvm::APByteStreamer::EmitInt8(), EmitInt8(), llvm::ARMAsmPrinter::EmitJump2Table(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), emitKill(), EmitLabelDifference(), EmitLabelOffsetDifference(), EmitLabelPlusOffset(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitSectionOffset(), emitSectionSym(), llvm::APByteStreamer::EmitSLEB128(), EmitSLEB128(), EmitSpecialLLVMGlobal(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::EHStreamer::emitTypeInfos(), llvm::APByteStreamer::EmitULEB128(), EmitULEB128(), llvm::DwarfFile::emitUnits(), llvm::DIEInteger::EmitValue(), llvm::DIEExpr::EmitValue(), llvm::DIETypeSignature::EmitValue(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::Win64Exception::endFunction(), llvm::DwarfCFIException::endFunction(), llvm::ARMException::endFunction(), llvm::WinCodeViewLineTables::endFunction(), llvm::DwarfCFIException::endModule(), llvm::ARMException::endModule(), llvm::WinCodeViewLineTables::endModule(), llvm::X86AsmPrinter::GetCPISymbol(), getCurrentSection(), llvm::DwarfCompileUnit::getOrCreateSourceID(), llvm::DwarfCompileUnit::initStmtList(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::StackMaps::serializeToStackMapSection(), and ~AsmPrinter().

Target machine description.

Definition at line 65 of file AsmPrinter.h.

Referenced by llvm::DwarfUnit::addRegisterOffset(), llvm::DwarfUnit::addRegisterOpPiece(), llvm::Win64Exception::beginFunction(), llvm::DwarfCFIException::beginFunction(), doFinalization(), doInitialization(), llvm::DwarfDebug::DwarfDebug(), EmitAlignment(), EmitConstantPool(), emitDebugValueComment(), EmitDwarfRegOp(), EmitDwarfRegOpPiece(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), emitImplicitDef(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), emitKill(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitSpecialLLVMGlobal(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::DwarfCFIException::endModule(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::X86AsmPrinter::GetCPISymbol(), GetCPISymbol(), getDataLayout(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), getNameWithPrefix(), getObjFileLowering(), GetSizeOfEncodedValue(), getSubtargetInfo(), getSymbol(), GetSymbolFromOperand(), getSymbolWithGlobalValueBase(), getTargetTriple(), GetTempSymbol(), nvptx::LowerConstant(), lowerConstant(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::MipsAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), PrintSpecial(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), and llvm::StackMaps::serializeToStackMapSection().


The documentation for this class was generated from the following files: