mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 14:25:18 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269483 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d273c95832
commit
bc13a3d187
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…
x
Reference in New Issue
Block a user