LLVM  3.7.0
Macros | Functions | Variables
NVPTXAsmPrinter.cpp File Reference
#include "NVPTXAsmPrinter.h"
#include "InstPrinter/NVPTXInstPrinter.h"
#include "MCTargetDesc/NVPTXMCAsmInfo.h"
#include "NVPTX.h"
#include "NVPTXInstrInfo.h"
#include "NVPTXMCExpr.h"
#include "NVPTXMachineFunctionInfo.h"
#include "NVPTXRegisterInfo.h"
#include "NVPTXTargetMachine.h"
#include "NVPTXUtilities.h"
#include "cl_common_defines.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/CodeGen/Analysis.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/MC/MCInst.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/TargetLoweringObjectFile.h"
#include "llvm/Transforms/Utils/UnrollLoop.h"
#include <sstream>
Include dependency graph for NVPTXAsmPrinter.cpp:

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)
 
template<typename T >
static void ConvertIntToBytes (unsigned char *p, T val)
 
static void ConvertFloatToBytes (unsigned char *p, float val)
 
static void ConvertDoubleToBytes (unsigned char *p, double val)
 
void LLVMInitializeNVPTXAsmPrinter ()
 

Variables

static cl::opt< boolEmitLineNumbers ("nvptx-emit-line-numbers", cl::Hidden, cl::desc("NVPTX Specific: Emit Line numbers even without -G"), cl::init(true))
 
static cl::opt< boolInterleaveSrc ("nvptx-emit-src", cl::ZeroOrMore, cl::Hidden, cl::desc("NVPTX Specific: Emit source line in ptx file"), cl::init(false))
 

Macro Definition Documentation

#define DEPOTNAME   "__local_depot"

Definition at line 54 of file NVPTXAsmPrinter.cpp.

Function Documentation

static bool canDemoteGlobalVar ( const GlobalVariable gv,
Function const *&  f 
)
static
static void ConvertDoubleToBytes ( unsigned char *  p,
double  val 
)
static

Definition at line 1778 of file NVPTXAsmPrinter.cpp.

static void ConvertFloatToBytes ( unsigned char *  p,
float  val 
)
static

Definition at line 1771 of file NVPTXAsmPrinter.cpp.

template<typename T >
static void ConvertIntToBytes ( unsigned char *  p,
T  val 
)
static

Definition at line 1764 of file NVPTXAsmPrinter.cpp.

References T.

static unsigned int getOpenCLAlignment ( const DataLayout TD,
Type Ty 
)
static
void LLVMInitializeNVPTXAsmPrinter ( )

Definition at line 2362 of file NVPTXAsmPrinter.cpp.

References llvm::TheNVPTXTarget32, llvm::TheNVPTXTarget64, X, and Y.

static bool usedInGlobalVarDef ( const Constant C)
static

Definition at line 633 of file NVPTXAsmPrinter.cpp.

References llvm::Value::getName(), and llvm::Value::users().

static bool usedInOneFunc ( const User U,
Function const *&  oneFunc 
)
static

Definition at line 651 of file NVPTXAsmPrinter.cpp.

References llvm::GlobalValue::getParent(), and llvm::Value::users().

Referenced by canDemoteGlobalVar().

static bool useFuncSeen ( const Constant C,
llvm::DenseMap< const Function *, bool > &  seenMap 
)
static

Variable Documentation

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))
static