LLVM API Documentation
#include <AsmPrinter.h>


Public Types | |
| enum | CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug } |
Public Member Functions | |
| virtual | ~AsmPrinter () |
| bool | isVerbose () const |
| unsigned | getFunctionNumber () const |
| const TargetLoweringObjectFile & | getObjFileLowering () const |
| getObjFileLowering - Return information about object file lowering. | |
| const DataLayout & | getDataLayout () const |
| getDataLayout - Return information about data layout. | |
| StringRef | getTargetTriple () const |
| getTargetTriple - Return the target triple string. | |
| const MCSection * | getCurrentSection () const |
| getCurrentSection() - Return the current section we are emitting to. | |
| 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. | |
| 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, unsigned AddrSpace=0) |
| EmitGlobalConstant - 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 | EmitInstruction (const MachineInstr *) |
| EmitInstruction - Targets should implement this to emit instructions. | |
| virtual void | EmitFunctionEntryLabel () |
| virtual void | EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV) |
| virtual void | EmitXXStructor (const Constant *CV) |
| virtual bool | isBlockOnlyReachableByFallthrough (const MachineBasicBlock *MBB) 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. | |
| MCSymbol * | GetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const |
| GetJTISymbol - Return the symbol for the specified jump table entry. | |
| 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. | |
| 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) const |
| void | EmitLabelReference (const MCSymbol *Label, unsigned Size) const |
| void | EmitSLEB128 (int Value, const char *Desc=0) const |
| EmitSLEB128 - emit the specified signed leb128 value. | |
| void | EmitULEB128 (unsigned Value, const char *Desc=0, unsigned PadTo=0) const |
| EmitULEB128 - emit the specified unsigned leb128 value. | |
| void | EmitCFAByte (unsigned Val) const |
| EmitCFAByte - Emit a .byte 42 directive for a DW_CFA_xxx value. | |
| void | EmitEncodingByte (unsigned Val, const char *Desc=0) const |
| unsigned | GetSizeOfEncodedValue (unsigned Encoding) const |
| GetSizeOfEncodedValue - Return the size of the encoding in bytes. | |
| void | EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const |
| EmitReference - Emit reference to a ttype global with a specified encoding. | |
| void | EmitSectionOffset (const MCSymbol *Label, const MCSymbol *SectionLabel) const |
| virtual MachineLocation | getDebugValueLocation (const MachineInstr *MI) const |
| virtual unsigned | getISAEncoding () |
| virtual void | EmitDwarfRegOp (const MachineLocation &MLoc) 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) |
Public Attributes | |
| TargetMachine & | TM |
| const MCAsmInfo * | MAI |
| MCContext & | OutContext |
| MCStreamer & | OutStreamer |
| const MachineFunction * | MF |
| The current machine function. | |
| MachineModuleInfo * | MMI |
| MMI - This is a pointer to the current MachineModuleInfo. | |
| Mangler * | Mang |
| MCSymbol * | CurrentFnSym |
| MCSymbol * | CurrentFnSymForSize |
Protected Member Functions | |
| AsmPrinter (TargetMachine &TM, MCStreamer &Streamer) | |
AsmPrinter - This class is intended to be used as a driving class for all asm writers.
Definition at line 57 of file AsmPrinter.h.
Definition at line 189 of file AsmPrinter.h.
| AsmPrinter::AsmPrinter | ( | TargetMachine & | TM, |
| MCStreamer & | Streamer | ||
| ) | [explicit, protected] |
Definition at line 94 of file AsmPrinter.cpp.
References CurrentFnSym, CurrentFnSymForSize, llvm::MCStreamer::isVerboseAsm(), and MMI.
| AsmPrinter::~AsmPrinter | ( | ) | [virtual] |
Definition at line 106 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 848 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::Module::getFunction(), llvm::Module::getModuleFlagsMetadata(), llvm::MCAsmInfo::getNonexecutableStackSection(), getObjFileLowering(), llvm::Mangler::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::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 156 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::TargetMachine::getDataLayout(), 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.
Reimplemented in llvm::HexagonAsmPrinter.
Definition at line 1423 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 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 2036 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::MCCFIInstruction::getOffset(), llvm::MCCFIInstruction::getOperation(), llvm::MCCFIInstruction::getRegister(), llvm_unreachable, llvm::MCCFIInstruction::OpDefCfa, llvm::MCCFIInstruction::OpDefCfaOffset, llvm::MCCFIInstruction::OpDefCfaRegister, llvm::MCCFIInstruction::OpOffset, and OutStreamer.
Referenced by emitPrologLabel().
| void AsmPrinter::EmitConstantPool | ( | ) | [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::ARMAsmPrinter.
Definition at line 984 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 EmitFunctionHeader().
| void AsmPrinter::EmitDwarfRegOp | ( | const MachineLocation & | MLoc | ) | const [virtual] |
EmitDwarfRegOp - Emit dwarf register operation.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 802 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddComment(), llvm::dwarf::DW_OP_breg0, llvm::dwarf::DW_OP_bregx, 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.
| 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().
| virtual void llvm::AsmPrinter::EmitEndOfAsmFile | ( | Module & | ) | [inline, virtual] |
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::AArch64AsmPrinter, llvm::SystemZAsmPrinter, and llvm::X86AsmPrinter.
Definition at line 253 of file AsmPrinter.h.
Referenced by doFinalization().
| void AsmPrinter::EmitFunctionBody | ( | ) |
EmitFunctionBody - This method emits the body and trailer for a function.
Definition at line 654 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().
| virtual void llvm::AsmPrinter::EmitFunctionBodyEnd | ( | ) | [inline, virtual] |
EmitFunctionBodyEnd - Targets can override this to emit stuff after the last basic block in the function.
Reimplemented in llvm::ARMAsmPrinter, and llvm::MipsAsmPrinter.
Definition at line 261 of file AsmPrinter.h.
Referenced by EmitFunctionBody().
| virtual void llvm::AsmPrinter::EmitFunctionBodyStart | ( | ) | [inline, virtual] |
EmitFunctionBodyStart - Targets can override this to emit stuff before the first basic block in the function.
Reimplemented in llvm::MipsAsmPrinter.
Definition at line 257 of file AsmPrinter.h.
Referenced by EmitFunctionBody().
| void AsmPrinter::EmitFunctionEntryLabel | ( | ) | [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::ARMAsmPrinter, and llvm::MipsAsmPrinter.
Definition at line 483 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 424 of file AsmPrinter.cpp.
References llvm::MCStreamer::AddComment(), llvm::DwarfException::BeginFunction(), llvm::DwarfDebug::beginFunction(), CurrentFnSym, DbgTimerName, DWARFGroupName, EHTimerName, EmitAlignment(), EmitConstantPool(), EmitFunctionEntryLabel(), llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::EmitSymbolAttribute(), F(), llvm::MachineFunction::getAlignment(), llvm::MCStreamer::GetCommentOS(), llvm::MachineFunction::getFunction(), llvm::GlobalValue::getLinkage(), llvm::MCAsmInfo::getLinkOnceDirective(), llvm::MCSymbol::getName(), getObjFileLowering(), llvm::MCContext::GetOrCreateSymbol(), llvm::GlobalValue::getParent(), llvm::GlobalValue::getVisibility(), llvm::MCAsmInfo::hasDotTypeDotSizeDirective(), llvm::GlobalValue::hasLinkOnceLinkage(), llvm::GlobalValue::hasWeakLinkage(), isVerbose(), MAI, Mang, llvm::MCSA_ELF_TypeFunction, MF, MMI, OutContext, OutStreamer, llvm::MCStreamer::SwitchSection(), T, llvm::MachineModuleInfo::takeDeletedSymbolsForFunction(), llvm::TimePassesIsEnabled, TM, and llvm::WriteAsOperand().
Referenced by llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
EmitGlobalConstant - Print a general LLVM constant to the .s file.
Definition at line 1876 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(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), and EmitXXStructor().
| void AsmPrinter::EmitGlobalVariable | ( | const GlobalVariable * | GV | ) | [virtual] |
EmitGlobalVariable - Emit the specified global variable to the .s file.
Definition at line 262 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::GlobalValue::getLinkage(), llvm::MCSymbol::getName(), getObjFileLowering(), llvm::MCContext::GetOrCreateSymbol(), llvm::GlobalValue::getParent(), llvm::DataLayout::getPointerSizeInBits(), llvm::Mangler::getSymbol(), 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::MCStreamer::SwitchSection(), TM, and llvm::WriteAsOperand().
Referenced by doFinalization().
| virtual void llvm::AsmPrinter::EmitInstruction | ( | const MachineInstr * | ) | [inline, virtual] |
EmitInstruction - Targets should implement this to emit instructions.
Reimplemented in llvm::ARMAsmPrinter, llvm::MipsAsmPrinter, llvm::AArch64AsmPrinter, llvm::X86AsmPrinter, llvm::AMDGPUAsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 264 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 1335 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitInt32 | ( | int | Value | ) | const |
EmitInt32 - Emit a long directive and value.
Definition at line 1341 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::DIEEntry::EmitValue(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitInt8 | ( | int | Value | ) | const |
EmitInt8 - Emit a byte directive and value.
Definition at line 1329 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitIntValue(), and OutStreamer.
Referenced by llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), 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 1064 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 1348 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::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 1370 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.
| void AsmPrinter::EmitLabelPlusOffset | ( | const MCSymbol * | Label, |
| uint64_t | Offset, | ||
| unsigned | Size | ||
| ) | 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 1400 of file AsmPrinter.cpp.
References llvm::MCConstantExpr::Create(), llvm::MCSymbolRefExpr::Create(), llvm::MCBinaryExpr::CreateAdd(), llvm::MCStreamer::EmitValue(), OutContext, and OutStreamer.
Referenced by EmitLabelReference().
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 365 of file AsmPrinter.h.
References EmitLabelPlusOffset().
| void AsmPrinter::EmitMachineConstantPoolValue | ( | MachineConstantPoolValue * | MCPV | ) | [virtual] |
Reimplemented in llvm::ARMAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 1887 of file AsmPrinter.cpp.
References llvm_unreachable.
Referenced by EmitConstantPool().
| void AsmPrinter::emitPrologLabel | ( | const MachineInstr & | MI | ) |
Definition at line 626 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 ARMBuildAttrs::Section.
| void AsmPrinter::EmitSLEB128 | ( | int | 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 1217 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().
| virtual void llvm::AsmPrinter::EmitStartOfAsmFile | ( | Module & | ) | [inline, virtual] |
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 249 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().
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::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), llvm::DwarfException::EmitExceptionTable(), llvm::DwarfException::EmitTypeInfos(), llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
| virtual void llvm::AsmPrinter::EmitXXStructor | ( | const Constant * | CV | ) | [inline, virtual] |
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 275 of file AsmPrinter.h.
References EmitGlobalConstant().
| void AsmPrinter::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [virtual] |
getAnalysisUsage - Record analysis usage.
Reimplemented from llvm::MachineFunctionPass.
Definition at line 147 of file AsmPrinter.cpp.
References llvm::AnalysisUsage::addRequired(), 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 1918 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), llvm::BlockAddress::getBasicBlock(), and MMI.
Referenced by EmitFunctionBody(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::MSP430MCInstLower::GetBlockAddressSymbol(), llvm::MBlazeMCInstLower::GetBlockAddressSymbol(), llvm::HexagonLowerToMC(), nvptx::LowerConstant(), lowerConstant(), llvm::SystemZMCInstLower::lowerOperand(), 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 1922 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::getAddrLabelSymbol(), and MMI.
GetCPISymbol - Return the symbol for the specified constant pool entry.
Definition at line 1927 of file AsmPrinter.cpp.
References getFunctionNumber(), llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
Referenced by EmitConstantPool(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::HexagonLowerToMC(), llvm::SystemZMCInstLower::lowerOperand(), 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 141 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 132 of file AsmPrinter.cpp.
References llvm::TargetMachine::getDataLayout(), and TM.
Referenced by llvm::CompileUnit::addConstantFPValue(), llvm::CompileUnit::addConstantValue(), llvm::CompileUnit::createGlobalVariableDIE(), llvm::CompileUnit::createMemberDIE(), llvm::DwarfException::EmitExceptionTable(), llvm::DIEInteger::EmitValue(), llvm::DIEInteger::SizeOf(), llvm::DIELabel::SizeOf(), and llvm::DIEDelta::SizeOf().
| MachineLocation AsmPrinter::getDebugValueLocation | ( | const MachineInstr * | MI | ) | const [virtual] |
getDebugValueLocation - Get location information encoded by DBG_VALUE operands.
Reimplemented in llvm::ARMAsmPrinter, llvm::MipsAsmPrinter, llvm::X86AsmPrinter, and llvm::AArch64AsmPrinter.
Definition at line 796 of file AsmPrinter.cpp.
Referenced by llvm::CompileUnit::constructVariableDIE(), and getDebugLocEntry().
GetExternalSymbolSymbol - Return the MCSymbol for the specified ExternalSymbol.
Definition at line 1960 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::MBlazeMCInstLower::GetExternalSymbolSymbol(), llvm::MSP430MCInstLower::GetExternalSymbolSymbol(), llvm::HexagonLowerToMC(), llvm::SystemZMCInstLower::lowerOperand(), 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 123 of file AsmPrinter.cpp.
References llvm::MachineFunction::getFunctionNumber(), and MF.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::ARMException::BeginFunction(), llvm::Win64Exception::BeginFunction(), emitBasicBlockLoopComments(), llvm::DwarfException::EmitExceptionTable(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::MBlazeMCInstLower::GetConstantPoolIndexSymbol(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), GetCPISymbol(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::MBlazeMCInstLower::GetJumpTableSymbol(), llvm::MipsAsmPrinter::printOperand(), and PrintSpecial().
| virtual unsigned llvm::AsmPrinter::getISAEncoding | ( | ) | [inline, virtual] |
getISAEncoding - Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified.
Reimplemented in llvm::ARMAsmPrinter.
Definition at line 411 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::getOrCreateSubprogramDIE().
GetJTISymbol - Return the symbol for the specified jump table entry.
Definition at line 1934 of file AsmPrinter.cpp.
References llvm::MachineFunction::getJTISymbol(), MF, and OutContext.
Referenced by EmitJumpTableInfo(), llvm::HexagonLowerToMC(), llvm::SystemZMCInstLower::lowerOperand(), 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 1940 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 127 of file AsmPrinter.cpp.
References llvm::TargetLoweringBase::getObjFileLowering(), llvm::TargetMachine::getTargetLowering(), and TM.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::Win64Exception::BeginFunction(), doFinalization(), doInitialization(), EmitConstantPool(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::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::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::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 1949 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 136 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 1905 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::CompileUnit::constructVariableDIE(), llvm::DwarfException::EmitExceptionTable(), EmitLabelDifference(), EmitLabelOffsetDifference(), emitSectionSym(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::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 1912 of file AsmPrinter.cpp.
References llvm::MCContext::GetOrCreateSymbol(), llvm::MCAsmInfo::getPrivateGlobalPrefix(), MAI, and OutContext.
| bool AsmPrinter::isBlockOnlyReachableByFallthrough | ( | const MachineBasicBlock * | MBB | ) | const [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 2101 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().
| bool llvm::AsmPrinter::isVerbose | ( | ) | const [inline] |
isVerbose - Return true if assembly output should contain comments.
Definition at line 126 of file AsmPrinter.h.
Referenced by EmitBasicBlockStart(), EmitCFAByte(), EmitEncodingByte(), EmitFunctionBody(), EmitFunctionHeader(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), EmitGlobalVariable(), llvm::X86AsmPrinter::EmitInstruction(), llvm::AArch64AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), EmitSLEB128(), EmitULEB128(), getAnalysisUsage(), and SetupMachineFunction().
| AsmPrinter::CFIMoveType AsmPrinter::needsCFIMoves | ( | ) |
Definition at line 606 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 622 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 617 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().
| bool AsmPrinter::PrintAsmMemoryOperand | ( | const MachineInstr * | MI, |
| unsigned | OpNo, | ||
| unsigned | AsmVariant, | ||
| const char * | ExtraCode, | ||
| raw_ostream & | OS | ||
| ) | [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::ARMAsmPrinter, llvm::X86AsmPrinter, llvm::AArch64AsmPrinter, llvm::HexagonAsmPrinter, and llvm::SystemZAsmPrinter.
Definition at line 547 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] |
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::ARMAsmPrinter, llvm::X86AsmPrinter, 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(), and EmitMSInlineAsmStr().
| void AsmPrinter::printOffset | ( | int64_t | Offset, |
| raw_ostream & | OS | ||
| ) | const |
printOffset - This is just convenient handler for printing offsets.
Definition at line 1892 of file AsmPrinter.cpp.
Referenced by llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), and llvm::X86AsmPrinter::printSymbolOperand().
| void AsmPrinter::PrintSpecial | ( | const MachineInstr * | MI, |
| raw_ostream & | OS, | ||
| const char * | Code | ||
| ) | const [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().
| virtual bool llvm::AsmPrinter::runOnMachineFunction | ( | MachineFunction & | MF | ) | [inline, virtual] |
runOnMachineFunction - Emit the specified function out to the OutStreamer.
Implements llvm::MachineFunctionPass.
Reimplemented in llvm::AArch64AsmPrinter, llvm::ARMAsmPrinter, llvm::X86AsmPrinter, llvm::MipsAsmPrinter, and llvm::AMDGPUAsmPrinter.
Definition at line 164 of file AsmPrinter.h.
References EmitFunctionBody(), EmitFunctionHeader(), and SetupMachineFunction().
| void AsmPrinter::SetupMachineFunction | ( | MachineFunction & | MF | ) |
SetupMachineFunction - This should be called when a new MachineFunction is being processed from runOnMachineFunction.
Definition at line 959 of file AsmPrinter.cpp.
References CurrentFnSym, CurrentFnSymForSize, llvm::MachineFunction::getFunction(), llvm::Mangler::getSymbol(), isVerbose(), Mang, and MF.
Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and runOnMachineFunction().
The symbol for the current function. This is recalculated at the beginning of each call to runOnMachineFunction().
Definition at line 91 of file AsmPrinter.h.
Referenced by AsmPrinter(), llvm::Win64Exception::BeginFunction(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitFunctionHeader(), llvm::X86AsmPrinter::runOnMachineFunction(), and SetupMachineFunction().
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 96 of file AsmPrinter.h.
Referenced by AsmPrinter(), EmitFunctionBody(), and SetupMachineFunction().
| const MCAsmInfo* llvm::AsmPrinter::MAI |
Target Asm Printer information.
Definition at line 65 of file AsmPrinter.h.
Referenced by llvm::DwarfException::ComputeCallSiteTable(), doFinalization(), doInitialization(), EmitBasicBlockStart(), emitDebugValueComment(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionBody(), EmitFunctionHeader(), EmitGlobalConstant(), EmitGlobalVariable(), llvm::ARMAsmPrinter::EmitInstruction(), EmitJumpTableInfo(), EmitLabelDifference(), EmitLabelOffsetDifference(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), emitPrologLabel(), EmitSectionOffset(), EmitSpecialLLVMGlobal(), llvm::DwarfCFIException::EndModule(), llvm::MSP430MCInstLower::GetConstantPoolIndexSymbol(), llvm::MBlazeMCInstLower::GetConstantPoolIndexSymbol(), GetCPISymbol(), GetJTSetSymbol(), llvm::MSP430MCInstLower::GetJumpTableSymbol(), llvm::MBlazeMCInstLower::GetJumpTableSymbol(), GetSymbolFromOperand(), GetTempSymbol(), needsCFIMoves(), needsRelocationsForDwarfStringPool(), needsSEHMoves(), llvm::AArch64AsmPrinter::PrintDebugValueComment(), llvm::X86AsmPrinter::PrintDebugValueComment(), llvm::ARMAsmPrinter::PrintDebugValueComment(), llvm::MipsAsmPrinter::printOperand(), and PrintSpecial().
Name-mangler for global names.
Definition at line 86 of file AsmPrinter.h.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::CompileUnit::createGlobalVariableDIE(), doFinalization(), doInitialization(), EmitCamlGlobal(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), EmitFunctionHeader(), EmitGlobalVariable(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), EmitJumpTableInfo(), llvm::SystemZAsmPrinter::EmitMachineConstantPoolValue(), llvm::ARMAsmPrinter::EmitStartOfAsmFile(), EmitTTypeReference(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::DwarfCFIException::EndModule(), GetExternalSymbolSymbol(), llvm::MBlazeMCInstLower::GetGlobalAddressSymbol(), llvm::MSP430MCInstLower::GetGlobalAddressSymbol(), llvm::CompileUnit::getOrCreateTemplateValueParameterDIE(), GetSymbolFromOperand(), GetSymbolWithGlobalValueBase(), llvm::HexagonLowerToMC(), nvptx::LowerConstant(), lowerConstant(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::SystemZAsmPrinter::PrintAsmOperand(), llvm::HexagonAsmPrinter::printGlobalOperand(), llvm::HexagonAsmPrinter::printOperand(), llvm::ARMAsmPrinter::printOperand(), llvm::MipsAsmPrinter::printOperand(), llvm::AArch64AsmPrinter::printSymbolicAddress(), llvm::X86AsmPrinter::printSymbolOperand(), and SetupMachineFunction().
The current machine function.
Definition at line 79 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::addRegisterOffset(), llvm::ARMException::BeginFunction(), llvm::DwarfException::ComputeCallSiteTable(), llvm::CompileUnit::constructVariableDIE(), EmitConstantPool(), 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().
MMI - This is a pointer to the current MachineModuleInfo.
Definition at line 82 of file AsmPrinter.h.
Referenced by AsmPrinter(), doFinalization(), doInitialization(), EmitBasicBlockStart(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), EmitFunctionBody(), EmitFunctionHeader(), emitPrologLabel(), EmitTTypeReference(), GetBlockAddressSymbol(), getMachOMMI(), needsCFIMoves(), and llvm::X86AsmPrinter::printSymbolOperand().
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 70 of file AsmPrinter.h.
Referenced by doFinalization(), doInitialization(), EmitCamlGlobal(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), EmitFunctionBody(), EmitFunctionHeader(), 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(), 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().
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 76 of file AsmPrinter.h.
Referenced by llvm::DwarfCFIException::BeginFunction(), llvm::ARMException::BeginFunction(), llvm::Win64Exception::BeginFunction(), doFinalization(), doInitialization(), llvm::HexagonAsmPrinter::EmitAlignment(), EmitAlignment(), emitBasicBlockLoopComments(), EmitBasicBlockStart(), EmitCamlGlobal(), EmitCFAByte(), emitCFIInstruction(), EmitConstantPool(), emitDebugValueComment(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), EmitEncodingByte(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::ARMAsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::EmitEndOfAsmFile(), llvm::DwarfException::EmitExceptionTable(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), llvm::MipsAsmPrinter::EmitFunctionBodyEnd(), llvm::ARMAsmPrinter::EmitFunctionBodyEnd(), llvm::MipsAsmPrinter::EmitFunctionBodyStart(), llvm::MipsAsmPrinter::EmitFunctionEntryLabel(), llvm::ARMAsmPrinter::EmitFunctionEntryLabel(), EmitFunctionEntryLabel(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), emitImplicitDef(), llvm::SystemZAsmPrinter::EmitInstruction(), llvm::HexagonAsmPrinter::EmitInstruction(), llvm::AMDGPUAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::AArch64AsmPrinter::EmitInstruction(), llvm::MipsAsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::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(), EmitTTypeReference(), llvm::DwarfException::EmitTypeInfos(), EmitULEB128(), llvm::DIEInteger::EmitValue(), llvm::DIELabel::EmitValue(), llvm::ARMAsmPrinter::EmitXXStructor(), llvm::DwarfCFIException::EndFunction(), llvm::ARMException::EndFunction(), llvm::Win64Exception::EndFunction(), llvm::DwarfCFIException::EndModule(), getCurrentSection(), llvm::DwarfDebug::getOrCreateSourceID(), llvm::SystemZMCInstLower::lower(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::X86AsmPrinter::runOnMachineFunction(), and ~AsmPrinter().
Target machine description.
Definition at line 61 of file AsmPrinter.h.
Referenced by llvm::CompileUnit::addRegisterOffset(), llvm::CompileUnit::addRegisterOp(), llvm::CompileUnit::constructVariableDIE(), doFinalization(), doInitialization(), EmitAlignment(), EmitConstantPool(), emitDebugValueComment(), llvm::ARMAsmPrinter::EmitDwarfRegOp(), EmitDwarfRegOp(), llvm::X86AsmPrinter::EmitEndOfAsmFile(), llvm::SystemZAsmPrinter::EmitEndOfAsmFile(), llvm::AArch64AsmPrinter::EmitEndOfAsmFile(), llvm::MipsAsmPrinter::emitFrameDirective(), EmitFunctionBody(), EmitFunctionHeader(), EmitGlobalConstant(), emitGlobalConstantArray(), emitGlobalConstantDataSequential(), emitGlobalConstantFP(), emitGlobalConstantImpl(), emitGlobalConstantLargeInt(), emitGlobalConstantStruct(), emitGlobalConstantVector(), EmitGlobalVariable(), emitImplicitDef(), 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(), and llvm::MipsAsmPrinter::runOnMachineFunction().