14 #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXISELDAGTODAG_H
15 #define LLVM_LIB_TARGET_NVPTX_NVPTXISELDAGTODAG_H
33 int getDivF32Level()
const;
34 bool usePrecSqrtF32()
const;
35 bool useF32FTZ()
const;
36 bool allowFMA()
const;
37 bool allowUnsafeFPMath()
const;
45 return "NVPTX DAG->DAG Pattern Instruction Selection";
50 bool SelectInlineAsmMemoryOperand(
const SDValue &
Op,
51 unsigned ConstraintID,
52 std::vector<SDValue> &OutOps)
override;
55 #include "NVPTXGenDAGISel.inc"
58 bool tryIntrinsicNoChain(
SDNode *
N);
59 bool tryIntrinsicChain(
SDNode *
N);
60 void SelectTexSurfHandle(
SDNode *
N);
69 void SelectAddrSpaceCast(
SDNode *
N);
70 bool tryTextureIntrinsic(
SDNode *
N);
71 bool trySurfaceIntrinsic(
SDNode *
N);
73 bool tryConstantFP16(
SDNode *
N);
74 bool SelectSETP_F16X2(
SDNode *
N);
75 bool tryEXTRACT_VECTOR_ELEMENT(
SDNode *
N);
77 inline SDValue getI32Imm(
unsigned Imm,
const SDLoc &DL) {
78 return CurDAG->getTargetConstant(Imm, DL,
MVT::i32);
98 bool ChkMemSDNodeAddressSpace(
SDNode *
N,
unsigned int spN)
const;
100 static unsigned GetConvertOpcode(
MVT DestTy,
MVT SrcTy,
bool IsSigned);
const NVPTXSubtarget * Subtarget
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
#define LLVM_LIBRARY_VISIBILITY
LLVM_LIBRARY_VISIBILITY - If a class marked with this attribute is linked into a shared library...
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
SelectionDAGISel - This is the common base class used for SelectionDAG-based pattern-matching instruc...
StringRef - Represent a constant reference to a string, i.e.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...