LLVM API Documentation
#include <NVPTXAsmPrinter.h>
Classes | |
class | AggBuffer |
Public Member Functions | |
NVPTXAsmPrinter (TargetMachine &TM, MCStreamer &Streamer) | |
~NVPTXAsmPrinter () | |
bool | ignoreLoc (const MachineInstr &) |
std::string | getVirtualRegisterName (unsigned) const |
void | emitLineNumberAsDotLoc (const MachineInstr &) |
Public Attributes | |
DebugLoc | prevDebugLoc |
Protected Member Functions | |
bool | doInitialization (Module &M) override |
bool | doFinalization (Module &M) override |
Friends | |
class | AggBuffer |
Definition at line 69 of file NVPTXAsmPrinter.h.
llvm::NVPTXAsmPrinter::NVPTXAsmPrinter | ( | TargetMachine & | TM, |
MCStreamer & | Streamer | ||
) | [inline] |
Definition at line 308 of file NVPTXAsmPrinter.h.
References llvm::NVPTX::CUDA.
llvm::NVPTXAsmPrinter::~NVPTXAsmPrinter | ( | ) | [inline] |
Definition at line 316 of file NVPTXAsmPrinter.h.
bool NVPTXAsmPrinter::doFinalization | ( | Module & | M | ) | [override, protected, virtual] |
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 1052 of file NVPTXAsmPrinter.cpp.
References llvm::iplist< NodeTy, Traits >::begin(), llvm::clearAnnotationCache(), llvm::AsmPrinter::doFinalization(), llvm::iplist< NodeTy, Traits >::empty(), llvm::iplist< NodeTy, Traits >::end(), llvm::Module::getGlobalList(), I, llvm::iplist< NodeTy, Traits >::insert(), llvm::iplist< NodeTy, Traits >::remove(), and llvm::iplist< NodeTy, Traits >::size().
bool NVPTXAsmPrinter::doInitialization | ( | Module & | M | ) | [override, protected, virtual] |
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::AsmPrinter.
Definition at line 943 of file NVPTXAsmPrinter.cpp.
References llvm::NVPTX::CUDA, llvm::TargetSubtargetInfo::getDataLayout(), llvm::Module::getModuleInlineAsm(), llvm::TargetMachine::getSubtargetImpl(), and llvm::raw_svector_ostream::str().
void NVPTXAsmPrinter::emitLineNumberAsDotLoc | ( | const MachineInstr & | MI | ) |
Definition at line 268 of file NVPTXAsmPrinter.cpp.
References llvm::sys::path::append(), EmitLineNumbers, llvm::DebugLoc::getCol(), llvm::Function::getContext(), llvm::MachineInstr::getDebugLoc(), llvm::MachineFunction::getFunction(), llvm::DebugLoc::getLine(), llvm::MachineInstr::getParent(), llvm::MachineBasicBlock::getParent(), llvm::DebugLoc::getScope(), InterleaveSrc, llvm::sys::path::is_absolute(), and llvm::DebugLoc::isUnknown().
std::string NVPTXAsmPrinter::getVirtualRegisterName | ( | unsigned | Reg | ) | const |
Definition at line 694 of file NVPTXAsmPrinter.cpp.
References llvm::raw_ostream::flush(), llvm::getNVPTXRegClassStr(), I, and Name.
Definition at line 2095 of file NVPTXAsmPrinter.cpp.
References llvm::TargetOpcode::DBG_VALUE, and llvm::MachineInstr::getOpcode().
friend class AggBuffer [friend] |
Definition at line 187 of file NVPTXAsmPrinter.h.
Definition at line 325 of file NVPTXAsmPrinter.h.