LLVM API Documentation
#include <AsmPrinter.h>
Public Member Functions | |
| TargetLoweringObjectFile & | getObjFileLowering () const |
| getObjFileLowering - Return information about object file lowering. | |
| const MCSection * | getCurrentSection () const |
| getCurrentSection() - Return the current section we are emitting to. | |
| virtual | ~AsmPrinter () |
| bool | isVerbose () const |
| virtual const std::string & | getGlobalLinkName (const GlobalVariable *GV, std::string &LinkName) const |
| virtual void | EmitExternalGlobal (const GlobalVariable *GV) |
| std::string | getCurrentFunctionEHName (const MachineFunction *MF) const |
| void | PrintULEB128 (unsigned Value) const |
| LEB 128 number encoding. | |
| void | PrintSLEB128 (int Value) const |
| void | PrintHex (int Value) const |
| void | EOL () const |
| void | EOL (const std::string &Comment) const |
| void | EOL (const char *Comment) const |
| void | EmitULEB128Bytes (unsigned Value) const |
| void | EmitSLEB128Bytes (int Value) const |
| void | EmitInt8 (int Value) const |
| void | EmitInt16 (int Value) const |
| void | EmitInt32 (int Value) const |
| void | EmitInt64 (uint64_t Value) const |
| void | EmitString (const std::string &String) const |
| void | EmitString (const char *String, unsigned Size) const |
| void | EmitFile (unsigned Number, const std::string &Name) const |
| EmitFile - Emit a .file directive. | |
| void | EmitAlignment (unsigned NumBits, const GlobalValue *GV=0, unsigned ForcedAlignBits=0, bool UseFillExpr=true) const |
| void | printLabel (const MachineInstr *MI) const |
| void | printLabel (unsigned Id) const |
| void | printDeclare (const MachineInstr *MI) const |
| void | EmitComments (const MachineInstr &MI) const |
| EmitComments - Pretty-print comments for instructions. | |
| void | EmitComments (const MCInst &MI) const |
| EmitComments - Pretty-print comments for instructions. | |
| void | EmitComments (const MachineBasicBlock &MBB) const |
| EmitComments - Pretty-print comments for basic blocks. | |
| virtual void | printMCInst (const MCInst *MI) |
Public Attributes | |
| formatted_raw_ostream & | O |
| TargetMachine & | TM |
| const TargetAsmInfo * | TAI |
| const TargetRegisterInfo * | TRI |
| MCContext & | OutContext |
| MCStreamer & | OutStreamer |
| const MachineFunction * | MF |
| The current machine function. | |
| Mangler * | Mang |
| std::string | CurrentFnName |
| bool | VerboseAsm |
| bool | ExuberantAsm |
| const MachineInstr * | LastMI |
| Private state for PrintSpecial(). | |
| const Function * | LastFn |
| unsigned | Counter |
| DebugLocTuple | PrevDLT |
Protected Member Functions | |
| AsmPrinter (formatted_raw_ostream &o, TargetMachine &TM, const TargetAsmInfo *T, bool V) | |
| void | getAnalysisUsage (AnalysisUsage &AU) const |
| bool | doInitialization (Module &M) |
| bool | doFinalization (Module &M) |
| virtual void | PrintSpecial (const MachineInstr *MI, const char *Code) const |
| virtual bool | PrintAsmOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode) |
| virtual bool | PrintAsmMemoryOperand (const MachineInstr *MI, unsigned OpNo, unsigned AsmVariant, const char *ExtraCode) |
| virtual void | PrintGlobalVariable (const GlobalVariable *GV)=0 |
| void | SetupMachineFunction (MachineFunction &MF) |
| unsigned | getFunctionNumber () const |
| void | IncrementFunctionNumber () |
| void | EmitConstantPool (MachineConstantPool *MCP) |
| void | EmitJumpTableInfo (MachineJumpTableInfo *MJTI, MachineFunction &MF) |
| bool | EmitSpecialLLVMGlobal (const GlobalVariable *GV) |
| void | EmitZeros (uint64_t NumZeros, unsigned AddrSpace=0) const |
| virtual void | EmitString (const ConstantArray *CVA) const |
| void | EmitConstantValueOnly (const Constant *CV) |
| void | EmitGlobalConstant (const Constant *CV, unsigned AddrSpace=0) |
| EmitGlobalConstant - Print a general LLVM constant to the .s file. | |
| virtual void | EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV) |
| void | processDebugLoc (DebugLoc DL) |
| void | printInlineAsm (const MachineInstr *MI) const |
| virtual void | printImplicitDef (const MachineInstr *MI) const |
| virtual void | printBasicBlockLabel (const MachineBasicBlock *MBB, bool printAlign=false, bool printColon=false, bool printComment=true) const |
| virtual void | printPICJumpTableSetLabel (unsigned uid, const MachineBasicBlock *MBB) const |
| virtual void | printPICJumpTableSetLabel (unsigned uid, unsigned uid2, const MachineBasicBlock *MBB) const |
| virtual void | printPICJumpTableEntry (const MachineJumpTableInfo *MJTI, const MachineBasicBlock *MBB, unsigned uid) const |
| void | printDataDirective (const Type *type, unsigned AddrSpace=0) |
| void | printVisibility (const std::string &Name, unsigned Visibility) const |
| void | printOffset (int64_t Offset) const |
| printOffset - This is just convenient handler for printing offsets. | |
Protected Attributes | |
| MachineModuleInfo * | MMI |
| MMI - If available, this is a pointer to the current MachineModuleInfo. | |
| DwarfWriter * | DW |
| DW - If available, this is a pointer to the current dwarf writer. | |
Definition at line 58 of file AsmPrinter.h.
| AsmPrinter::AsmPrinter | ( | formatted_raw_ostream & | o, | |
| TargetMachine & | TM, | |||
| const TargetAsmInfo * | T, | |||
| bool | V | |||
| ) | [explicit, protected] |
Definition at line 52 of file AsmPrinter.cpp.
References AsmVerbose, llvm::cl::BOU_FALSE, llvm::cl::BOU_TRUE, llvm::cl::BOU_UNSET, DW, MMI, and VerboseAsm.
| AsmPrinter::~AsmPrinter | ( | ) | [virtual] |
| TargetLoweringObjectFile & AsmPrinter::getObjFileLowering | ( | ) | const |
getObjFileLowering - Return information about object file lowering.
Definition at line 79 of file AsmPrinter.cpp.
References llvm::TargetLowering::getObjFileLowering(), llvm::TargetMachine::getTargetLowering(), and TM.
Referenced by llvm::DwarfDebug::BeginModule(), llvm::X86ATTAsmPrinter::doFinalization(), doInitialization(), EmitConstantPool(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitJumpTableInfo(), EmitSpecialLLVMGlobal(), llvm::DwarfDebug::EndModule(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), and llvm::X86IntelAsmPrinter::runOnMachineFunction().
| const MCSection * AsmPrinter::getCurrentSection | ( | ) | const |
getCurrentSection() - Return the current section we are emitting to.
Definition at line 84 of file AsmPrinter.cpp.
References llvm::MCStreamer::getCurrentSection(), and OutStreamer.
Referenced by EmitAlignment(), and llvm::DwarfDebug::EndFunction().
| bool llvm::AsmPrinter::isVerbose | ( | ) | const [inline] |
isVerbose - Return true if assembly output should contain comments.
Definition at line 159 of file AsmPrinter.h.
References VerboseAsm.
Referenced by llvm::Dwarf::EmitFrameMoves().
| const std::string & AsmPrinter::getGlobalLinkName | ( | const GlobalVariable * | GV, | |
| std::string & | LinkName | |||
| ) | const [virtual] |
getGlobalLinkName - Returns the asm/link name of of the specified global variable. Should be overridden by each target asm printer to generate the appropriate value.
getGlobalLinkName - Returns the asm/link name of of the specified global variable. Should be overridden by each target asm printer to generate the appropriate value.
Definition at line 513 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getFunctionAddrPrefix(), llvm::TargetAsmInfo::getFunctionAddrSuffix(), llvm::TargetAsmInfo::getGlobalVarAddrPrefix(), llvm::TargetAsmInfo::getGlobalVarAddrSuffix(), llvm::Mangler::getMangledName(), Mang, and TAI.
Referenced by EmitExternalGlobal().
| void AsmPrinter::EmitExternalGlobal | ( | const GlobalVariable * | GV | ) | [virtual] |
EmitExternalGlobal - Emit the external reference to a global variable. Should be overridden if an indirect reference should be used.
EmitExternalGlobal - Emit the external reference to a global variable. Should be overridden if an indirect reference should be used.
Definition at line 530 of file AsmPrinter.cpp.
References getGlobalLinkName(), and O.
| std::string AsmPrinter::getCurrentFunctionEHName | ( | const MachineFunction * | MF | ) | const |
getCurrentFunctionEHName - Called to return the CurrentFnEHName.
Definition at line 214 of file AsmPrinter.cpp.
References llvm::MachineFunction::getFunction(), llvm::Mangler::getMangledName(), llvm::TargetAsmInfo::is_EHSymbolPrivate(), Mang, and TAI.
| void AsmPrinter::getAnalysisUsage | ( | AnalysisUsage & | AU | ) | const [protected, virtual] |
getAnalysisUsage - Record analysis usage.
Reimplemented from llvm::MachineFunctionPass.
Reimplemented in llvm::X86ATTAsmPrinter.
Definition at line 89 of file AsmPrinter.cpp.
References llvm::AnalysisUsage::addRequired(), llvm::MachineFunctionPass::getAnalysisUsage(), llvm::AnalysisUsage::setPreservesAll(), and VerboseAsm.
Referenced by llvm::X86ATTAsmPrinter::getAnalysisUsage().
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::FunctionPass.
Reimplemented in llvm::PIC16AsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 97 of file AsmPrinter.cpp.
References llvm::MachineModuleInfo::AnalyzeModule(), llvm::GCModuleInfo::begin(), llvm::DwarfWriter::BeginModule(), llvm::TargetAsmInfo::doesAllowQuotesInName(), llvm::TargetAsmInfo::doesSupportDebugInformation(), llvm::TargetAsmInfo::doesSupportExceptionHandling(), DW, E, llvm::GCModuleInfo::end(), llvm::TargetAsmInfo::getCommentString(), llvm::TargetAsmInfo::getGlobalPrefix(), llvm::TargetAsmInfo::getLinkerPrivateGlobalPrefix(), llvm::Module::getModuleIdentifier(), llvm::Module::getModuleInlineAsm(), getObjFileLowering(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::TargetAsmInfo::hasSingleParameterDotFile(), Mang, MI, MMI, O, OutContext, llvm::Mangler::setUseQuotes(), TAI, and TM.
Referenced by llvm::X86IntelAsmPrinter::doInitialization(), and llvm::PIC16AsmPrinter::doInitialization().
doFinalization - Shut down the asmprinter. If you override this in your pass, you must make sure to call it explicitly.
Reimplemented from llvm::FunctionPass.
Reimplemented in llvm::PIC16AsmPrinter, llvm::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 141 of file AsmPrinter.cpp.
References llvm::Module::alias_begin(), llvm::Module::alias_end(), llvm::GCModuleInfo::begin(), llvm::Module::begin(), llvm::TargetAsmInfo::doesSupportDebugInformation(), llvm::TargetAsmInfo::doesSupportExceptionHandling(), DW, E, llvm::GCModuleInfo::end(), llvm::Module::end(), llvm::DwarfWriter::EndModule(), llvm::MCStreamer::Finish(), llvm::Module::getFunction(), llvm::Mangler::getMangledName(), llvm::TargetAsmInfo::getNonexecutableStackDirective(), llvm::TargetAsmInfo::getSetDirective(), llvm::TargetAsmInfo::getWeakRefDirective(), llvm::Module::global_begin(), llvm::Module::global_end(), GV, llvm_unreachable, Mang, MI, MMI, Name, O, OutStreamer, PrintGlobalVariable(), printVisibility(), TAI, and llvm::Value::use_empty().
Referenced by llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86ATTAsmPrinter::doFinalization(), and llvm::PIC16AsmPrinter::doFinalization().
| void AsmPrinter::PrintSpecial | ( | const MachineInstr * | MI, | |
| const char * | Code | |||
| ) | const [protected, 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.
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 1306 of file AsmPrinter.cpp.
References Counter, llvm::TargetAsmInfo::getCommentString(), llvm::MachineFunction::getFunction(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), LastFn, LastMI, llvm::llvm_report_error(), O, llvm::raw_string_ostream::str(), TAI, and VerboseAsm.
Referenced by printInlineAsm().
| bool AsmPrinter::PrintAsmOperand | ( | const MachineInstr * | MI, | |
| unsigned | OpNo, | |||
| unsigned | AsmVariant, | |||
| const char * | ExtraCode | |||
| ) | [protected, 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 overried this to format as appropriate.
Reimplemented in llvm::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 1583 of file AsmPrinter.cpp.
Referenced by printInlineAsm().
| bool AsmPrinter::PrintAsmMemoryOperand | ( | const MachineInstr * | MI, | |
| unsigned | OpNo, | |||
| unsigned | AsmVariant, | |||
| const char * | ExtraCode | |||
| ) | [protected, 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::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 1589 of file AsmPrinter.cpp.
Referenced by printInlineAsm().
| virtual void llvm::AsmPrinter::PrintGlobalVariable | ( | const GlobalVariable * | GV | ) | [protected, pure virtual] |
PrintGlobalVariable - Emit the specified global variable and its initializer to the output stream.
Implemented in llvm::PIC16AsmPrinter, llvm::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Referenced by doFinalization().
| void AsmPrinter::SetupMachineFunction | ( | MachineFunction & | MF | ) | [protected] |
SetupMachineFunction - This should be called when a new MachineFunction is being processed from runOnMachineFunction.
Definition at line 220 of file AsmPrinter.cpp.
References CurrentFnName, llvm::MachineFunction::getFunction(), llvm::Mangler::getMangledName(), IncrementFunctionNumber(), Mang, and VerboseAsm.
Referenced by llvm::X86ATTAsmPrinter::runOnMachineFunction(), and llvm::X86IntelAsmPrinter::runOnMachineFunction().
| unsigned llvm::AsmPrinter::getFunctionNumber | ( | ) | const [inline, protected] |
getFunctionNumber - Return a unique ID for the current function.
Definition at line 222 of file AsmPrinter.h.
Referenced by EmitComments(), EmitConstantPool(), EmitJumpTableInfo(), llvm::X86ATTAsmPrinter::GetPICBaseSymbol(), printBasicBlockLabel(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::PrintPICBaseSymbol(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), printPICJumpTableEntry(), llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), printPICJumpTableSetLabel(), llvm::X86IntelAsmPrinter::printPICLabel(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
| void llvm::AsmPrinter::IncrementFunctionNumber | ( | ) | [inline, protected] |
IncrementFunctionNumber - Increase Function Number. AsmPrinters should not normally call this, as the counter is automatically bumped by SetupMachineFunction.
Definition at line 227 of file AsmPrinter.h.
Referenced by SetupMachineFunction().
| void AsmPrinter::EmitConstantPool | ( | MachineConstantPool * | MCP | ) | [protected] |
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.
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.
Definition at line 245 of file AsmPrinter.cpp.
References Align, Alignment, llvm::MachineConstantPoolEntry::ConstVal, CP, CPEs, CPI, EmitAlignment(), EmitGlobalConstant(), EmitMachineConstantPoolValue(), EmitZeros(), llvm::MachineConstantPoolEntry::getAlignment(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::MachineConstantPool::getConstants(), llvm::MachineFunction::getFunction(), getFunctionNumber(), llvm::SectionKind::getMergeableConst(), llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), getObjFileLowering(), llvm::GlobalValue::getParent(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::SectionKind::getReadOnlyWithRel(), llvm::SectionKind::getReadOnlyWithRelLocal(), llvm::MachineConstantPoolEntry::getRelocationInfo(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::TargetMachine::getTargetData(), llvm::MachineConstantPoolEntry::getType(), llvm::TargetData::getTypeAllocSize(), llvm::MachineConstantPoolEntry::isMachineConstantPoolEntry(), Kind, llvm_unreachable, llvm::Log2_32(), llvm::MachineConstantPoolEntry::MachineCPVal, MF, O, Offset, OutStreamer, llvm::formatted_raw_ostream::PadToColumn(), llvm::SmallVectorImpl< T >::push_back(), S, llvm::SmallVectorImpl< T >::size(), llvm::MCStreamer::SwitchSection(), TAI, TM, Ty, llvm::MachineConstantPoolEntry::Val, VerboseAsm, and llvm::WriteTypeSymbolic().
Referenced by llvm::X86IntelAsmPrinter::runOnMachineFunction(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
| void AsmPrinter::EmitJumpTableInfo | ( | MachineJumpTableInfo * | MJTI, | |
| MachineFunction & | MF | |||
| ) | [protected] |
EmitJumpTableInfo - Print assembly representations of the jump tables used by the current function to the current output stream.
EmitJumpTableInfo - Print assembly representations of the jump tables used by the current function to the current output stream.
Definition at line 331 of file AsmPrinter.cpp.
References EmitAlignment(), F, llvm::MachineJumpTableInfo::getAlignment(), llvm::MachineFunction::getFunction(), getFunctionNumber(), llvm::MachineJumpTableInfo::getJumpTables(), llvm::TargetAsmInfo::getJumpTableSpecialLabelPrefix(), getObjFileLowering(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::SectionKind::getReadOnly(), llvm::TargetMachine::getRelocationModel(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::TargetAsmInfo::getSetDirective(), llvm::TargetMachine::getTargetLowering(), llvm::SmallPtrSet< PtrType, SmallSize >::insert(), llvm::GlobalValue::isWeakForLinker(), JT, llvm::Log2_32(), Mang, O, OutStreamer, llvm::Reloc::PIC_, printPICJumpTableEntry(), printPICJumpTableSetLabel(), llvm::MCStreamer::SwitchSection(), TAI, TM, and llvm::TargetLowering::usesGlobalOffsetTable().
Referenced by llvm::X86IntelAsmPrinter::runOnMachineFunction(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
| bool AsmPrinter::EmitSpecialLLVMGlobal | ( | const GlobalVariable * | GV | ) | [protected] |
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.
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 436 of file AsmPrinter.cpp.
References Align, EmitAlignment(), llvm::GlobalVariable::getInitializer(), llvm::Value::getName(), getObjFileLowering(), llvm::GlobalValue::getSection(), llvm::TargetMachine::getTargetData(), llvm::TargetAsmInfo::getUsedDirective(), llvm::GlobalValue::hasAppendingLinkage(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalVariable::hasInitializer(), llvm::Log2_32(), OutStreamer, llvm::MCStreamer::SwitchSection(), TAI, TD, and TM.
Referenced by llvm::X86IntelAsmPrinter::PrintGlobalVariable(), and llvm::X86ATTAsmPrinter::PrintGlobalVariable().
| void AsmPrinter::PrintULEB128 | ( | unsigned | Value | ) | const |
LEB 128 number encoding.
PrintULEB128 - Print a series of hexidecimal values(separated by commas) representing an unsigned leb128 value.
PrintULEB128 - Print a series of hexidecimal values (separated by commas) representing an unsigned leb128 value.
Definition at line 542 of file AsmPrinter.cpp.
References O, and llvm::utohex_buffer().
Referenced by EmitULEB128Bytes().
| void AsmPrinter::PrintSLEB128 | ( | int | Value | ) | const |
PrintSLEB128 - Print a series of hexidecimal values(separated by commas) representing a signed leb128 value.
PrintSLEB128 - Print a series of hexidecimal values (separated by commas) representing a signed leb128 value.
Definition at line 555 of file AsmPrinter.cpp.
References O, and llvm::utohex_buffer().
Referenced by EmitSLEB128Bytes().
| void AsmPrinter::PrintHex | ( | int | Value | ) | const |
PrintHex - Print a value as a hexidecimal value.
Definition at line 576 of file AsmPrinter.cpp.
References O, and llvm::utohex_buffer().
Referenced by EmitInt16(), EmitInt32(), EmitInt64(), and EmitInt8().
| void AsmPrinter::EOL | ( | ) | const |
EOL - Print a newline character to asm stream. If a comment is present then it will be printed first. Comments should not contain '
'.
EOL - Print a newline character to asm stream. If a comment is present then it will be printed first. Comments should not contain '
'.
Definition at line 583 of file AsmPrinter.cpp.
References O.
Referenced by llvm::DwarfDebug::BeginModule(), llvm::DIEAbbrev::Emit(), llvm::Dwarf::EmitFrameMoves(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EOL | ( | const std::string & | Comment | ) | const |
Definition at line 587 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), O, llvm::formatted_raw_ostream::PadToColumn(), TAI, and VerboseAsm.
| void AsmPrinter::EOL | ( | const char * | Comment | ) | const |
Definition at line 597 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), O, llvm::formatted_raw_ostream::PadToColumn(), TAI, and VerboseAsm.
| void AsmPrinter::EmitULEB128Bytes | ( | unsigned | Value | ) | const |
EmitULEB128Bytes - Emit an assembler byte data directive to compose an unsigned leb128 value.
EmitULEB128Bytes - Emit an assembler byte data directive to compose an unsigned leb128 value.
Definition at line 609 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData8bitsDirective(), llvm::TargetAsmInfo::hasLEB128(), O, PrintULEB128(), and TAI.
Referenced by llvm::DIEAbbrev::Emit(), llvm::Dwarf::EmitFrameMoves(), llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitSLEB128Bytes | ( | int | Value | ) | const |
EmitSLEB128Bytes - print an assembler byte data directive to compose a signed leb128 value.
EmitSLEB128Bytes - print an assembler byte data directive to compose a signed leb128 value.
Definition at line 621 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData8bitsDirective(), llvm::TargetAsmInfo::hasLEB128(), O, PrintSLEB128(), and TAI.
Referenced by llvm::Dwarf::EmitFrameMoves(), and llvm::DIEInteger::EmitValue().
| void AsmPrinter::EmitInt8 | ( | int | Value | ) | const |
EmitInt8 - Emit a byte directive and value.
Definition at line 633 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData8bitsDirective(), O, PrintHex(), and TAI.
Referenced by llvm::Dwarf::EmitFrameMoves(), llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitInt16 | ( | int | Value | ) | const |
EmitInt16 - Emit a short directive and value.
Definition at line 640 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData16bitsDirective(), O, PrintHex(), and TAI.
Referenced by llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitInt32 | ( | int | Value | ) | const |
EmitInt32 - Emit a long directive and value.
Definition at line 647 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData32bitsDirective(), O, PrintHex(), and TAI.
Referenced by EmitInt64(), llvm::DIEEntry::EmitValue(), llvm::DIEInteger::EmitValue(), and llvm::DIEBlock::EmitValue().
| void AsmPrinter::EmitInt64 | ( | uint64_t | Value | ) | const |
EmitInt64 - Emit a long long directive and value.
Definition at line 654 of file AsmPrinter.cpp.
References EmitInt32(), llvm::TargetAsmInfo::getData64bitsDirective(), llvm::TargetMachine::getTargetData(), llvm::TargetData::isBigEndian(), O, PrintHex(), TAI, and TM.
Referenced by llvm::DIEInteger::EmitValue().
| void AsmPrinter::EmitString | ( | const std::string & | String | ) | const |
EmitString - Emit a string with quotes and a null terminator. Special characters are emitted properly.
(Eg. '\t')
EmitString - Emit a string with quotes and a null terminator. Special characters are emitted properly. (Eg. '')
Definition at line 704 of file AsmPrinter.cpp.
Referenced by llvm::DIEString::EmitValue().
| void AsmPrinter::EmitString | ( | const char * | String, | |
| unsigned | Size | |||
| ) | const |
Definition at line 708 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getAsciiDirective(), llvm::TargetAsmInfo::getAscizDirective(), O, printStringChar(), and TAI.
| void AsmPrinter::EmitFile | ( | unsigned | Number, | |
| const std::string & | Name | |||
| ) | const |
EmitFile - Emit a .file directive.
Definition at line 725 of file AsmPrinter.cpp.
References O, and printStringChar().
Referenced by llvm::DwarfDebug::BeginModule().
| void AsmPrinter::EmitAlignment | ( | unsigned | NumBits, | |
| const GlobalValue * | GV = 0, |
|||
| unsigned | ForcedAlignBits = 0, |
|||
| bool | UseFillExpr = true | |||
| ) | 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 unconditionally override the alignment request. However, if ForcedAlignBits is specified, this value has final say: the ultimate alignment will be the max of ForcedAlignBits and the alignment computed with NumBits and the global. If UseFillExpr is true, it also emits an optional second value FillValue which the assembler uses to fill gaps to match alignment for text sections if the has specified a non-zero fill value.
The algorithm is: Align = NumBits; if (GV && GV->hasalignment) Align = GV->getalignment(); Align = std::max(Align, ForcedAlignBits);
Definition at line 748 of file AsmPrinter.cpp.
References llvm::MCStreamer::EmitValueToAlignment(), llvm::GlobalValue::getAlignment(), getCurrentSection(), llvm::TargetAsmInfo::getTextAlignFillValue(), llvm::Log2_32(), OutStreamer, and TAI.
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), EmitConstantPool(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitJumpTableInfo(), EmitSpecialLLVMGlobal(), printBasicBlockLabel(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), and llvm::X86IntelAsmPrinter::runOnMachineFunction().
| void AsmPrinter::printLabel | ( | const MachineInstr * | MI | ) | const |
printLabel - This method prints a local label used by debug and exception handling tables.
printLabel - This method prints a local label used by debug and exception handling tables.
Definition at line 1562 of file AsmPrinter.cpp.
References llvm::MachineOperand::getImm(), and llvm::MachineInstr::getOperand().
Referenced by llvm::DwarfDebug::BeginFunction(), llvm::X86ATTAsmPrinter::printMachineInstruction(), and processDebugLoc().
| void AsmPrinter::printLabel | ( | unsigned | Id | ) | const |
Definition at line 1566 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getPrivateGlobalPrefix(), O, and TAI.
| void AsmPrinter::printDeclare | ( | const MachineInstr * | MI | ) | const |
printDeclare - This method prints a local variable declaration used by debug tables.
printDeclare - This method prints a local variable declaration used by debug tables. FIXME: It doesn't really print anything rather it inserts a DebugVariable entry into dwarf table.
Definition at line 1574 of file AsmPrinter.cpp.
References DW, FI, llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getIndex(), llvm::MachineInstr::getOperand(), and llvm::DwarfWriter::RecordVariable().
Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().
| void AsmPrinter::EmitComments | ( | const MachineInstr & | MI | ) | const |
EmitComments - Pretty-print comments for instructions.
Definition at line 1742 of file AsmPrinter.cpp.
References llvm::DebugLocTuple::Col, llvm::DebugLocTuple::CompileUnit, llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::MachineInstr::getDebugLoc(), llvm::MachineFunction::getDebugLocTuple(), llvm::GlobalVariable::getInitializer(), llvm::GlobalVariable::hasInitializer(), llvm::DebugLoc::isUnknown(), llvm::DebugLocTuple::Line, MF, Name, O, llvm::formatted_raw_ostream::PadToColumn(), TAI, and VerboseAsm.
Referenced by printBasicBlockLabel().
| void AsmPrinter::EmitComments | ( | const MCInst & | MI | ) | const |
EmitComments - Pretty-print comments for instructions.
Definition at line 1764 of file AsmPrinter.cpp.
References llvm::DebugLocTuple::Col, llvm::DebugLocTuple::CompileUnit, llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::MCInst::getDebugLoc(), llvm::MachineFunction::getDebugLocTuple(), llvm::GlobalVariable::getInitializer(), llvm::GlobalVariable::hasInitializer(), llvm::DebugLoc::isUnknown(), llvm::DebugLocTuple::Line, MF, Name, O, llvm::formatted_raw_ostream::PadToColumn(), TAI, and VerboseAsm.
| void AsmPrinter::EmitComments | ( | const MachineBasicBlock & | MBB | ) | const |
EmitComments - Pretty-print comments for basic blocks.
Definition at line 1828 of file AsmPrinter.cpp.
References CurLoop, llvm::LoopBase< BlockT, LoopT >::empty(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), getFunctionNumber(), llvm::LoopBase< BlockT, LoopT >::getHeader(), llvm::LoopBase< BlockT, LoopT >::getLoopDepth(), llvm::MachineLoopInfo::getLoopFor(), llvm::MachineBasicBlock::getNumber(), llvm::LoopBase< BlockT, LoopT >::getParentLoop(), Header, Indent, O, llvm::formatted_raw_ostream::PadToColumn(), PrintChildLoopComment(), TAI, and VerboseAsm.
| void AsmPrinter::printMCInst | ( | const MCInst * | MI | ) | [virtual] |
printMCInst - Print an MCInst for this target.
Note, this is only a temporary hack to allow the MCStreamer to print instructions, do not use this function outside of llvm-mc.
Reimplemented in llvm::X86ATTAsmPrinter.
Definition at line 1713 of file AsmPrinter.cpp.
References llvm_unreachable.
| void AsmPrinter::EmitZeros | ( | uint64_t | NumZeros, | |
| unsigned | AddrSpace = 0 | |||
| ) | const [protected] |
EmitZeros - Emit a block of zeros.
Definition at line 766 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData8bitsDirective(), llvm::TargetAsmInfo::getZeroDirective(), llvm::TargetAsmInfo::getZeroDirectiveSuffix(), O, and TAI.
Referenced by EmitConstantPool(), and EmitGlobalConstant().
| void AsmPrinter::EmitString | ( | const ConstantArray * | CVA | ) | const [protected, virtual] |
EmitString - Emit a zero-byte-terminated string constant.
Reimplemented in llvm::X86IntelAsmPrinter.
Definition at line 930 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getAsciiDirective(), llvm::TargetAsmInfo::getAscizDirective(), llvm::User::getNumOperands(), llvm::Constant::getOperand(), O, printAsCString(), and TAI.
| void AsmPrinter::EmitConstantValueOnly | ( | const Constant * | CV | ) | [protected] |
EmitConstantValueOnly - Print out the specified constant, without a storage class. Only constants of first-class type are allowed here.
Definition at line 782 of file AsmPrinter.cpp.
References llvm::APIntOps::And(), BitCast, FPToUI, FPTrunc, llvm::APInt::getAllOnesValue(), llvm::Value::getContext(), llvm::TargetAsmInfo::getFunctionAddrPrefix(), llvm::TargetAsmInfo::getFunctionAddrSuffix(), llvm::TargetAsmInfo::getGlobalVarAddrPrefix(), llvm::TargetAsmInfo::getGlobalVarAddrSuffix(), llvm::TargetData::getIndexedOffset(), llvm::ConstantExpr::getIntegerCast(), llvm::TargetData::getIntPtrType(), llvm::Mangler::getMangledName(), llvm::TargetData::getPointerSizeInBits(), llvm::TargetMachine::getTargetData(), llvm::Value::getType(), llvm::TargetData::getTypeAllocSize(), llvm::TargetData::getTypeAllocSizeInBits(), llvm::Constant::isNullValue(), llvm_unreachable, Mang, O, Offset, Op, llvm::APIntOps::Or(), PtrToInt, S, llvm::Attribute::SExt, llvm::SmallString< InternalLen >::str(), TAI, TD, TM, llvm::APInt::toStringUnsigned(), Ty, UIToFP, llvm::APIntOps::Xor(), and ZExt.
Referenced by EmitGlobalConstant().
EmitGlobalConstant - Print a general LLVM constant to the .s file.
Definition at line 1254 of file AsmPrinter.cpp.
References EmitConstantValueOnly(), EmitZeros(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::TargetMachine::getTargetData(), llvm::Value::getType(), llvm::TargetData::getTypeAllocSize(), llvm::ConstantInt::getValue(), llvm::Constant::isNullValue(), O, llvm::formatted_raw_ostream::PadToColumn(), printDataDirective(), S, llvm::SmallString< InternalLen >::str(), TAI, TM, llvm::APInt::toStringUnsigned(), type, and VerboseAsm.
Referenced by EmitConstantPool(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), and llvm::X86ATTAsmPrinter::PrintGlobalVariable().
| void AsmPrinter::EmitMachineConstantPoolValue | ( | MachineConstantPoolValue * | MCPV | ) | [protected, virtual] |
Definition at line 1295 of file AsmPrinter.cpp.
References llvm_unreachable.
Referenced by EmitConstantPool().
| void AsmPrinter::processDebugLoc | ( | DebugLoc | DL | ) | [protected] |
processDebugLoc - Processes the debug information of each machine instruction's DebugLoc.
processDebugLoc - Processes the debug information of each machine instruction's DebugLoc.
Definition at line 1335 of file AsmPrinter.cpp.
References llvm::DebugLocTuple::Col, llvm::DebugLocTuple::CompileUnit, llvm::TargetAsmInfo::doesSupportDebugInformation(), DW, llvm::MachineFunction::getDebugLocTuple(), llvm::DebugLoc::isUnknown(), llvm::DebugLocTuple::Line, MF, PrevDLT, printLabel(), llvm::DwarfWriter::RecordSourceLine(), llvm::DwarfWriter::ShouldEmitDwarfDebug(), and TAI.
| void AsmPrinter::printInlineAsm | ( | const MachineInstr * | MI | ) | const [protected] |
printInlineAsm - This method formats and prints the specified machine instruction that is an inline asm.
printInlineAsm - This method formats and prints the specified machine instruction that is an inline asm.
Definition at line 1354 of file AsmPrinter.cpp.
References Error(), llvm::TargetAsmInfo::getAssemblerDialect(), llvm::TargetAsmInfo::getCommentString(), llvm::MachineOperand::getImm(), llvm::TargetAsmInfo::getInlineAsmEnd(), llvm::TargetAsmInfo::getInlineAsmStart(), llvm::MachineOperand::getMBB(), llvm::InlineAsm::getNumOperandRegisters(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getSymbolName(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), llvm::MachineOperand::isSymbol(), llvm::llvm_report_error(), O, llvm::MachineInstr::print(), PrintAsmMemoryOperand(), PrintAsmOperand(), printBasicBlockLabel(), PrintSpecial(), llvm::raw_string_ostream::str(), TAI, Val, and llvm::raw_ostream::write().
Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().
| void AsmPrinter::printImplicitDef | ( | const MachineInstr * | MI | ) | const [protected, virtual] |
printImplicitDef - This method prints the specified machine instruction that is an implicit def.
printImplicitDef - This method prints the specified machine instruction that is an implicit def.
Definition at line 1552 of file AsmPrinter.cpp.
References llvm::TargetRegisterInfo::getAsmName(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), O, llvm::formatted_raw_ostream::PadToColumn(), TAI, TRI, and VerboseAsm.
Referenced by llvm::X86ATTAsmPrinter::printMachineInstruction().
| void AsmPrinter::printBasicBlockLabel | ( | const MachineBasicBlock * | MBB, | |
| bool | printAlign = false, |
|||
| bool | printColon = false, |
|||
| bool | printComment = true | |||
| ) | const [protected, virtual] |
printBasicBlockLabel - This method prints the label for the specified MachineBasicBlock
printBasicBlockLabel - This method prints the label for the specified MachineBasicBlock
Definition at line 1598 of file AsmPrinter.cpp.
References Align, BB, EmitAlignment(), EmitComments(), llvm::MachineBasicBlock::getAlignment(), llvm::MachineBasicBlock::getBasicBlock(), llvm::TargetAsmInfo::getCommentColumn(), llvm::TargetAsmInfo::getCommentString(), getFunctionNumber(), llvm::MachineBasicBlock::getNumber(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::Log2_32(), O, llvm::formatted_raw_ostream::PadToColumn(), TAI, and llvm::WriteAsOperand().
Referenced by llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), printInlineAsm(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), printPICJumpTableEntry(), llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), printPICJumpTableSetLabel(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
| void AsmPrinter::printPICJumpTableSetLabel | ( | unsigned | uid, | |
| const MachineBasicBlock * | MBB | |||
| ) | const [protected, virtual] |
printPICJumpTableSetLabel - This method prints a set label for the specified MachineBasicBlock for a jumptable entry.
printPICJumpTableSetLabel - This method prints a set label for the specified MachineBasicBlock for a jumptable entry.
Reimplemented in llvm::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 1627 of file AsmPrinter.cpp.
References getFunctionNumber(), llvm::MachineBasicBlock::getNumber(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::TargetAsmInfo::getSetDirective(), O, printBasicBlockLabel(), and TAI.
Referenced by EmitJumpTableInfo(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), and llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel().
| void AsmPrinter::printPICJumpTableSetLabel | ( | unsigned | uid, | |
| unsigned | uid2, | |||
| const MachineBasicBlock * | MBB | |||
| ) | const [protected, virtual] |
Reimplemented in llvm::X86ATTAsmPrinter, and llvm::X86IntelAsmPrinter.
Definition at line 1639 of file AsmPrinter.cpp.
References getFunctionNumber(), llvm::MachineBasicBlock::getNumber(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::TargetAsmInfo::getSetDirective(), O, printBasicBlockLabel(), and TAI.
| void AsmPrinter::printPICJumpTableEntry | ( | const MachineJumpTableInfo * | MJTI, | |
| const MachineBasicBlock * | MBB, | |||
| unsigned | uid | |||
| ) | const [protected, virtual] |
Reimplemented in llvm::X86ATTAsmPrinter.
Definition at line 396 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getData32bitsDirective(), llvm::TargetAsmInfo::getData64bitsDirective(), llvm::MachineJumpTableInfo::getEntrySize(), getFunctionNumber(), llvm::TargetAsmInfo::getJumpTableDirective(), llvm::MachineBasicBlock::getNumber(), llvm::TargetAsmInfo::getPrivateGlobalPrefix(), llvm::TargetMachine::getRelocationModel(), llvm::TargetAsmInfo::getSetDirective(), O, llvm::Reloc::PIC_, printBasicBlockLabel(), TAI, and TM.
Referenced by EmitJumpTableInfo().
printDataDirective - This method prints the asm directive for the specified type.
printDataDirective - This method prints the asm directive for the specified type.
Definition at line 1654 of file AsmPrinter.cpp.
References llvm::Type::DoubleTyID, llvm::Type::FloatTyID, llvm::Type::FP128TyID, llvm::TargetAsmInfo::getData16bitsDirective(), llvm::TargetAsmInfo::getData32bitsDirective(), llvm::TargetAsmInfo::getData64bitsDirective(), llvm::TargetAsmInfo::getData8bitsDirective(), llvm::TargetData::getPointerSize(), llvm::TargetMachine::getTargetData(), llvm::Type::getTypeID(), llvm::Type::IntegerTyID, llvm_unreachable, O, llvm::Type::PointerTyID, llvm::Type::PPC_FP128TyID, TAI, TM, and llvm::Type::X86_FP80TyID.
Referenced by EmitGlobalConstant().
| void AsmPrinter::printVisibility | ( | const std::string & | Name, | |
| unsigned | Visibility | |||
| ) | const [protected] |
printVisibility - This prints visibility information about symbol, if this is suported by the target.
Definition at line 1695 of file AsmPrinter.cpp.
References llvm::TargetAsmInfo::getHiddenDirective(), llvm::TargetAsmInfo::getProtectedDirective(), llvm::GlobalValue::HiddenVisibility, O, llvm::GlobalValue::ProtectedVisibility, and TAI.
Referenced by doFinalization(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), and llvm::X86ATTAsmPrinter::PrintGlobalVariable().
| void AsmPrinter::printOffset | ( | int64_t | Offset | ) | const [protected] |
printOffset - This is just convenient handler for printing offsets.
Definition at line 1706 of file AsmPrinter.cpp.
References O.
Referenced by llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printSymbolOperand().
MachineModuleInfo* llvm::AsmPrinter::MMI [protected] |
MMI - If available, this is a pointer to the current MachineModuleInfo.
Definition at line 80 of file AsmPrinter.h.
Referenced by AsmPrinter(), llvm::X86ATTAsmPrinter::doFinalization(), doFinalization(), and doInitialization().
DwarfWriter* llvm::AsmPrinter::DW [protected] |
DW - If available, this is a pointer to the current dwarf writer.
Definition at line 83 of file AsmPrinter.h.
Referenced by AsmPrinter(), doFinalization(), doInitialization(), printDeclare(), processDebugLoc(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
Output stream on which we're printing assembly code.
Definition at line 88 of file AsmPrinter.h.
Referenced by llvm::X86IntelAsmPrinter::doFinalization(), llvm::X86ATTAsmPrinter::doFinalization(), llvm::PIC16AsmPrinter::doFinalization(), doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), llvm::PIC16AsmPrinter::doInitialization(), doInitialization(), EmitComments(), EmitConstantPool(), EmitConstantValueOnly(), EmitExternalGlobal(), EmitFile(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitGlobalConstant(), EmitInt16(), EmitInt32(), EmitInt64(), EmitInt8(), EmitJumpTableInfo(), EmitSLEB128Bytes(), llvm::X86IntelAsmPrinter::EmitString(), EmitString(), EmitULEB128Bytes(), EmitZeros(), EOL(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::printAsmMRegister(), llvm::X86ATTAsmPrinter::printAsmMRegister(), llvm::X86ATTAsmPrinter::PrintAsmOperand(), printBasicBlockLabel(), printDataDirective(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), PrintHex(), printImplicitDef(), printInlineAsm(), printLabel(), llvm::X86IntelAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printLeaMemReference(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::printMemReference(), llvm::X86ATTAsmPrinter::printMemReference(), printOffset(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printOperand(), llvm::X86ATTAsmPrinter::PrintPICBaseSymbol(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), printPICJumpTableEntry(), llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), printPICJumpTableSetLabel(), llvm::X86IntelAsmPrinter::printPICLabel(), llvm::X86ATTAsmPrinter::printPICLabel(), PrintSLEB128(), PrintSpecial(), llvm::X86IntelAsmPrinter::printSSECC(), llvm::X86ATTAsmPrinter::printSSECC(), llvm::X86ATTAsmPrinter::printSymbolOperand(), PrintULEB128(), printVisibility(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
Target machine description.
Definition at line 92 of file AsmPrinter.h.
Referenced by llvm::X86ATTAsmPrinter::DecorateCygMingName(), llvm::X86IntelAsmPrinter::decorateName(), llvm::PIC16AsmPrinter::doInitialization(), doInitialization(), EmitConstantPool(), EmitConstantValueOnly(), llvm::Dwarf::EmitFrameMoves(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitGlobalConstant(), EmitInt64(), EmitJumpTableInfo(), EmitSpecialLLVMGlobal(), getObjFileLowering(), printDataDirective(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), printPICJumpTableEntry(), and llvm::X86IntelAsmPrinter::runOnMachineFunction().
Target Asm Printer information.
Definition at line 99 of file AsmPrinter.h.
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), doFinalization(), doInitialization(), EmitAlignment(), EmitComments(), EmitConstantPool(), EmitConstantValueOnly(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitGlobalConstant(), EmitInt16(), EmitInt32(), EmitInt64(), EmitInt8(), EmitJumpTableInfo(), EmitSLEB128Bytes(), EmitSpecialLLVMGlobal(), EmitString(), EmitULEB128Bytes(), EmitZeros(), EOL(), getCurrentFunctionEHName(), getGlobalLinkName(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86ATTAsmPrinter::print_pcrel_imm(), printBasicBlockLabel(), printDataDirective(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), printImplicitDef(), printInlineAsm(), printLabel(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printPICJumpTableEntry(), printPICJumpTableEntry(), printPICJumpTableSetLabel(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), llvm::X86IntelAsmPrinter::printPICJumpTableSetLabel(), PrintSpecial(), llvm::X86ATTAsmPrinter::printSymbolOperand(), printVisibility(), processDebugLoc(), and llvm::X86ATTAsmPrinter::runOnMachineFunction().
Target Register Information.
Definition at line 103 of file AsmPrinter.h.
Referenced by llvm::X86IntelAsmPrinter::printAsmMRegister(), llvm::X86ATTAsmPrinter::printAsmMRegister(), printImplicitDef(), llvm::X86IntelAsmPrinter::printOp(), and llvm::X86ATTAsmPrinter::printOperand().
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 108 of file AsmPrinter.h.
Referenced by doInitialization(), llvm::X86ATTAsmPrinter::GetPICBaseSymbol(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), and ~AsmPrinter().
OutStreamer - This is the MCStreamer object for the file we are generating. This contains the transient state for the current translation unit that we are generating (such as the current section etc).
Definition at line 114 of file AsmPrinter.h.
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), doFinalization(), EmitAlignment(), EmitConstantPool(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitJumpTableInfo(), EmitSpecialLLVMGlobal(), llvm::DwarfDebug::EndModule(), getCurrentSection(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::printMachineInstruction(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), and ~AsmPrinter().
The current machine function.
Definition at line 117 of file AsmPrinter.h.
Referenced by EmitComments(), EmitConstantPool(), and processDebugLoc().
Name-mangler for global names.
Definition at line 121 of file AsmPrinter.h.
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), doFinalization(), llvm::X86IntelAsmPrinter::doInitialization(), llvm::PIC16AsmPrinter::doInitialization(), doInitialization(), EmitConstantValueOnly(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitJumpTableInfo(), getCurrentFunctionEHName(), getGlobalLinkName(), llvm::X86ATTAsmPrinter::LowerExternalSymbolOperand(), llvm::X86ATTAsmPrinter::LowerGlobalAddressOperand(), llvm::X86IntelAsmPrinter::print_pcrel_imm(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), llvm::X86IntelAsmPrinter::printOp(), llvm::X86ATTAsmPrinter::printSymbolOperand(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), llvm::X86ATTAsmPrinter::runOnMachineFunction(), and SetupMachineFunction().
| std::string llvm::AsmPrinter::CurrentFnName |
Cache of mangled name for current function. This is recalculated at the beginning of each call to runOnMachineFunction().
Definition at line 126 of file AsmPrinter.h.
Referenced by llvm::X86ATTAsmPrinter::emitFunctionHeader(), llvm::X86ATTAsmPrinter::runOnMachineFunction(), llvm::X86IntelAsmPrinter::runOnMachineFunction(), and SetupMachineFunction().
VerboseAsm - Emit comments in assembly output if this is true.
Definition at line 134 of file AsmPrinter.h.
Referenced by AsmPrinter(), EmitComments(), EmitConstantPool(), llvm::X86ATTAsmPrinter::emitFunctionHeader(), EmitGlobalConstant(), EOL(), getAnalysisUsage(), isVerbose(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), printImplicitDef(), PrintSpecial(), llvm::X86ATTAsmPrinter::runOnMachineFunction(), and SetupMachineFunction().
ExuberantAsm - Emit many more comments in assembly output if this is true.
Definition at line 139 of file AsmPrinter.h.
const MachineInstr* llvm::AsmPrinter::LastMI [mutable] |
Private state for PrintSpecial().
Definition at line 143 of file AsmPrinter.h.
Referenced by PrintSpecial().
const Function* llvm::AsmPrinter::LastFn [mutable] |
unsigned llvm::AsmPrinter::Counter [mutable] |
DebugLocTuple llvm::AsmPrinter::PrevDLT [mutable] |