LLVM  8.0.1
Macros | Functions
NVPTXISelDAGToDAG.cpp File Reference
#include "NVPTXISelDAGToDAG.h"
#include "NVPTXUtilities.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Support/AtomicOrdering.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetIntrinsicInfo.h"
Include dependency graph for NVPTXISelDAGToDAG.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "nvptx-isel"
 

Functions

static unsigned getPTXCmpMode (const CondCodeSDNode &CondCode, bool FTZ)
 
static unsigned int getCodeAddrSpace (MemSDNode *N)
 
static bool canLowerToLDG (MemSDNode *N, const NVPTXSubtarget &Subtarget, unsigned CodeAddrSpace, MachineFunction *F)
 
static Optional< unsignedpickOpcodeForVT (MVT::SimpleValueType VT, unsigned Opcode_i8, unsigned Opcode_i16, unsigned Opcode_i32, Optional< unsigned > Opcode_i64, unsigned Opcode_f16, unsigned Opcode_f16x2, unsigned Opcode_f32, Optional< unsigned > Opcode_f64)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "nvptx-isel"

Definition at line 28 of file NVPTXISelDAGToDAG.cpp.

Function Documentation

◆ canLowerToLDG()

static bool canLowerToLDG ( MemSDNode N,
const NVPTXSubtarget Subtarget,
unsigned  CodeAddrSpace,
MachineFunction F 
)
static

◆ getCodeAddrSpace()

static unsigned int getCodeAddrSpace ( MemSDNode N)
static

◆ getPTXCmpMode()

static unsigned getPTXCmpMode ( const CondCodeSDNode CondCode,
bool  FTZ 
)
static

◆ pickOpcodeForVT()

static Optional<unsigned> pickOpcodeForVT ( MVT::SimpleValueType  VT,
unsigned  Opcode_i8,
unsigned  Opcode_i16,
unsigned  Opcode_i32,
Optional< unsigned Opcode_i64,
unsigned  Opcode_f16,
unsigned  Opcode_f16x2,
unsigned  Opcode_f32,
Optional< unsigned Opcode_f64 
)
static

Definition at line 811 of file NVPTXISelDAGToDAG.cpp.

References assert(), canLowerToLDG(), llvm::NVPTX::PTXLdStInstCode::CONSTANT, llvm::SelectionDAGISel::CurDAG, llvm::dyn_cast(), llvm::MVT::f16, llvm::MVT::f32, llvm::MVT::f64, llvm::NVPTX::PTXLdStInstCode::Float, llvm::NVPTX::PTXLdStInstCode::GENERIC, llvm::MemSDNode::getAddressSpace(), llvm::MemSDNode::getBasePtr(), llvm::MemSDNode::getChain(), getCodeAddrSpace(), llvm::SelectionDAG::getDataLayout(), llvm::LoadSDNode::getExtensionType(), llvm::SelectionDAG::getMachineNode(), llvm::MemSDNode::getMemOperand(), llvm::MemSDNode::getMemoryVT(), llvm::SDValue::getNode(), llvm::SDNode::getNumOperands(), llvm::SDNode::getOpcode(), llvm::SDNode::getOperand(), llvm::MemSDNode::getOrdering(), llvm::DataLayout::getPointerSizeInBits(), llvm::MVT::getScalarType(), llvm::SDNode::getSimpleValueType(), llvm::EVT::getSimpleVT(), llvm::MVT::getSizeInBits(), llvm::SelectionDAG::getTargetConstant(), llvm::Optional< T >::getValue(), llvm::SDValue::getValueType(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::getVectorNumElements(), llvm::SelectionDAG::getVTList(), llvm::SDNode::getVTList(), llvm::NVPTX::PTXLdStInstCode::GLOBAL, llvm::MVT::i1, llvm::MVT::i16, llvm::MVT::i32, llvm::MVT::i64, llvm::MVT::i8, llvm::ISD::INTRINSIC_W_CHAIN, llvm::NVPTXTargetMachine::is64Bit(), llvm::MVT::isFloatingPoint(), llvm::EVT::isSimple(), llvm::isStrongerThanMonotonic(), llvm::EVT::isVector(), llvm::MVT::isVector(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::IsVolatile, isVolatile(), llvm::MemSDNode::isVolatile(), llvm::ARM_MB::LD, llvm::NVPTXISD::LDGV2, llvm::NVPTXISD::LDGV4, llvm::NVPTXISD::LDUV2, llvm::NVPTXISD::LDUV4, llvm::ISD::LOAD, llvm::NVPTXISD::LoadV2, llvm::NVPTXISD::LoadV4, llvm::max(), llvm::SelectionDAGISel::MF, llvm::Monotonic, N, llvm::None, llvm::NVPTX::PTXCvtMode::NONE, llvm::Intrinsic::nvvm_ldg_global_f, llvm::Intrinsic::nvvm_ldg_global_i, llvm::Intrinsic::nvvm_ldg_global_p, llvm::Intrinsic::nvvm_ldu_global_f, llvm::Intrinsic::nvvm_ldu_global_i, llvm::Intrinsic::nvvm_ldu_global_p, llvm::MVT::Other, llvm::SmallVectorTemplateBase< T >::push_back(), llvm::MemSDNode::readMem(), llvm::SelectionDAGISel::ReplaceNode(), llvm::SelectionDAGISel::ReplaceUses(), llvm::report_fatal_error(), llvm::NVPTX::PTXLdStInstCode::Scalar, llvm::SelectionDAG::setNodeMemRefs(), llvm::ISD::SEXTLOAD, llvm::NVPTX::PTXLdStInstCode::SHARED, llvm::NVPTX::PTXLdStInstCode::Signed, llvm::MVT::SimpleTy, llvm::ARM_MB::ST, llvm::NVPTXISD::StoreV2, llvm::NVPTXISD::StoreV4, llvm::NVPTXDAGToDAGISel::Subtarget, llvm::NVPTX::PTXLdStInstCode::Unsigned, llvm::NVPTX::PTXLdStInstCode::Untyped, llvm::NVPTX::PTXLdStInstCode::V2, llvm::MVT::v2f16, llvm::NVPTX::PTXLdStInstCode::V4, and llvm::MemSDNode::writeMem().