LLVM API Documentation
#include "NVPTXAsmPrinter.h"
#include "MCTargetDesc/NVPTXMCAsmInfo.h"
#include "NVPTX.h"
#include "NVPTXInstrInfo.h"
#include "NVPTXMCExpr.h"
#include "NVPTXRegisterInfo.h"
#include "NVPTXTargetMachine.h"
#include "NVPTXUtilities.h"
#include "InstPrinter/NVPTXInstPrinter.h"
#include "cl_common_defines.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/Analysis.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/DebugInfo.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormattedStream.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/TimeValue.h"
#include "llvm/Target/Mangler.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include <sstream>
Go to the source code of this file.
Macros | |
#define | DEPOTNAME "__local_depot" |
Functions | |
static bool | usedInGlobalVarDef (const Constant *C) |
static bool | usedInOneFunc (const User *U, Function const *&oneFunc) |
static bool | canDemoteGlobalVar (const GlobalVariable *gv, Function const *&f) |
static bool | useFuncSeen (const Constant *C, llvm::DenseMap< const Function *, bool > &seenMap) |
static unsigned int | getOpenCLAlignment (const DataLayout *TD, Type *Ty) |
void | LLVMInitializeNVPTXBackendAsmPrinter () |
void | LLVMInitializeNVPTXAsmPrinter () |
Variables | |
static cl::opt< bool > | EmitLineNumbers ("nvptx-emit-line-numbers", cl::Hidden, cl::desc("NVPTX Specific: Emit Line numbers even without -G"), cl::init(true)) |
static cl::opt< bool > | InterleaveSrc ("nvptx-emit-src", cl::ZeroOrMore, cl::Hidden, cl::desc("NVPTX Specific: Emit source line in ptx file"), cl::init(false)) |
#define DEPOTNAME "__local_depot" |
Definition at line 51 of file NVPTXAsmPrinter.cpp.
|
static |
Definition at line 749 of file NVPTXAsmPrinter.cpp.
References llvm::ADDRESS_SPACE_SHARED, llvm::PointerType::getAddressSpace(), llvm::GlobalValue::getType(), llvm::GlobalValue::hasInternalLinkage(), and usedInOneFunc().
|
static |
Definition at line 1412 of file NVPTXAsmPrinter.cpp.
References llvm::dyn_cast(), llvm::StructType::getElementType(), llvm::SequentialType::getElementType(), llvm::StructType::getNumElements(), llvm::DataLayout::getPointerPrefAlignment(), llvm::DataLayout::getPrefTypeAlignment(), llvm::Type::isIntegerTy(), and llvm::Type::isPrimitiveType().
void LLVMInitializeNVPTXAsmPrinter | ( | ) |
Definition at line 2176 of file NVPTXAsmPrinter.cpp.
References llvm::TheNVPTXTarget32, llvm::TheNVPTXTarget64, llvm::X, and Y.
void LLVMInitializeNVPTXBackendAsmPrinter | ( | ) |
Definition at line 2132 of file NVPTXAsmPrinter.cpp.
References llvm::TheNVPTXTarget32, llvm::TheNVPTXTarget64, llvm::X, and Y.
Definition at line 693 of file NVPTXAsmPrinter.cpp.
References llvm::dyn_cast(), llvm::Value::getName(), llvm::StringRef::str(), llvm::Value::use_begin(), and llvm::Value::use_end().
Definition at line 712 of file NVPTXAsmPrinter.cpp.
References llvm::GlobalValue::getParent(), llvm::Value::use_begin(), and llvm::Value::use_end().
Referenced by canDemoteGlobalVar().
|
static |
Definition at line 767 of file NVPTXAsmPrinter.cpp.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::find(), llvm::BasicBlock::getParent(), I, llvm::Value::use_begin(), and llvm::Value::use_end().
|
static |
Referenced by llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc().
|
static |
Referenced by llvm::NVPTXAsmPrinter::emitLineNumberAsDotLoc().