diff options
Diffstat (limited to 'lib/Target/NVPTX/NVPTXISelDAGToDAG.h')
-rw-r--r-- | lib/Target/NVPTX/NVPTXISelDAGToDAG.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelDAGToDAG.h b/lib/Target/NVPTX/NVPTXISelDAGToDAG.h index fe20580c83a2..d53c92f1eff3 100644 --- a/lib/Target/NVPTX/NVPTXISelDAGToDAG.h +++ b/lib/Target/NVPTX/NVPTXISelDAGToDAG.h @@ -21,9 +21,8 @@ #include "llvm/CodeGen/SelectionDAGISel.h" #include "llvm/IR/Intrinsics.h" #include "llvm/Support/Compiler.h" -using namespace llvm; -namespace { +namespace llvm { class LLVM_LIBRARY_VISIBILITY NVPTXDAGToDAGISel : public SelectionDAGISel { const NVPTXTargetMachine &TM; @@ -54,24 +53,24 @@ private: // Include the pieces autogenerated from the target description. #include "NVPTXGenDAGISel.inc" - SDNode *Select(SDNode *N) override; - SDNode *SelectIntrinsicNoChain(SDNode *N); - SDNode *SelectIntrinsicChain(SDNode *N); - SDNode *SelectTexSurfHandle(SDNode *N); - SDNode *SelectLoad(SDNode *N); - SDNode *SelectLoadVector(SDNode *N); - SDNode *SelectLDGLDU(SDNode *N); - SDNode *SelectStore(SDNode *N); - SDNode *SelectStoreVector(SDNode *N); - SDNode *SelectLoadParam(SDNode *N); - SDNode *SelectStoreRetval(SDNode *N); - SDNode *SelectStoreParam(SDNode *N); - SDNode *SelectAddrSpaceCast(SDNode *N); - SDNode *SelectTextureIntrinsic(SDNode *N); - SDNode *SelectSurfaceIntrinsic(SDNode *N); - SDNode *SelectBFE(SDNode *N); - - inline SDValue getI32Imm(unsigned Imm, SDLoc DL) { + void Select(SDNode *N) override; + bool tryIntrinsicNoChain(SDNode *N); + bool tryIntrinsicChain(SDNode *N); + void SelectTexSurfHandle(SDNode *N); + bool tryLoad(SDNode *N); + bool tryLoadVector(SDNode *N); + bool tryLDGLDU(SDNode *N); + bool tryStore(SDNode *N); + bool tryStoreVector(SDNode *N); + bool tryLoadParam(SDNode *N); + bool tryStoreRetval(SDNode *N); + bool tryStoreParam(SDNode *N); + void SelectAddrSpaceCast(SDNode *N); + bool tryTextureIntrinsic(SDNode *N); + bool trySurfaceIntrinsic(SDNode *N); + bool tryBFE(SDNode *N); + + inline SDValue getI32Imm(unsigned Imm, const SDLoc &DL) { return CurDAG->getTargetConstant(Imm, DL, MVT::i32); } @@ -94,7 +93,8 @@ private: bool ChkMemSDNodeAddressSpace(SDNode *N, unsigned int spN) const; + static unsigned GetConvertOpcode(MVT DestTy, MVT SrcTy, bool IsSigned); }; -} +} // end namespace llvm #endif |