forked from OSchip/llvm-project
SDAG: Implement Select instead of SelectImpl in NVPTXDAGToDAGISel
- Where we were returning a node before, call ReplaceNode instead. - Where we would return null to fall back to another selector, rename the method to try* and return a bool for success. Part of llvm.org/pr26808. llvm-svn: 269483
This commit is contained in:
parent
c326d050ca
commit
8d83fb6132
File diff suppressed because it is too large
Load Diff
|
@ -53,22 +53,22 @@ private:
|
|||
// Include the pieces autogenerated from the target description.
|
||||
#include "NVPTXGenDAGISel.inc"
|
||||
|
||||
SDNode *SelectImpl(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);
|
||||
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, SDLoc DL) {
|
||||
return CurDAG->getTargetConstant(Imm, DL, MVT::i32);
|
||||
|
|
Loading…
Reference in New Issue