LLVM API Documentation
#include <AsmPrinter.h>
Public Types | |
enum | CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug } |
Public Member Functions | |
virtual | ~AsmPrinter () |
const DwarfDebug * | getDwarfDebug () const |
bool | isVerbose () const |
unsigned | getFunctionNumber () const |
const TargetLoweringObjectFile & | getObjFileLowering () const |
getObjFileLowering - Return information about object file lowering. More... | |
const DataLayout & | getDataLayout () const |
getDataLayout - Return information about data layout. More... | |
StringRef | getTargetTriple () const |
getTargetTriple - Return the target triple string. More... | |
const MCSection * | getCurrentSection () const |
getCurrentSection() - Return the current section we are emitting to. More... | |
MCSymbol * | getSymbol (const GlobalValue *GV) const |
void | getAnalysisUsage (AnalysisUsage &AU) const |
bool | doInitialization (Module &M) |
bool | doFinalization (Module &M) |
virtual bool | runOnMachineFunction (MachineFunction &MF) |
void | SetupMachineFunction (MachineFunction &MF) |
void | EmitFunctionHeader () |
void | EmitFunctionBody () |
void | emitPrologLabel (const MachineInstr &MI) |
CFIMoveType | needsCFIMoves () |
bool | needsSEHMoves () |
bool | needsRelocationsForDwarfStringPool () const |
virtual void | EmitConstantPool () |
void | EmitJumpTableInfo () |
virtual void | EmitGlobalVariable (const GlobalVariable *GV) |
EmitGlobalVariable - Emit the specified global variable to the .s file. More... | |
bool | EmitSpecialLLVMGlobal (const GlobalVariable *GV) |
void | EmitAlignment (unsigned NumBits, const GlobalValue *GV=0) const |
void | EmitBasicBlockStart (const MachineBasicBlock *MBB) const |
void | EmitGlobalConstant (const Constant *CV) |
Print a general LLVM constant to the .s file. More... | |
virtual void | EmitStartOfAsmFile (Module &) |
virtual void | EmitEndOfAsmFile (Module &) |
virtual void | EmitFunctionBodyStart () |
virtual void | EmitFunctionBodyEnd () |
virtual void | EmitInstruction (const MachineInstr *) |
EmitInstruction - Targets should implement this to emit instructions. More... | |
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 |
MCSymbol * | GetTempSymbol (StringRef Name, unsigned ID) const |
MCSymbol * | GetTempSymbol (StringRef Name) const |
MCSymbol * | GetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix, bool ForcePrivate=true) const |
MCSymbol * | GetExternalSymbolSymbol (StringRef Sym) const |
MCSymbol * | GetCPISymbol (unsigned CPID) const |
GetCPISymbol - Return the symbol for the specified constant pool entry. More... | |
MCSymbol * | GetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const |
GetJTISymbol - Return the symbol for the specified jump table entry. More... | |
MCSymbol * | GetJTSetSymbol (unsigned UID, unsigned MBBID) const |
MCSymbol * | GetBlockAddressSymbol (const BlockAddress *BA) const |
MCSymbol * | GetBlockAddressSymbol (const BasicBlock *BB) const |
void | printOffset (int64_t Offset, raw_ostream &OS) const |
printOffset - This is just convenient handler for printing offsets. More... | |
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=0) const |
EmitSLEB128 - emit the specified signed leb128 value. More... | |
void | EmitULEB128 (uint64_t Value, const char *Desc=0, unsigned PadTo=0) const |
EmitULEB128 - emit the specified unsigned leb128 value. More... | |
void | EmitCFAByte (unsigned Val) const |
EmitCFAByte - Emit a .byte 42 directive for a DW_CFA_xxx value. More... | |
void | EmitEncodingByte (unsigned Val, const char *Desc=0) const |
unsigned | GetSizeOfEncodedValue (unsigned Encoding) const |
GetSizeOfEncodedValue - Return the size of the encoding in bytes. More... | |
void | EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const |
EmitReference - Emit reference to a ttype global with a specified encoding. More... | |
void | EmitSectionOffset (const MCSymbol *Label, const MCSymbol *SectionLabel) const |
virtual unsigned | getISAEncoding () |
virtual void | EmitDwarfRegOp (const MachineLocation &MLoc, bool Indirect) const |
EmitDwarfRegOp - Emit dwarf register operation. More... | |
void | emitCFIInstruction (const MCCFIInstruction &Inst) const |
Emit frame instruction to describe the layout of the frame. More... | |
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) |
![]() | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &O, const std::string &Banner) const |
createPrinterPass - Get a function printer pass. More... | |
virtual void | assignPassManager (PMStack &PMS, PassManagerType T) |
virtual PassManagerType | getPotentialPassManagerType () const |
Return what kind of Pass Manager can manage this pass. More... | |
![]() | |
Pass (PassKind K, char &pid) | |
virtual | ~Pass () |
PassKind | getPassKind () const |
virtual const char * | getPassName () const |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual void | print (raw_ostream &O, const Module *M) const |
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 () |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
bool | mustPreserveAnalysisID (char &AID) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Public Attributes | |
TargetMachine & | TM |
const MCAsmInfo * | MAI |
const MCInstrInfo * | MII |
MCContext & | OutContext |
MCStreamer & | OutStreamer |
const MachineFunction * | MF |
The current machine function. More... | |
MachineModuleInfo * | MMI |
MMI - This is a pointer to the current MachineModuleInfo. More... | |
Mangler * | Mang |
MCSymbol * | CurrentFnSym |
MCSymbol * | CurrentFnSymForSize |
Protected Member Functions | |
AsmPrinter (TargetMachine &TM, MCStreamer &Streamer) | |
![]() | |
MachineFunctionPass (char &ID) | |
Additional Inherited Members | |
![]() | |
static const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
AsmPrinter - This class is intended to be used as a driving class for all asm writers.
Definition at line 58 of file AsmPrinter.h.
Enumerator | |
---|---|
CFI_M_None | |
CFI_M_EH | |
CFI_M_Debug |
Definition at line 194 of file AsmPrinter.h.
|
explicitprotected |
Definition at line 96 of file AsmPrinter.cpp.
References CurrentFnSym, CurrentFnSymForSize, llvm::MCStreamer::isVerboseAsm(), MF, and MMI.
|
virtual |
Definition at line 108 of file AsmPrinter.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::begin(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::end(), getGCMap(), I, and OutStreamer.
doFinalization - 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 881 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddBlankLine(), llvm::Module::alias_begin(), llvm::Module::alias_end(), llvm::GCModuleInfo::begin(), llvm::Module::begin(), llvm::MCSymbolRefExpr::Create(), DbgTimerName, llvm::GlobalValue::DefaultVisibility, DWARFGroupName, EHTimerName, llvm::MCStreamer::EmitAssignment(), EmitEndOfAsmFile(), EmitGlobalVariable(), llvm::TargetLoweringObjectFile::emitModuleFlags(), llvm::MCStreamer::EmitSymbolAttribute(), llvm::SmallVectorBase::empty(), llvm::GCModuleInfo::end(), llvm::Module::end(), llvm::DwarfException::EndModule(), llvm::DwarfDebug::endModule(), F(), llvm::MCStreamer::Finish(), llvm::MCStreamer::Flush(), llvm::Module::getFunction(), llvm::Module::getModuleFlagsMetadata(), llvm::MCSymbol::getName(), llvm::MCAsmInfo::getNonexecutableStackSection(), getObjFileLowering(), getSymbol(), llvm::GlobalValue::getVisibility(), llvm::MCAsmInfo::getWeakRefDirective(), llvm::Module::global_begin(), llvm::Module::global_end(), llvm::MCAsmInfo::hasSetDirective(), I, llvm::GlobalValue::isDeclaration(), MAI, Mang, llvm::MCSA_Global, llvm::MCSA_WeakReference, llvm::A64CC::MI, MMI, OutContext, OutStreamer, llvm::report_fatal_error(), llvm::MCStreamer::reset(), llvm::MCStreamer::SwitchSection(), T, llvm::TimePassesIsEnabled, TM, and llvm::Value::use_empty().
Referenced by llvm::NVPTXAsmPrinter::doFinalization().
doInitialization - 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.
Definition at line 158 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::MachineModuleInfo::AnalyzeModule(), llvm::ExceptionHandling::ARM, llvm::GCModuleInfo::begin(), llvm::MCAsmInfo::doesSupportDebugInformation(), llvm::ExceptionHandling::DwarfCFI, llvm::MCStreamer::EmitFileDirective(), EmitStartOfAsmFile(), llvm::GCModuleInfo::end(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::Module::getModuleIdentifier(), llvm::Module::getModuleInlineAsm(), getObjFileLowering(), llvm::MCAsmInfo::hasSingleParameterDotFile(), I, llvm::MCStreamer::InitStreamer(), llvm_unreachable, MAI, Mang, llvm::A64CC::MI, MMI, llvm::ExceptionHandling::None, OutContext, OutStreamer, llvm::ExceptionHandling::SjLj, TM, and llvm::ExceptionHandling::Win64.
void AsmPrinter::EmitAlignment | ( | unsigned | NumBits, |
const GlobalValue * | GV = 0 |
||
) | const |
EmitAlignment - 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 1481 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitCodeAlignment(), llvm::MCStreamer::EmitValueToAlignment(), getCurrentSection(), llvm::TargetMachine::getDataLayout(), getGVAlignmentLog2(), llvm::MCSection::getKind(), llvm::SectionKind::isText(), OutStreamer, and TM.
Referenced by llvm::HexagonAsmPrinter::EmitAlignment(), EmitBasicBlockStart(), EmitConstantPool(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionHeader(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), and EmitJumpTableInfo().
void AsmPrinter::EmitBasicBlockStart | ( | const MachineBasicBlock * | MBB | ) | const |
EmitBasicBlockStart - This method prints the label for the specified MachineBasicBlock, an alignment (if present) and a comment describing it if appropriate.
Definition at line 2128 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddComment(), EmitAlignment(), emitBasicBlockLoopComments(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitRawText(), llvm::MachineModuleInfo::getAddrLabelSymbolToEmit(), llvm::MachineBasicBlock::getAlignment(), llvm::MachineBasicBlock::getBasicBlock(), llvm::MCAsmInfo::getCommentString(), llvm::MachineBasicBlock::getNumber(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineBasicBlock::hasAddressTaken(), llvm::MCStreamer::hasRawTextSupport(), isBlockOnlyReachableByFallthrough(), isVerbose(), MAI, MMI, OutStreamer, and llvm::MachineBasicBlock::pred_empty().
Referenced by EmitFunctionBody().
void AsmPrinter::EmitCFAByte | ( | unsigned | Val | ) | const |
EmitCFAByte - Emit a .byte 42 directive for a DW_CFA_xxx value.
Definition at line 53 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::AddComment(), llvm::dwarf::CallFrameString(), llvm::dwarf::DW_CFA_offset, llvm::MCStreamer::EmitIntValue(), isVerbose(), and OutStreamer.
void AsmPrinter::emitCFIInstruction | ( | const MCCFIInstruction & | Inst | ) | const |
Emit frame instruction to describe the layout of the frame.
Definition at line 172 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::EmitCFIDefCfa(), llvm::MCStreamer::EmitCFIDefCfaOffset(), llvm::MCStreamer::EmitCFIDefCfaRegister(), llvm::MCStreamer::EmitCFIOffset(), llvm::MCStreamer::EmitCFIRegister(), llvm::MCStreamer::EmitCFIWindowSave(), llvm::MCCFIInstruction::getOffset(), llvm::MCCFIInstruction::getOperation(), llvm::MCCFIInstruction::getRegister(), llvm::MCCFIInstruction::getRegister2(), llvm_unreachable, llvm::MCCFIInstruction::OpDefCfa, llvm::MCCFIInstruction::OpDefCfaOffset, llvm::MCCFIInstruction::OpDefCfaRegister, llvm::MCCFIInstruction::OpOffset, llvm::MCCFIInstruction::OpRegister, llvm::MCCFIInstruction::OpWindowSave, and OutStreamer.
Referenced by emitPrologLabel().
|
virtual |
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 1028 of file AsmPrinter.cpp.
References Align(), llvm::MachineConstantPoolEntry::ConstVal, EmitAlignment(), EmitGlobalConstant(), llvm::MCStreamer::EmitLabel(), EmitMachineConstantPoolValue(), llvm::MCStreamer::EmitZeros(), llvm::MachineConstantPoolEntry::getAlignment(), llvm::MachineFunction::getConstantPool(), llvm::MachineConstantPool::getConstants(), GetCPISymbol(), llvm::TargetMachine::getDataLayout(), llvm::SectionKind::getMergeableConst(), llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), getObjFileLowering(), llvm::SectionKind::getReadOnlyWithRel(), llvm::SectionKind::getReadOnlyWithRelLocal(), llvm::MachineConstantPoolEntry::getRelocationInfo(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MachineConstantPoolEntry::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), llvm_unreachable, 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().
|
virtual |
EmitDwarfRegOp - Emit dwarf register operation.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 832 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddComment(), llvm::dwarf::DW_OP_breg0, llvm::dwarf::DW_OP_bregx, llvm::dwarf::DW_OP_deref, llvm::dwarf::DW_OP_reg0, llvm::dwarf::DW_OP_regx, EmitInt8(), EmitSLEB128(), EmitULEB128(), llvm::MCRegisterInfo::getDwarfRegNum(), llvm::MachineLocation::getOffset(), llvm::MachineLocation::getReg(), llvm::TargetMachine::getRegisterInfo(), llvm::MachineLocation::isIndirect(), llvm::MCRegisterInfo::DiffListIterator::isValid(), llvm::dwarf::OperationEncodingString(), OutStreamer, and TM.
Referenced by llvm::ARMAsmPrinter::EmitDwarfRegOp().
void AsmPrinter::EmitEncodingByte | ( | unsigned | Val, |
const char * | Desc = 0 |
||
) | const |
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").
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 95 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::AddComment(), DecodeDWARFEncoding(), llvm::MCStreamer::EmitIntValue(), isVerbose(), and OutStreamer.
Referenced by llvm::DwarfException::EmitExceptionTable().
|
inlinevirtual |
EmitEndOfAsmFile - This virtual method can be overridden by targets that want to emit something at the end of their file.
Reimplemented in llvm::MipsAsmPrinter, llvm::ARMAsmPrinter, llvm::X86AsmPrinter, llvm::AArch64AsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 258 of file AsmPrinter.h.
Referenced by doFinalization().
void AsmPrinter::EmitFunctionBody | ( | ) |
EmitFunctionBody - This method emits the body and trailer for a function.
Definition at line 692 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::MachineFunction::begin(), llvm::Function::begin(), llvm::DwarfDebug::beginInstruction(), llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateSub(), llvm::MCContext::CreateTempSymbol(), CurrentFnSym, CurrentFnSymForSize, llvm::TargetOpcode::DBG_VALUE, DbgTimerName, DWARFGroupName, llvm::TargetOpcode::EH_LABEL, EHTimerName, EmitBasicBlockStart(), emitComments(), emitDebugValueComment(), llvm::MCStreamer::EmitELFSize(), EmitFunctionBodyEnd(), EmitFunctionBodyStart(), emitImplicitDef(), EmitInstruction(), llvm::MCStreamer::EmitInstruction(), EmitJumpTableInfo(), emitKill(), llvm::MCStreamer::EmitLabel(), emitPrologLabel(), llvm::MCStreamer::EmitRawText(), llvm::MachineFunction::end(), llvm::Function::end(), llvm::DwarfException::EndFunction(), llvm::MachineModuleInfo::EndFunction(), llvm::DwarfDebug::endFunction(), llvm::DwarfDebug::endInstruction(), F(), llvm::TargetOpcode::GC_LABEL, GetBlockAddressSymbol(), llvm::MCStreamer::GetCommentOS(), getCurrentSection(), llvm::MachineFunction::getFunction(), llvm::TargetMachine::getInstrInfo(), llvm::TargetInstrInfo::getNoopForMachoTarget(), llvm::MCInst::getOpcode(), llvm::BasicBlock::hasAddressTaken(), llvm::MachineModuleInfo::hasDebugInfo(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::TargetMachine::hasMCUseLoc(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), I, llvm::ARM_PROC::IE, llvm::TargetOpcode::IMPLICIT_DEF, llvm::TargetOpcode::INLINEASM, llvm::MCSymbol::isDefined(), llvm::MachineInstr::isPrologLabel(), isVerbose(), llvm::TargetOpcode::KILL, MAI, llvm::MCLineEntry::Make(), MF, MMI, OutContext, OutStreamer, llvm::TargetOpcode::PROLOG_LABEL, T, llvm::TimePassesIsEnabled, and TM.
Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
|
inlinevirtual |
EmitFunctionBodyEnd - 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 266 of file AsmPrinter.h.
Referenced by EmitFunctionBody().
|
inlinevirtual |
EmitFunctionBodyStart - Targets can override this to emit stuff before the first basic block in the function.
Reimplemented in llvm::MipsAsmPrinter.
Definition at line 262 of file AsmPrinter.h.
Referenced by EmitFunctionBody().
|
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, and llvm::ARMAsmPrinter.
Definition at line 501 of file AsmPrinter.cpp.
References CurrentFnSym, llvm::MCStreamer::EmitLabel(), llvm::MCSymbol::getName(), llvm::MCSymbol::isUndefined(), OutStreamer, and llvm::report_fatal_error().
Referenced by EmitFunctionHeader().
void AsmPrinter::EmitFunctionHeader | ( | ) |
EmitFunctionHeader - This method emits the header for the current function.
Definition at line 448 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddComment(), llvm::DwarfException::BeginFunction(), llvm::DwarfDebug::beginFunction(), CurrentFnSym, DbgTimerName, DWARFGroupName, EHTimerName, EmitAlignment(), EmitConstantPool(), EmitFunctionEntryLabel(), EmitGlobalConstant(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitSymbolAttribute(), F(), llvm::MachineFunction::getAlignment(), llvm::MCStreamer::GetCommentOS(), llvm::MachineFunction::getFunction(), getObjFileLowering(), llvm::GlobalValue::getParent(), llvm::Function::getPrefixData(), llvm::GlobalValue::getVisibility(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::Function::hasPrefixData(), isVerbose(), MAI, Mang, llvm::MCSA_ELF_TypeFunction, MF, MMI, OutStreamer, llvm::MCStreamer::SwitchSection(), T, llvm::MachineModuleInfo::takeDeletedSymbolsForFunction(), llvm::TimePassesIsEnabled, TM, and llvm::WriteAsOperand().
Referenced by llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
void AsmPrinter::EmitGlobalConstant | ( | 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 1968 of file AsmPrinter.cpp.
References emitGlobalConstantImpl(), llvm::MCStreamer::EmitIntValue(), llvm::TargetMachine::getDataLayout(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::MCAsmInfo::hasSubsectionsViaSymbols(), MAI, OutStreamer, and TM.
Referenced by EmitConstantPool(), EmitFunctionHeader(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), and EmitXXStructor().
|
virtual |
EmitGlobalVariable - Emit the specified global variable to the .s file.
Definition at line 282 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::TargetMachine::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(), 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::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::TargetLoweringObjectFile::SectionForGlobal(), llvm::DwarfDebug::setSymbolSize(), llvm::MCStreamer::SwitchSection(), TM, and llvm::WriteAsOperand().
Referenced by doFinalization().
|
virtual |
emitImplicitDef - 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 549 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddBlankLine(), llvm::MCStreamer::AddComment(), llvm::MCRegisterInfo::getName(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::TargetMachine::getRegisterInfo(), OutStreamer, and TM.
Referenced by EmitFunctionBody().
|
inlinevirtual |
EmitInstruction - Targets should implement this to emit instructions.
Reimplemented in llvm::MipsAsmPrinter, llvm::ARMAsmPrinter, llvm::X86AsmPrinter, llvm::AArch64AsmPrinter, llvm::AMDGPUAsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 269 of file AsmPrinter.h.
References llvm_unreachable.
Referenced by EmitFunctionBody().
void AsmPrinter::EmitInt16 | ( | int | Value | ) | const |
EmitInt16 - Emit a short directive and value.
Definition at line 1389 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::CompileUnit::emitHeader(), and llvm::DIEBlock::EmitValue().
void AsmPrinter::EmitInt32 | ( | int | Value | ) | const |
EmitInt32 - Emit a long directive and value.
Definition at line 1395 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::DwarfDebug::emitDIE(), llvm::DwarfUnits::emitUnits(), llvm::DIEEntry::EmitValue(), and llvm::DIEBlock::EmitValue().
void AsmPrinter::EmitInt8 | ( | int | Value | ) | const |
EmitInt8 - Emit a byte directive and value.
Definition at line 1383 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::DwarfDebug::emitDIE(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), llvm::CompileUnit::emitHeader(), and llvm::DIEBlock::EmitValue().
void AsmPrinter::EmitJumpTableInfo | ( | ) |
EmitJumpTableInfo - Print assembly representations of the jump tables used by the current function to the current output stream.
Definition at line 1108 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::TargetMachine::getDataLayout(), llvm::MachineJumpTableInfo::getEntryAlignment(), llvm::MachineJumpTableInfo::getEntryKind(), llvm::MachineFunction::getFunction(), GetJTISymbol(), GetJTSetSymbol(), llvm::MachineFunction::getJumpTableInfo(), llvm::MachineJumpTableInfo::getJumpTables(), llvm::MCAsmInfo::getLinkerPrivateGlobalPrefix(), llvm::MachineBasicBlock::getNumber(), getObjFileLowering(), llvm::TargetLowering::getPICJumpTableRelocBaseExpr(), llvm::SectionKind::getReadOnly(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MachineBasicBlock::getSymbol(), llvm::TargetMachine::getTargetLowering(), llvm::MCAsmInfo::hasSetDirective(), llvm::SmallPtrSet< PtrType, SmallSize >::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 |
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 1402 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::DwarfDebug::emitDIE(), llvm::DwarfException::EmitExceptionTable(), EmitSectionOffset(), and llvm::DIEDelta::EmitValue().
void AsmPrinter::EmitLabelOffsetDifference | ( | const MCSymbol * | Hi, |
uint64_t | Offset, | ||
const MCSymbol * | Lo, | ||
unsigned | Size | ||
) | const |
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 1424 of file AsmPrinter.cpp.
References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateAdd(), llvm::MCBinaryExpr::CreateSub(), llvm::MCStreamer::EmitAssignment(), llvm::MCStreamer::EmitSymbolValue(), llvm::MCStreamer::EmitValue(), GetTempSymbol(), llvm::MCAsmInfo::hasSetDirective(), MAI, OutContext, and OutStreamer.
Referenced by llvm::DwarfDebug::emitDIE().
void AsmPrinter::EmitLabelPlusOffset | ( | const MCSymbol * | Label, |
uint64_t | Offset, | ||
unsigned | Size, | ||
bool | IsSectionRelative = false |
||
) | const |
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 1454 of file AsmPrinter.cpp.
References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateAdd(), llvm::MCStreamer::EmitCOFFSecRel32(), llvm::MCStreamer::EmitValue(), MAI, llvm::MCAsmInfo::needsDwarfSectionOffsetDirective(), OutContext, and OutStreamer.
Referenced by llvm::DwarfDebug::emitDIE(), and EmitLabelReference().
|
inline |
EmitLabelReference - 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 375 of file AsmPrinter.h.
References EmitLabelPlusOffset().
Referenced by llvm::DIELabel::EmitValue().
|
virtual |
Reimplemented in llvm::ARMAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 1979 of file AsmPrinter.cpp.
References llvm_unreachable.
Referenced by EmitConstantPool(), and llvm::MipsAsmPrinter::EmitInstruction().
void AsmPrinter::emitPrologLabel | ( | const MachineInstr & | MI | ) |
Definition at line 664 of file AsmPrinter.cpp.
References CFI_M_None, llvm::ExceptionHandling::DwarfCFI, emitCFIInstruction(), llvm::MCStreamer::EmitCompactUnwindEncoding(), llvm::MachineModuleInfo::getCompactUnwindEncoding(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineModuleInfo::getFrameInstructions(), llvm::MachineOperand::getMCSymbol(), llvm::MachineFunction::getMMI(), llvm::MachineInstr::getOperand(), I, MAI, MF, MMI, needsCFIMoves(), and OutStreamer.
Referenced by EmitFunctionBody().
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 141 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::DwarfDebug::emitDIE(), and llvm::CompileUnit::emitHeader().
void AsmPrinter::EmitSLEB128 | ( | int64_t | Value, |
const char * | Desc = 0 |
||
) | const |
EmitSLEB128 - emit the specified signed leb128 value.
Definition at line 36 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::AddComment(), llvm::MCStreamer::EmitSLEB128IntValue(), isVerbose(), and OutStreamer.
Referenced by EmitDwarfRegOp(), llvm::DwarfException::EmitExceptionTable(), and llvm::DIEInteger::EmitValue().
bool AsmPrinter::EmitSpecialLLVMGlobal | ( | const GlobalVariable * | GV | ) |
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 1261 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitSymbolAttribute(), llvm::GlobalVariable::getInitializer(), llvm::Value::getName(), llvm::MCContext::GetOrCreateSymbol(), llvm::TargetMachine::getRelocationModel(), llvm::GlobalValue::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().
|
inlinevirtual |
EmitStartOfAsmFile - This virtual method can be overridden by targets that want to emit something at the start of their file.
Reimplemented in llvm::MipsAsmPrinter, llvm::ARMAsmPrinter, and llvm::X86AsmPrinter.
Definition at line 254 of file AsmPrinter.h.
Referenced by doInitialization().
void AsmPrinter::EmitTTypeReference | ( | const GlobalValue * | GV, |
unsigned | Encoding | ||
) | const |
EmitReference - Emit reference to a ttype global with a specified encoding.
Definition at line 122 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitValue(), getObjFileLowering(), GetSizeOfEncodedValue(), llvm::TargetLoweringObjectFile::getTTypeGlobalReference(), Mang, MMI, and OutStreamer.
Referenced by llvm::DwarfException::EmitTypeInfos().
void AsmPrinter::EmitULEB128 | ( | uint64_t | Value, |
const char * | Desc = 0 , |
||
unsigned | PadTo = 0 |
||
) | const |
EmitULEB128 - emit the specified unsigned leb128 value.
EmitULEB128 - emit the specified signed leb128 value.
Definition at line 44 of file AsmPrinterDwarf.cpp.
References llvm::MCStreamer::AddComment(), llvm::MCStreamer::EmitULEB128IntValue(), isVerbose(), and OutStreamer.
Referenced by llvm::DIEAbbrev::Emit(), llvm::DwarfDebug::emitDIE(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), llvm::DwarfException::EmitExceptionTable(), llvm::DwarfException::EmitTypeInfos(), llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
|
inlinevirtual |
EmitXXStructor - 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 280 of file AsmPrinter.h.
References EmitGlobalConstant().
|
virtual |
getAnalysisUsage - Record analysis usage.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 149 of file AsmPrinter.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::MachineFunctionPass::getAnalysisUsage(), isVerbose(), and llvm::AnalysisUsage::setPreservesAll().
MCSymbol * AsmPrinter::GetBlockAddressSymbol | ( | const BlockAddress * | BA | ) | const |
GetBlockAddressSymbol - Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block.
Definition at line 2010 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), llvm::BlockAddress::getBasicBlock(), and MMI.
Referenced by EmitFunctionBody(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::SystemZMCInstLower::getExpr(), llvm::HexagonLowerToMC(), nvptx::LowerConstant(), lowerConstant(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::MipsAsmPrinter::printOperand(), and llvm::AArch64AsmPrinter::printSymbolicAddress().
MCSymbol * AsmPrinter::GetBlockAddressSymbol | ( | const BasicBlock * | BB | ) | const |
Definition at line 2014 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), and MMI.
GetCPISymbol - Return the symbol for the specified constant pool entry.
Definition at line 2019 of file AsmPrinter.cpp.
References getFunctionNumber(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
Referenced by EmitConstantPool(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::SystemZMCInstLower::getExpr(), llvm::HexagonLowerToMC(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::HexagonAsmPrinter::printConstantPool(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::AArch64AsmPrinter::printSymbolicAddress(), and llvm::X86AsmPrinter::printSymbolOperand().
const MCSection * AsmPrinter::getCurrentSection | ( | ) | const |
getCurrentSection() - Return the current section we are emitting to.
Definition at line 143 of file AsmPrinter.cpp.
References llvm::MCStreamer::getCurrentSection(), and OutStreamer.
Referenced by EmitAlignment(), and EmitFunctionBody().
const DataLayout & AsmPrinter::getDataLayout | ( | ) | const |
getDataLayout - Return information about data layout.
Definition at line 134 of file AsmPrinter.cpp.
References llvm::TargetMachine::getDataLayout(), and TM.
Referenced by llvm::CompileUnit::addConstantFPValue(), llvm::CompileUnit::addConstantValue(), llvm::CompileUnit::createGlobalVariableDIE(), llvm::DwarfUnits::emitAddresses(), llvm::DwarfException::EmitExceptionTable(), llvm::CompileUnit::emitHeader(), llvm::DIEInteger::EmitValue(), llvm::DIEEntry::getRefAddrSize(), llvm::DIEInteger::SizeOf(), llvm::DIEExpr::SizeOf(), llvm::DIELabel::SizeOf(), and llvm::DIEDelta::SizeOf().
|
inline |
Definition at line 126 of file AsmPrinter.h.
Referenced by llvm::DIEEntry::getRefAddrSize().
GetExternalSymbolSymbol - Return the MCSymbol for the specified ExternalSymbol.
Definition at line 2052 of file AsmPrinter.cpp.
References llvm::Mangler::getNameWithPrefix(), llvm::MCContext::GetOrCreateSymbol(), Mang, OutContext, and llvm::SmallString< InternalLen >::str().
Referenced by llvm::Win64Exception::BeginFunction(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::HexagonLowerToMC(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), and llvm::X86AsmPrinter::printSymbolOperand().
unsigned AsmPrinter::getFunctionNumber | ( | ) | const |
getFunctionNumber - Return a unique ID for the current function.
Definition at line 125 of file AsmPrinter.cpp.
References llvm::MachineFunction::getFunctionNumber(), and MF.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::ARMException::BeginFunction(), llvm::Win64Exception::BeginFunction(), llvm::DwarfDebug::beginFunction(), emitBasicBlockLoopComments(), llvm::DwarfException::EmitExceptionTable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::DwarfDebug::endFunction(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), GetCPISymbol(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::MipsAsmPrinter::printOperand(), and PrintSpecial().
|
inlinevirtual |
getISAEncoding - Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 418 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::getOrCreateSubprogramDIE().
GetJTISymbol - Return the symbol for the specified jump table entry.
Definition at line 2026 of file AsmPrinter.cpp.
References llvm::MachineFunction::getJTISymbol(), MF, and OutContext.
Referenced by EmitJumpTableInfo(), llvm::SystemZMCInstLower::getExpr(), llvm::HexagonLowerToMC(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::HexagonAsmPrinter::printJumpTable(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), and llvm::X86AsmPrinter::printSymbolOperand().
GetJTSetSymbol - Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter.
Definition at line 2032 of file AsmPrinter.cpp.
References getFunctionNumber(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
Referenced by EmitJumpTableInfo().
const TargetLoweringObjectFile & AsmPrinter::getObjFileLowering | ( | ) | const |
getObjFileLowering - Return information about object file lowering.
Definition at line 129 of file AsmPrinter.cpp.
References llvm::TargetLoweringBase::getObjFileLowering(), llvm::TargetMachine::getTargetLowering(), and TM.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::Win64Exception::BeginFunction(), llvm::DwarfDebug::beginModule(), llvm::CompileUnit::createGlobalVariableDIE(), doFinalization(), doInitialization(), EmitConstantPool(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionHeader(), EmitGlobalVariable(), EmitJumpTableInfo(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::Win64Exception::EndFunction(), llvm::DwarfCFIException::EndModule(), llvm::DwarfDebug::endModule(), getSymbol(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), and llvm::MipsAsmPrinter::runOnMachineFunction().
GetSizeOfEncodedValue - Return the size of the encoding in bytes.
Definition at line 109 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::TargetMachine::getDataLayout(), llvm::DataLayout::getPointerSize(), llvm_unreachable, and TM.
Referenced by llvm::DwarfException::EmitExceptionTable(), and EmitTTypeReference().
MCSymbol * AsmPrinter::getSymbol | ( | const GlobalValue * | GV | ) | const |
Definition at line 277 of file AsmPrinter.cpp.
References getObjFileLowering(), llvm::TargetLoweringObjectFile::getSymbol(), and Mang.
Referenced by llvm::CompileUnit::createGlobalVariableDIE(), doFinalization(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::ARMException::EndFunction(), llvm::DwarfCFIException::EndModule(), llvm::SystemZMCInstLower::getExpr(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), GetSymbolFromOperand(), llvm::HexagonLowerToMC(), nvptx::LowerConstant(), lowerConstant(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::HexagonAsmPrinter::printGlobalOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::AArch64AsmPrinter::printSymbolicAddress(), llvm::X86AsmPrinter::printSymbolOperand(), and SetupMachineFunction().
MCSymbol * AsmPrinter::GetSymbolWithGlobalValueBase | ( | const GlobalValue * | GV, |
StringRef | Suffix, | ||
bool | ForcePrivate = true |
||
) | const |
GetSymbolWithGlobalValueBase - Return the MCSymbol for a symbol with global value name as its base, with the specified suffix, and where the symbol is forced to have private linkage if ForcePrivate is true.
Definition at line 2041 of file AsmPrinter.cpp.
References llvm::SmallString< InternalLen >::append(), llvm::StringRef::begin(), llvm::StringRef::end(), llvm::Mangler::getNameWithPrefix(), llvm::MCContext::GetOrCreateSymbol(), Mang, OutContext, and llvm::SmallString< InternalLen >::str().
Referenced by llvm::X86AsmPrinter::printSymbolOperand().
StringRef AsmPrinter::getTargetTriple | ( | ) | const |
getTargetTriple - Return the target triple string.
Definition at line 138 of file AsmPrinter.cpp.
References llvm::TargetMachine::getTargetTriple(), and TM.
Referenced by llvm::DwarfDebug::DwarfDebug().
GetTempSymbol - Return the MCSymbol corresponding to the assembler temporary label with the specified stem and unique ID.
Definition at line 1997 of file AsmPrinter.cpp.
References llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::ARMException::BeginFunction(), llvm::Win64Exception::BeginFunction(), llvm::DwarfDebug::beginFunction(), llvm::CompileUnit::constructVariableDIE(), llvm::DwarfException::EmitExceptionTable(), llvm::CompileUnit::emitHeader(), EmitLabelDifference(), EmitLabelOffsetDifference(), emitSectionSym(), llvm::DwarfUnits::emitUnits(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::DwarfDebug::endFunction(), llvm::DwarfAccelTable::FinalizeTable(), llvm::DwarfUnits::getStringPoolEntry(), llvm::DwarfUnits::getStringPoolIndex(), and llvm::DwarfUnits::getStringPoolSym().
GetTempSymbol - Return an assembler temporary label with the specified stem.
Definition at line 2004 of file AsmPrinter.cpp.
References llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
|
virtual |
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 2193 of file AsmPrinter.cpp.
References llvm::MachineBasicBlock::empty(), llvm::MachineBasicBlock::end(), llvm::MachineBasicBlock::getFirstTerminator(), llvm::MachineOperand::getMBB(), llvm::ARM_PROC::IE, llvm::MachineInstr::isBranch(), llvm::MachineInstr::isIndirectBranch(), llvm::MachineOperand::isJTI(), llvm::MachineBasicBlock::isLandingPad(), llvm::MachineBasicBlock::isLayoutSuccessor(), llvm::MachineOperand::isMBB(), llvm::A64CC::MI, OP, llvm::MachineInstr::operands_begin(), llvm::MachineInstr::operands_end(), llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_empty(), and llvm::MachineBasicBlock::pred_end().
Referenced by EmitBasicBlockStart(), and llvm::HexagonAsmPrinter::isBlockOnlyReachableByFallthrough().
|
inline |
isVerbose - Return true if assembly output should contain comments.
Definition at line 130 of file AsmPrinter.h.
Referenced by EmitBasicBlockStart(), EmitCFAByte(), llvm::DwarfDebug::emitDIE(), EmitEncodingByte(), EmitFunctionBody(), EmitFunctionHeader(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), EmitGlobalVariable(), EmitSLEB128(), EmitULEB128(), getAnalysisUsage(), and SetupMachineFunction().
AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves | ( | ) |
Definition at line 644 of file AsmPrinter.cpp.
References CFI_M_Debug, CFI_M_EH, CFI_M_None, llvm::ExceptionHandling::DwarfCFI, llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineFunction::getFunction(), llvm::MachineModuleInfo::hasDebugInfo(), MAI, MF, MMI, and llvm::Function::needsUnwindTableEntry().
Referenced by llvm::DwarfCFIException::BeginFunction(), and emitPrologLabel().
bool AsmPrinter::needsRelocationsForDwarfStringPool | ( | ) | const |
needsRelocationsForDwarfStringPool - Specifies whether the object format expects to use relocations to refer to debug entries. Alternatively we emit section offsets in bytes from the start of the string pool.
Definition at line 660 of file AsmPrinter.cpp.
References llvm::MCAsmInfo::doesDwarfUseRelocationsAcrossSections(), and MAI.
Referenced by llvm::CompileUnit::addLocalString(), and llvm::CompileUnit::addString().
bool AsmPrinter::needsSEHMoves | ( | ) |
Definition at line 655 of file AsmPrinter.cpp.
References llvm::MCAsmInfo::getExceptionHandlingType(), llvm::MachineFunction::getFunction(), MAI, MF, llvm::Function::needsUnwindTableEntry(), and llvm::ExceptionHandling::Win64.
Referenced by llvm::Win64Exception::BeginFunction().
|
virtual |
PrintAsmMemoryOperand - 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::AArch64AsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 547 of file AsmPrinterInlineAsm.cpp.
Referenced by EmitGCCInlineAsmStr(), and EmitMSInlineAsmStr().
|
virtual |
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.
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::AArch64AsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 521 of file AsmPrinterInlineAsm.cpp.
References llvm::MachineOperand::getImm(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getType(), and llvm::MachineOperand::MO_Immediate.
Referenced by EmitGCCInlineAsmStr(), EmitMSInlineAsmStr(), llvm::HexagonAsmPrinter::PrintAsmOperand(), llvm::AArch64AsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::X86AsmPrinter::PrintAsmOperand(), and llvm::MipsAsmPrinter::PrintAsmOperand().
void AsmPrinter::printOffset | ( | int64_t | Offset, |
raw_ostream & | OS | ||
) | const |
printOffset - This is just convenient handler for printing offsets.
Definition at line 1984 of file AsmPrinter.cpp.
Referenced by llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), and llvm::X86AsmPrinter::printSymbolOperand().
|
virtual |
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 492 of file AsmPrinterInlineAsm.cpp.
References llvm::MCAsmInfo::getCommentString(), getFunctionNumber(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, llvm::A64CC::MI, llvm::report_fatal_error(), llvm::raw_string_ostream::str(), and llvm::LibFunc::strcmp.
Referenced by EmitGCCInlineAsmStr().
|
inlinevirtual |
runOnMachineFunction - Emit the specified function out to the OutStreamer.
Implements llvm::MachineFunctionPass.
Reimplemented in llvm::X86AsmPrinter, llvm::MipsAsmPrinter, llvm::AArch64AsmPrinter, llvm::ARMAsmPrinter, and llvm::AMDGPUAsmPrinter.
Definition at line 169 of file AsmPrinter.h.
References EmitFunctionBody(), EmitFunctionHeader(), and SetupMachineFunction().
Referenced by llvm::ARMAsmPrinter::runOnMachineFunction(), llvm::AArch64AsmPrinter::runOnMachineFunction(), and llvm::MipsAsmPrinter::runOnMachineFunction().
void AsmPrinter::SetupMachineFunction | ( | MachineFunction & | MF | ) |
SetupMachineFunction - This should be called when a new MachineFunction is being processed from runOnMachineFunction.
Definition at line 1003 of file AsmPrinter.cpp.
References CurrentFnSym, CurrentFnSymForSize, llvm::MachineFunction::getFunction(), getSymbol(), isVerbose(), and MF.
Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
MCSymbol* llvm::AsmPrinter::CurrentFnSym |
The symbol for the current function. This is recalculated at the beginning of each call to runOnMachineFunction().
Definition at line 93 of file AsmPrinter.h.
Referenced by AsmPrinter(), llvm::Win64Exception::BeginFunction(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitFunctionHeader(), llvm::X86AsmPrinter::runOnMachineFunction(), and SetupMachineFunction().
MCSymbol* llvm::AsmPrinter::CurrentFnSymForSize |
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 98 of file AsmPrinter.h.
Referenced by AsmPrinter(), EmitFunctionBody(), and SetupMachineFunction().
const MCAsmInfo* llvm::AsmPrinter::MAI |
Target Asm Printer information.
Definition at line 66 of file AsmPrinter.h.
Referenced by llvm::DwarfException::ComputeCallSiteTable(), doFinalization(), doInitialization(), EmitBasicBlockStart(), emitDebugValueComment(), llvm::DwarfDebug::emitDIE(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionBody(), EmitFunctionHeader(), EmitGlobalConstant(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), EmitJumpTableInfo(), EmitLabelDifference(), EmitLabelOffsetDifference(), EmitLabelPlusOffset(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), emitPrologLabel(), EmitSectionOffset(), EmitSpecialLLVMGlobal(), llvm::DwarfCFIException::EndModule(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), GetCPISymbol(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), GetSymbolFromOperand(), GetTempSymbol(), needsCFIMoves(), needsRelocationsForDwarfStringPool(), needsSEHMoves(), llvm::MipsAsmPrinter::printOperand(), and PrintSpecial().
Mangler* llvm::AsmPrinter::Mang |
Name-mangler for global names.
Definition at line 88 of file AsmPrinter.h.
Referenced by llvm::DwarfCFIException::BeginFunction(), doFinalization(), doInitialization(), EmitCamlGlobal(), EmitFunctionHeader(), EmitGlobalVariable(), EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::Win64Exception::EndFunction(), GetExternalSymbolSymbol(), getSymbol(), GetSymbolFromOperand(), and GetSymbolWithGlobalValueBase().
const MachineFunction* llvm::AsmPrinter::MF |
The current machine function.
Definition at line 81 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::addRegisterOffset(), AsmPrinter(), llvm::ARMException::BeginFunction(), llvm::DwarfDebug::beginInstruction(), llvm::DwarfException::ComputeCallSiteTable(), llvm::CompileUnit::constructVariableDIE(), EmitConstantPool(), emitDebugValueComment(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), EmitFunctionHeader(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJump2Table(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), emitPrologLabel(), llvm::ARMException::EndFunction(), getFunctionNumber(), GetJTISymbol(), nvptx::LowerConstant(), lowerConstant(), needsCFIMoves(), needsSEHMoves(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::AArch64AsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::PrintAsmOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::X86AsmPrinter::printSymbolOperand(), and SetupMachineFunction().
const MCInstrInfo* llvm::AsmPrinter::MII |
Definition at line 68 of file AsmPrinter.h.
Referenced by llvm::HexagonAsmPrinter::EmitInstruction().
MachineModuleInfo* llvm::AsmPrinter::MMI |
MMI - This is a pointer to the current MachineModuleInfo.
Definition at line 84 of file AsmPrinter.h.
Referenced by AsmPrinter(), doFinalization(), doInitialization(), EmitBasicBlockStart(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), EmitFunctionHeader(), emitPrologLabel(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), GetBlockAddressSymbol(), getMachOMMI(), needsCFIMoves(), and llvm::X86AsmPrinter::printSymbolOperand().
MCContext& llvm::AsmPrinter::OutContext |
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 72 of file AsmPrinter.h.
Referenced by doFinalization(), doInitialization(), EmitCamlGlobal(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionBody(), EmitGlobalVariable(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJump2Table(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), EmitLabelDifference(), EmitLabelOffsetDifference(), EmitLabelPlusOffset(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), EmitSpecialLLVMGlobal(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::Win64Exception::EndFunction(), llvm::DwarfUnits::getAddrPoolIndex(), GetCPISymbol(), GetExternalSymbolSymbol(), GetJTISymbol(), GetJTSetSymbol(), GetSymbolFromOperand(), GetSymbolRef(), GetSymbolWithGlobalValueBase(), GetTempSymbol(), llvm::HexagonLowerToMC(), nvptx::LowerConstant(), lowerConstant(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::AArch64AsmPrinter::lowerSymbolOperand(), llvm::X86AsmPrinter::printSymbolOperand(), and llvm::MipsAsmPrinter::runOnMachineFunction().
MCStreamer& llvm::AsmPrinter::OutStreamer |
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 78 of file AsmPrinter.h.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::ARMException::BeginFunction(), llvm::Win64Exception::BeginFunction(), llvm::DwarfDebug::beginFunction(), llvm::DwarfDebug::beginInstruction(), doFinalization(), doInitialization(), llvm::DwarfUnits::emitAddresses(), llvm::HexagonAsmPrinter::EmitAlignment(), EmitAlignment(), emitBasicBlockLoopComments(), EmitBasicBlockStart(), EmitCamlGlobal(), EmitCFAByte(), emitCFIInstruction(), EmitConstantPool(), emitDebugValueComment(), llvm::DwarfDebug::emitDIE(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), EmitEncodingByte(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), llvm::ARMAsmPrinter::EmitFunctionBodyEnd(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), llvm::CompileUnit::emitHeader(), emitImplicitDef(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::AArch64AsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), EmitInt16(), EmitInt32(), EmitInt8(), llvm::ARMAsmPrinter::EmitJump2Table(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), emitKill(), EmitLabelDifference(), EmitLabelOffsetDifference(), EmitLabelPlusOffset(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::AMDGPUAsmPrinter::EmitProgramInfoR600(), llvm::AMDGPUAsmPrinter::EmitProgramInfoSI(), emitPrologLabel(), EmitSectionOffset(), emitSectionSym(), EmitSLEB128(), EmitSpecialLLVMGlobal(), llvm::X86AsmPrinter::EmitStartOfAsmFile(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::MipsAsmPrinter::EmitStartOfAsmFile(), llvm::DwarfUnits::emitStrings(), EmitTTypeReference(), llvm::DwarfException::EmitTypeInfos(), EmitULEB128(), llvm::DwarfUnits::emitUnits(), llvm::DIEInteger::EmitValue(), llvm::DIEExpr::EmitValue(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::DwarfDebug::endFunction(), llvm::DwarfDebug::endInstruction(), llvm::DwarfCFIException::EndModule(), getCurrentSection(), llvm::DwarfDebug::getOrCreateSourceID(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), llvm::StackMaps::serializeToStackMapSection(), and ~AsmPrinter().
TargetMachine& llvm::AsmPrinter::TM |
Target machine description.
Definition at line 62 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::addRegisterOffset(), llvm::CompileUnit::addRegisterOp(), llvm::DwarfDebug::beginFunction(), llvm::CompileUnit::constructVariableDIE(), doFinalization(), doInitialization(), EmitAlignment(), EmitConstantPool(), emitDebugValueComment(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), emitImplicitDef(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTable(), EmitJumpTableInfo(), emitKill(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::AMDGPUAsmPrinter::EmitProgramInfoR600(), llvm::AMDGPUAsmPrinter::EmitProgramInfoSI(), EmitSpecialLLVMGlobal(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::DwarfCFIException::EndModule(), getDataLayout(), getObjFileLowering(), llvm::DwarfDebug::getOrCreateSourceID(), GetSizeOfEncodedValue(), getTargetTriple(), nvptx::LowerConstant(), lowerConstant(), llvm::MipsAsmPrinter::printSavedRegsBitmask(), llvm::AArch64AsmPrinter::printSymbolicAddress(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::MipsAsmPrinter::runOnMachineFunction(), and llvm::StackMaps::serializeToStackMapSection().