LLVM  6.0.0svn
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
llvm::NVPTXAsmPrinter Class Reference

#include "Target/NVPTX/NVPTXAsmPrinter.h"

Inheritance diagram for llvm::NVPTXAsmPrinter:
Inheritance graph
Collaboration diagram for llvm::NVPTXAsmPrinter:
Collaboration graph

Public Member Functions

 NVPTXAsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
 ~NVPTXAsmPrinter () override
bool runOnMachineFunction (MachineFunction &F) override
 Emit the specified function out to the OutStreamer. More...
void getAnalysisUsage (AnalysisUsage &AU) const override
 Record analysis usage. More...
bool ignoreLoc (const MachineInstr &)
std::string getVirtualRegisterName (unsigned) const
void emitLineNumberAsDotLoc (const MachineInstr &)
- Public Member Functions inherited from llvm::AsmPrinter
 ~AsmPrinter () override
DwarfDebuggetDwarfDebug ()
DwarfDebuggetDwarfDebug () const
uint16_t getDwarfVersion () const
void setDwarfVersion (uint16_t Version)
bool isPositionIndependent () const
bool isVerbose () const
 Return true if assembly output should contain comments. More...
unsigned getFunctionNumber () const
 Return a unique ID for the current function. More...
MCSymbolgetFunctionBegin () const
MCSymbolgetFunctionEnd () const
MCSymbolgetCurExceptionSym ()
const TargetLoweringObjectFilegetObjFileLowering () const
 Return information about object file lowering. More...
const DataLayoutgetDataLayout () const
 Return information about data layout. More...
unsigned getPointerSize () const
 Return the pointer size from the TargetMachine. More...
const MCSubtargetInfogetSubtargetInfo () const
 Return information about subtarget. More...
void EmitToStreamer (MCStreamer &S, const MCInst &Inst)
const MCSectiongetCurrentSection () const
 Return the current section we are emitting to. More...
void getNameWithPrefix (SmallVectorImpl< char > &Name, const GlobalValue *GV) const
MCSymbolgetSymbol (const GlobalValue *GV) const
void recordSled (MCSymbol *Sled, const MachineInstr &MI, SledKind Kind, uint8_t Version=0)
void emitXRayTable ()
 Emit a table with all XRay instrumentation points. More...
void SetupMachineFunction (MachineFunction &MF)
 This should be called when a new MachineFunction is being processed from runOnMachineFunction. More...
void EmitFunctionBody ()
 This method emits the body and trailer for a function. More...
void emitCFIInstruction (const MachineInstr &MI)
void emitFrameAlloc (const MachineInstr &MI)
CFIMoveType needsCFIMoves () const
bool needsOnlyDebugCFIMoves () const
 Returns false if needsCFIMoves() == CFI_M_EH for any function in the module. More...
bool needsSEHMoves ()
virtual void EmitConstantPool ()
 Print to the current output stream assembly representations of the constants in the constant pool MCP. More...
virtual void EmitJumpTableInfo ()
 Print assembly representations of the jump tables used by the current function to the current output stream. More...
virtual void EmitGlobalVariable (const GlobalVariable *GV)
 Emit the specified global variable to the .s file. More...
bool EmitSpecialLLVMGlobal (const GlobalVariable *GV)
 Check to see if the specified global is a special global used by LLVM. More...
void EmitAlignment (unsigned NumBits, const GlobalObject *GO=nullptr) const
 Emit an alignment directive to the specified power of two boundary. More...
virtual const MCExprlowerConstant (const Constant *CV)
 Lower the specified LLVM Constant to an MCExpr. More...
void EmitGlobalConstant (const DataLayout &DL, const Constant *CV)
 Print a general LLVM constant to the .s file. More...
void computeGlobalGOTEquivs (Module &M)
 Unnamed constant global variables solely contaning a pointer to another globals variable act like a global variable "proxy", or GOT equivalents, i.e., it's only used to hold the address of the latter. More...
void emitGlobalGOTEquivs ()
 Constant expressions using GOT equivalent globals may not be eligible for PC relative GOT entry conversion, in such cases we need to emit the proxies we previously omitted in EmitGlobalVariable. More...
virtual void EmitStartOfAsmFile (Module &)
 This virtual method can be overridden by targets that want to emit something at the start of their file. More...
virtual void EmitEndOfAsmFile (Module &)
 This virtual method can be overridden by targets that want to emit something at the end of their file. More...
virtual void EmitBasicBlockEnd (const MachineBasicBlock &MBB)
 Targets can override this to emit stuff at the end of a basic block. More...
virtual MCSymbolGetCPISymbol (unsigned CPID) const
 Return the symbol for the specified constant pool entry. More...
virtual void EmitMachineConstantPoolValue (MachineConstantPoolValue *MCPV)
virtual void EmitXXStructor (const DataLayout &DL, const Constant *CV)
 Targets can override this to change how global constants that are part of a C++ static/global constructor list are emitted. More...
virtual bool isBlockOnlyReachableByFallthrough (const MachineBasicBlock *MBB) const
 Return true if the basic block has exactly one predecessor and the control transfer mechanism between the predecessor and this block is a fall-through. More...
MCSymbolcreateTempSymbol (const Twine &Name) const
MCSymbolgetSymbolWithGlobalValueBase (const GlobalValue *GV, StringRef Suffix) const
 Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix. More...
MCSymbolGetExternalSymbolSymbol (StringRef Sym) const
 Return the MCSymbol for the specified ExternalSymbol. More...
MCSymbolGetJTISymbol (unsigned JTID, bool isLinkerPrivate=false) const
 Return the symbol for the specified jump table entry. More...
MCSymbolGetJTSetSymbol (unsigned UID, unsigned MBBID) const
 Return the symbol for the specified jump table .set FIXME: privatize to AsmPrinter. More...
MCSymbolGetBlockAddressSymbol (const BlockAddress *BA) const
 Return the MCSymbol used to satisfy BlockAddress uses of the specified basic block. More...
MCSymbolGetBlockAddressSymbol (const BasicBlock *BB) const
void printOffset (int64_t Offset, raw_ostream &OS) const
 This is just convenient handler for printing offsets. More...
void EmitInt8 (int Value) const
 Emit a byte directive and value. More...
void EmitInt16 (int Value) const
 Emit a short directive and value. More...
void EmitInt32 (int Value) const
 Emit a long directive and value. More...
void EmitLabelDifference (const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) const
 Emit something like ".long Hi-Lo" where the size in bytes of the directive is specified by Size and Hi/Lo specify the labels. More...
void EmitLabelPlusOffset (const MCSymbol *Label, uint64_t Offset, unsigned Size, bool IsSectionRelative=false) const
 Emit something like ".long Label+Offset" where the size in bytes of the directive is specified by Size and Label specifies the label. More...
void EmitLabelReference (const MCSymbol *Label, unsigned Size, bool IsSectionRelative=false) const
 Emit something like ".long Label" where the size in bytes of the directive is specified by Size and Label specifies the label. More...
void EmitSLEB128 (int64_t Value, const char *Desc=nullptr) const
 Emit the specified signed leb128 value. More...
void EmitULEB128 (uint64_t Value, const char *Desc=nullptr) const
 Emit the specified unsigned leb128 value. More...
void EmitPaddedULEB128 (uint64_t Value, unsigned PadTo, const char *Desc=nullptr) const
 Emit the specified unsigned leb128 value padded to a specific number bytes. More...
void EmitEncodingByte (unsigned Val, const char *Desc=nullptr) const
 Emit a .byte 42 directive that corresponds to an encoding. More...
unsigned GetSizeOfEncodedValue (unsigned Encoding) const
 Return the size of the encoding in bytes. More...
void EmitTTypeReference (const GlobalValue *GV, unsigned Encoding) const
 Emit reference to a ttype global with a specified encoding. More...
void emitDwarfSymbolReference (const MCSymbol *Label, bool ForceOffset=false) const
 Emit a reference to a symbol for use in dwarf. More...
void emitDwarfStringOffset (DwarfStringPoolEntryRef S) const
 Emit the 4-byte offset of a string from the start of its section. More...
virtual unsigned getISAEncoding ()
 Get the value for DW_AT_APPLE_isa. Zero if no isa encoding specified. More...
virtual void EmitDebugThreadLocal (const MCExpr *Value, unsigned Size) const
 Emit the directive and value for debug thread local expression. More...
void emitCFIInstruction (const MCCFIInstruction &Inst) const
 Emit frame instruction to describe the layout of the frame. More...
template<typename T >
void emitDwarfAbbrevs (const T &Abbrevs) const
 Emit Dwarf abbreviation table. More...
void emitDwarfAbbrev (const DIEAbbrev &Abbrev) const
void emitDwarfDIE (const DIE &Die) const
 Recursively emit Dwarf DIE tree. More...
virtual void PrintSpecial (const MachineInstr *MI, raw_ostream &OS, const char *Code) const
 Print information related to the specified machine instr that is independent of the operand, and may be independent of the instr itself. More...
virtual void emitInlineAsmStart () const
 Let the target do anything it needs to do before emitting inlineasm. More...
virtual void emitInlineAsmEnd (const MCSubtargetInfo &StartInfo, const MCSubtargetInfo *EndInfo) const
 Let the target do anything it needs to do after emitting inlineasm. More...
- Public Member Functions inherited from llvm::FunctionPass
 FunctionPass (char &pid)
PasscreatePrinterPass (raw_ostream &OS, const std::string &Banner) const override
 createPrinterPass - Get a function printer pass. More...
void assignPassManager (PMStack &PMS, PassManagerType T) override
 Find appropriate Function Pass Manager or Call Graph Pass Manager in the PM Stack and add self into that manager. More...
PassManagerType getPotentialPassManagerType () const override
 Return what kind of Pass Manager can manage this pass. More...
- Public Member Functions inherited from llvm::Pass
 Pass (PassKind K, char &pid)
 Pass (const Pass &)=delete
Passoperator= (const Pass &)=delete
virtual ~Pass ()
PassKind getPassKind () const
AnalysisID getPassID () const
 getPassID - Return the PassID number that corresponds to this pass. More...
virtual void print (raw_ostream &OS, const Module *M) const
 print - Print out the internal state of the pass. More...
void dump () const
virtual void preparePassManager (PMStack &)
 Check if available pass managers are suitable for this pass or not. More...
void setResolver (AnalysisResolver *AR)
AnalysisResolvergetResolver () const
virtual void releaseMemory ()
 releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memory when it is no longer needed. More...
virtual void * getAdjustedAnalysisPointer (AnalysisID ID)
 getAdjustedAnalysisPointer - This method is used when a pass implements an analysis interface through multiple inheritance. More...
virtual ImmutablePassgetAsImmutablePass ()
virtual PMDataManagergetAsPMDataManager ()
virtual void verifyAnalysis () const
 verifyAnalysis() - This member can be implemented by a analysis pass to check state of analysis information. More...
virtual void dumpPassStructure (unsigned Offset=0)
template<typename AnalysisType >
AnalysisType * getAnalysisIfAvailable () const
 getAnalysisIfAvailable<AnalysisType>() - Subclasses use this function to get analysis information that might be around, for example to update it. More...
bool mustPreserveAnalysisID (char &AID) const
 mustPreserveAnalysisID - This method serves the same function as getAnalysisIfAvailable, but works if you just have an AnalysisID. More...
template<typename AnalysisType >
AnalysisType & getAnalysis () const
 getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More...
template<typename AnalysisType >
AnalysisType & getAnalysis (Function &F)
 getAnalysis<AnalysisType>() - This function is used by subclasses to get to the analysis information that they claim to use by overriding the getAnalysisUsage function. More...
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI) const
template<typename AnalysisType >
AnalysisType & getAnalysisID (AnalysisID PI, Function &F)

Public Attributes

DebugLoc prevDebugLoc
- Public Attributes inherited from llvm::AsmPrinter
 Target machine description. More...
const MCAsmInfoMAI
 Target Asm Printer information. More...
 This is the context for the output file that we are streaming. More...
std::unique_ptr< MCStreamerOutStreamer
 This is the MCStreamer object for the file we are generating. More...
const MachineFunctionMF = nullptr
 The current machine function. More...
MachineModuleInfoMMI = nullptr
 This is a pointer to the current MachineModuleInfo. More...
 Optimization remark emitter. More...
MCSymbolCurrentFnSym = nullptr
 The symbol for the current function. More...
MCSymbolCurrentFnSymForSize = nullptr
 The symbol used to represent the start of the current function for the purpose of calculating its size (e.g. More...
MapVector< const MCSymbol *, GOTEquivUsePairGlobalGOTEquivs
bool EnablePrintSchedInfo = false
 Enable print [latency:throughput] in output. More...
SmallVector< XRayFunctionEntry, 4 > Sleds
unsigned XRayFnUniqueID = 0

Protected Member Functions

bool doInitialization (Module &M) override
 Set up the AsmPrinter when we are working on a new module. More...
bool doFinalization (Module &M) override
 Shut down the asmprinter. More...
- Protected Member Functions inherited from llvm::AsmPrinter
 AsmPrinter (TargetMachine &TM, std::unique_ptr< MCStreamer > Streamer)
- Protected Member Functions inherited from llvm::MachineFunctionPass
 MachineFunctionPass (char &ID)
virtual MachineFunctionProperties getRequiredProperties () const
virtual MachineFunctionProperties getSetProperties () const
virtual MachineFunctionProperties getClearedProperties () const
- Protected Member Functions inherited from llvm::FunctionPass
bool skipFunction (const Function &F) const
 Optional passes call this function to check whether the pass should be skipped. More...


class AggBuffer

Additional Inherited Members

- Public Types inherited from llvm::AsmPrinter
enum  SledKind : uint8_t {
  SledKind::FUNCTION_ENTER = 0, SledKind::FUNCTION_EXIT = 1, SledKind::TAIL_CALL = 2, SledKind::LOG_ARGS_ENTER = 3,
  SledKind::CUSTOM_EVENT = 4
enum  CFIMoveType { CFI_M_None, CFI_M_EH, CFI_M_Debug }
using GOTEquivUsePair = std::pair< const GlobalVariable *, unsigned >
 Map global GOT equivalent MCSymbols to GlobalVariables and keep track of its number of uses by other globals. More...
- Static Public Member Functions inherited from llvm::Pass
static const PassInfolookupPassInfo (const void *TI)
static const PassInfolookupPassInfo (StringRef Arg)
static PasscreatePass (AnalysisID ID)

Detailed Description

Definition at line 84 of file NVPTXAsmPrinter.h.

Constructor & Destructor Documentation

◆ NVPTXAsmPrinter()

llvm::NVPTXAsmPrinter::NVPTXAsmPrinter ( TargetMachine TM,
std::unique_ptr< MCStreamer Streamer 

Definition at line 338 of file NVPTXAsmPrinter.h.

◆ ~NVPTXAsmPrinter()

llvm::NVPTXAsmPrinter::~NVPTXAsmPrinter ( )

Definition at line 343 of file NVPTXAsmPrinter.h.

Member Function Documentation

◆ doFinalization()

bool NVPTXAsmPrinter::doFinalization ( Module M)

Shut down the asmprinter.

If you override this in your pass, you must make sure to call it explicitly.

Reimplemented from llvm::AsmPrinter.

Definition at line 997 of file NVPTXAsmPrinter.cpp.

References __CLK_ADDRESS_BASE, __CLK_ADDRESS_MASK, __CLK_FILTER_BASE, __CLK_FILTER_MASK, __CLK_NORMALIZED_BASE, __CLK_NORMALIZED_MASK, llvm::ADDRESS_SPACE_CONST, llvm::ADDRESS_SPACE_GLOBAL, llvm::ADDRESS_SPACE_LOCAL, llvm::ADDRESS_SPACE_SHARED, AggBuffer, llvm::Type::ArrayTyID, canDemoteGlobalVar(), llvm::clearAnnotationCache(), llvm::NVPTX::CUDA, llvm::StringRef::data(), llvm::AsmPrinter::doFinalization(), llvm::Type::DoubleTyID, llvm::dyn_cast(), E, llvm::Type::FloatTyID, llvm::PointerType::getAddressSpace(), llvm::GlobalObject::getAlignment(), getBitWidth(), llvm::AsmPrinter::getDataLayout(), llvm::Module::getGlobalList(), llvm::GlobalVariable::getInitializer(), llvm::Value::getName(), llvm::DataLayout::getPrefTypeAlignment(), llvm::getSamplerName(), llvm::Type::getScalarSizeInBits(), llvm::GlobalObject::getSection(), llvm::getSurfaceName(), llvm::AsmPrinter::getSymbol(), llvm::getTextureName(), llvm::GlobalValue::getType(), llvm::Type::getTypeID(), llvm::DataLayout::getTypeStoreSize(), llvm::GlobalValue::getValueType(), llvm::ConstantInt::getZExtValue(), llvm::Type::HalfTyID, llvm::GlobalValue::hasAppendingLinkage(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalValue::hasCommonLinkage(), llvm::GlobalValue::hasExternalLinkage(), llvm::GlobalVariable::hasInitializer(), llvm::GlobalValue::hasInternalLinkage(), llvm::GlobalValue::hasLinkOnceLinkage(), llvm::Value::hasName(), llvm::GlobalValue::hasPrivateLinkage(), llvm::GlobalObject::hasSection(), llvm::GlobalValue::hasWeakLinkage(), I, llvm::iplist_impl< IntrusiveListT, TraitsT >::insert(), llvm::Type::IntegerTyID, is64Bit(), llvm::GlobalValue::isDeclaration(), llvm::Type::isFloatingPointTy(), llvm::Type::isIntegerTy(), llvm::isManaged(), llvm::Constant::isNullValue(), llvm::Type::isPointerTy(), llvm::isSampler(), llvm::isSurface(), llvm::isTexture(), llvm_unreachable, llvm::AsmPrinter::MAI, name, llvm::RISCVFenceField::O, llvm::Type::PointerTyID, llvm::MCSymbol::print(), llvm::iplist_impl< IntrusiveListT, TraitsT >::remove(), llvm::report_fatal_error(), llvm::StringRef::startswith(), llvm::Type::StructTyID, llvm::AsmPrinter::TM, llvm::Value::use_empty(), llvm::utostr(), and llvm::Type::VectorTyID.

◆ doInitialization()

bool NVPTXAsmPrinter::doInitialization ( Module M)

◆ emitLineNumberAsDotLoc()

void NVPTXAsmPrinter::emitLineNumberAsDotLoc ( const MachineInstr MI)

Definition at line 154 of file NVPTXAsmPrinter.cpp.

References llvm::MCInst::addOperand(), llvm::sys::path::append(), assert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear(), llvm::ComputeValueVTs(), llvm::MCSymbolRefExpr::create(), llvm::NVPTXFloatMCExpr::createConstantFPDouble(), llvm::NVPTXFloatMCExpr::createConstantFPHalf(), llvm::NVPTXFloatMCExpr::createConstantFPSingle(), llvm::MCOperand::createExpr(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), llvm::NVPTX::CUDA, llvm::AsmPrinter::CurrentFnSym, llvm::Type::DoubleTyID, llvm::AsmPrinter::EmitBasicBlockStart(), EmitLineNumbers, llvm::AsmPrinter::EmitToStreamer(), F(), llvm::Type::FloatTyID, llvm::DataLayout::getABITypeAlignment(), llvm::getAlign(), llvm::MachineBasicBlock::getBasicBlock(), llvm::DebugLoc::getCol(), llvm::AsmPrinter::getDataLayout(), llvm::MachineInstr::getDebugLoc(), llvm::MachineInstr::getDesc(), llvm::AsmPrinter::GetExternalSymbolSymbol(), llvm::MachineOperand::getFPImm(), llvm::MachineFunction::getFunction(), llvm::MachineOperand::getGlobal(), llvm::NVPTXMachineFunctionInfo::getImageHandleSymbol(), llvm::MachineOperand::getImm(), llvm::MachineFunction::getInfo(), llvm::DebugLoc::getLine(), llvm::MachineLoopInfo::getLoopFor(), llvm::ManagedStringPool::getManagedString(), llvm::NVPTXTargetMachine::getManagedStrPool(), llvm::getMaxNReg(), llvm::getMaxNTIDx(), llvm::getMaxNTIDy(), llvm::getMaxNTIDz(), llvm::MachineOperand::getMBB(), llvm::getMinCTASm(), llvm::NVPTXRegisterInfo::getName(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MCContext::getOrCreateSymbol(), llvm::GlobalValue::getParent(), llvm::TargetLoweringBase::getPointerTy(), llvm::Type::getPrimitiveSizeInBits(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getRegInfo(), llvm::NVPTXSubtarget::getRegisterInfo(), llvm::getReqNTIDx(), llvm::getReqNTIDy(), llvm::getReqNTIDz(), llvm::Function::getReturnType(), llvm::DebugLoc::getScope(), llvm::EVT::getSizeInBits(), llvm::MVT::getSizeInBits(), llvm::NVPTXSubtarget::getSmVersion(), llvm::AsmPrinter::getSymbol(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getSymbolName(), GetSymbolRef(), llvm::MachineFunction::getTarget(), llvm::NVPTXSubtarget::getTargetLowering(), llvm::MachineOperand::getType(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::Type::getTypeID(), llvm::GetUnrollMetadata(), llvm::ConstantFP::getValueAPF(), getVirtualRegisterName(), llvm::Type::HalfTyID, llvm::NVPTXSubtarget::hasImageHandles(), I, ignoreLoc(), InterleaveSrc, llvm::sys::path::is_absolute(), llvm::Type::isAggregateType(), llvm::Type::isFloatingPointTy(), llvm::MachineOperand::isImm(), llvm::EVT::isInteger(), llvm::Type::isIntegerTy(), llvm::isKernelFunction(), llvm::MachineLoopInfo::isLoopHeader(), llvm::NVPTXII::IsSuldMask, llvm::NVPTXII::IsSuldShift, llvm::NVPTXII::IsSurfTexQueryFlag, llvm::NVPTXII::IsSustFlag, llvm::NVPTXII::IsTexFlag, llvm::NVPTXII::IsTexModeUnifiedFlag, llvm::HexagonMCInstrInfo::isVector(), llvm::Type::isVectorTy(), llvm::TargetRegisterInfo::isVirtualRegister(), llvm_unreachable, llvm::AsmPrinter::MAI, llvm::LLVMContext::MD_loop, llvm::AsmPrinter::MF, MI, llvm::MachineOperand::MO_ExternalSymbol, llvm::MachineOperand::MO_FPImmediate, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, MRI, llvm::RISCVFenceField::O, llvm::AsmPrinter::OutContext, llvm::AsmPrinter::OutStreamer, llvm::MachineBasicBlock::pred_begin(), llvm::MachineBasicBlock::pred_end(), prevDebugLoc, llvm::MCSymbol::print(), llvm::report_fatal_error(), llvm::MipsISD::Ret, llvm::MCInst::setOpcode(), llvm::SmallVectorTemplateCommon< T >::size(), llvm::raw_svector_ostream::str(), llvm::ARMBuildAttrs::Symbol, llvm::AsmPrinter::TM, llvm::MCInstrDesc::TSFlags, llvm::MCSymbolRefExpr::VK_None, and llvm::Type::VoidTyID.

◆ getAnalysisUsage()

void llvm::NVPTXAsmPrinter::getAnalysisUsage ( AnalysisUsage AU) const

Record analysis usage.

Reimplemented from llvm::AsmPrinter.

Definition at line 352 of file NVPTXAsmPrinter.h.

References llvm::AnalysisUsage::addRequired(), and llvm::AsmPrinter::getAnalysisUsage().

◆ getVirtualRegisterName()

std::string NVPTXAsmPrinter::getVirtualRegisterName ( unsigned  Reg) const

◆ ignoreLoc()

bool NVPTXAsmPrinter::ignoreLoc ( const MachineInstr MI)

Definition at line 2059 of file NVPTXAsmPrinter.cpp.

References llvm::MCID::Add, llvm::MCBinaryExpr::Add, llvm::MCExpr::Binary, C, llvm::MCExpr::Constant, llvm::ConstantFoldConstant(), llvm::NVPTXGenericMCSymbolRefExpr::create(), llvm::MCConstantExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MCBinaryExpr::createAnd(), DEPOTNAME, llvm::dyn_cast(), llvm::LineReader::fileName(), llvm::sys::path::filename(), llvm::PointerType::getAddressSpace(), llvm::AsmPrinter::getDataLayout(), llvm::MachineOperand::getFPImm(), llvm::MachineFunction::getFunction(), llvm::AsmPrinter::getFunctionNumber(), llvm::MachineOperand::getGlobal(), llvm::MachineOperand::getImm(), llvm::ConstantExpr::getIntegerCast(), llvm::DataLayout::getIntPtrType(), llvm::MCExpr::getKind(), llvm::MCBinaryExpr::getLHS(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MCUnaryExpr::getOpcode(), llvm::MCBinaryExpr::getOpcode(), llvm::ConstantExpr::getOpcode(), llvm::User::getOperand(), llvm::MachineInstr::getOperand(), llvm::GlobalValue::getParent(), llvm::DataLayout::getPointerTypeSizeInBits(), llvm::MachineOperand::getReg(), llvm::NVPTXInstPrinter::getRegisterName(), llvm::MCBinaryExpr::getRHS(), llvm::APInt::getSExtValue(), llvm::MCUnaryExpr::getSubExpr(), llvm::AsmPrinter::getSymbol(), llvm::MCSymbolRefExpr::getSymbol(), llvm::MachineBasicBlock::getSymbol(), llvm::MachineOperand::getType(), llvm::Value::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::DataLayout::getTypeAllocSizeInBits(), llvm::MachineOperand::isImm(), llvm::Constant::isNullValue(), llvm::TargetRegisterInfo::isPhysicalRegister(), LLVM_FALLTHROUGH, llvm_unreachable, llvm::MCUnaryExpr::LNot, llvm::AsmPrinter::MAI, llvm::MCUnaryExpr::Minus, llvm::MachineOperand::MO_FPImmediate, llvm::MachineOperand::MO_GlobalAddress, llvm::MachineOperand::MO_Immediate, llvm::MachineOperand::MO_MachineBasicBlock, llvm::MachineOperand::MO_Register, llvm::MCUnaryExpr::Not, llvm::RISCVFenceField::O, llvm::AsmPrinter::OutContext, llvm::AsmPrinter::OutStreamer, llvm::MCUnaryExpr::Plus, llvm::Pass::print(), llvm::MCSymbol::print(), llvm::AsmPrinter::PrintAsmOperand(), llvm::Value::printAsOperand(), printOperand(), llvm::LineReader::readLine(), llvm::report_fatal_error(), llvm::StringRef::str(), llvm::raw_string_ostream::str(), llvm::MCExpr::SymbolRef, llvm::MCExpr::Target, and llvm::MCExpr::Unary.

Referenced by emitLineNumberAsDotLoc().

◆ runOnMachineFunction()

bool llvm::NVPTXAsmPrinter::runOnMachineFunction ( MachineFunction MF)

Emit the specified function out to the OutStreamer.

Reimplemented from llvm::AsmPrinter.

Definition at line 347 of file NVPTXAsmPrinter.h.

References llvm::MachineFunction::getSubtarget(), and llvm::AsmPrinter::runOnMachineFunction().

Friends And Related Function Documentation

◆ AggBuffer

friend class AggBuffer

Definition at line 218 of file NVPTXAsmPrinter.h.

Referenced by ConvertDoubleToBytes(), and doFinalization().

Member Data Documentation

◆ prevDebugLoc

DebugLoc llvm::NVPTXAsmPrinter::prevDebugLoc

Definition at line 361 of file NVPTXAsmPrinter.h.

Referenced by emitLineNumberAsDotLoc().

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