2012-12-11 22:25:42 +01:00
|
|
|
//===-- SIISelLowering.h - SI DAG Lowering Interface ------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
2018-05-01 17:54:18 +02:00
|
|
|
/// SI DAG Lowering interface definition
|
2012-12-11 22:25:42 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2016-03-11 09:00:27 +01:00
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_SIISELLOWERING_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_SIISELLOWERING_H
|
2012-12-11 22:25:42 +01:00
|
|
|
|
|
|
|
#include "AMDGPUISelLowering.h"
|
2017-08-04 01:00:29 +02:00
|
|
|
#include "AMDGPUArgumentUsageInfo.h"
|
2012-12-11 22:25:42 +01:00
|
|
|
#include "SIInstrInfo.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2016-03-11 09:00:27 +01:00
|
|
|
class SITargetLowering final : public AMDGPUTargetLowering {
|
2017-04-12 00:29:24 +02:00
|
|
|
SDValue lowerKernArgParameterPtr(SelectionDAG &DAG, const SDLoc &SL,
|
|
|
|
SDValue Chain, uint64_t Offset) const;
|
2017-07-28 17:52:08 +02:00
|
|
|
SDValue getImplicitArgPtr(SelectionDAG &DAG, const SDLoc &SL) const;
|
2017-04-12 00:29:24 +02:00
|
|
|
SDValue lowerKernargMemParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
|
|
|
|
const SDLoc &SL, SDValue Chain,
|
|
|
|
uint64_t Offset, bool Signed,
|
|
|
|
const ISD::InputArg *Arg = nullptr) const;
|
|
|
|
|
2017-05-17 23:56:25 +02:00
|
|
|
SDValue lowerStackParameter(SelectionDAG &DAG, CCValAssign &VA,
|
|
|
|
const SDLoc &SL, SDValue Chain,
|
|
|
|
const ISD::InputArg &Arg) const;
|
2017-08-04 01:00:29 +02:00
|
|
|
SDValue getPreloadedValue(SelectionDAG &DAG,
|
|
|
|
const SIMachineFunctionInfo &MFI,
|
|
|
|
EVT VT,
|
|
|
|
AMDGPUFunctionArgInfo::PreloadedValue) const;
|
2017-05-17 23:56:25 +02:00
|
|
|
|
2016-06-14 22:29:59 +02:00
|
|
|
SDValue LowerGlobalAddress(AMDGPUMachineFunction *MFI, SDValue Op,
|
|
|
|
SelectionDAG &DAG) const override;
|
2015-11-30 22:15:45 +01:00
|
|
|
SDValue lowerImplicitZextParam(SelectionDAG &DAG, SDValue Op,
|
|
|
|
MVT VT, unsigned Offset) const;
|
|
|
|
|
2014-07-26 08:23:37 +02:00
|
|
|
SDValue LowerINTRINSIC_WO_CHAIN(SDValue Op, SelectionDAG &DAG) const;
|
2016-04-12 16:05:04 +02:00
|
|
|
SDValue LowerINTRINSIC_W_CHAIN(SDValue Op, SelectionDAG &DAG) const;
|
2014-07-26 08:23:37 +02:00
|
|
|
SDValue LowerINTRINSIC_VOID(SDValue Op, SelectionDAG &DAG) const;
|
2013-11-14 00:36:50 +01:00
|
|
|
SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const;
|
2014-02-04 18:18:40 +01:00
|
|
|
SDValue LowerSELECT(SDValue Op, SelectionDAG &DAG) const;
|
2016-07-20 01:16:53 +02:00
|
|
|
SDValue lowerFastUnsafeFDIV(SDValue Op, SelectionDAG &DAG) const;
|
|
|
|
SDValue lowerFDIV_FAST(SDValue Op, SelectionDAG &DAG) const;
|
2016-12-22 04:05:41 +01:00
|
|
|
SDValue LowerFDIV16(SDValue Op, SelectionDAG &DAG) const;
|
2014-07-15 22:18:31 +02:00
|
|
|
SDValue LowerFDIV32(SDValue Op, SelectionDAG &DAG) const;
|
|
|
|
SDValue LowerFDIV64(SDValue Op, SelectionDAG &DAG) const;
|
|
|
|
SDValue LowerFDIV(SDValue Op, SelectionDAG &DAG) const;
|
2014-10-04 01:54:41 +02:00
|
|
|
SDValue LowerINT_TO_FP(SDValue Op, SelectionDAG &DAG, bool Signed) const;
|
2013-11-14 00:36:50 +01:00
|
|
|
SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;
|
2014-07-19 20:44:39 +02:00
|
|
|
SDValue LowerTrig(SDValue Op, SelectionDAG &DAG) const;
|
AMDGPU: Implement {BUFFER,FLAT}_ATOMIC_CMPSWAP{,_X2}
Summary:
Implement BUFFER_ATOMIC_CMPSWAP{,_X2} instructions on all GCN targets, and FLAT_ATOMIC_CMPSWAP{,_X2} on CI+.
32-bit instruction variants tested manually on Kabini and Bonaire. Tests and parts of code provided by Jan Veselý.
Patch by: Vedran Miletić
Reviewers: arsenm, tstellarAMD, nhaehnle
Subscribers: jvesely, scchan, kanarayan, arsenm
Differential Revision: http://reviews.llvm.org/D17280
llvm-svn: 265170
2016-04-01 20:27:37 +02:00
|
|
|
SDValue LowerATOMIC_CMP_SWAP(SDValue Op, SelectionDAG &DAG) const;
|
2012-12-19 23:10:31 +01:00
|
|
|
SDValue LowerBRCOND(SDValue Op, SelectionDAG &DAG) const;
|
2012-12-11 22:25:42 +01:00
|
|
|
|
2018-01-12 22:12:19 +01:00
|
|
|
SDValue lowerIntrinsicWChain_IllegalReturnType(SDValue Op, SDValue &Chain,
|
|
|
|
SelectionDAG &DAG) const;
|
|
|
|
SDValue handleD16VData(SDValue VData, SelectionDAG &DAG) const;
|
|
|
|
|
2018-05-01 17:54:18 +02:00
|
|
|
/// Converts \p Op, which must be of floating point type, to the
|
2016-11-13 08:01:11 +01:00
|
|
|
/// floating point type \p VT, by either extending or truncating it.
|
|
|
|
SDValue getFPExtOrFPTrunc(SelectionDAG &DAG,
|
|
|
|
SDValue Op,
|
|
|
|
const SDLoc &DL,
|
|
|
|
EVT VT) const;
|
|
|
|
|
2017-04-12 00:29:24 +02:00
|
|
|
SDValue convertArgType(
|
|
|
|
SelectionDAG &DAG, EVT VT, EVT MemVT, const SDLoc &SL, SDValue Val,
|
|
|
|
bool Signed, const ISD::InputArg *Arg = nullptr) const;
|
|
|
|
|
2018-05-01 17:54:18 +02:00
|
|
|
/// Custom lowering for ISD::FP_ROUND for MVT::f16.
|
2016-11-17 05:28:37 +01:00
|
|
|
SDValue lowerFP_ROUND(SDValue Op, SelectionDAG &DAG) const;
|
|
|
|
|
2017-04-07 01:02:33 +02:00
|
|
|
SDValue getSegmentAperture(unsigned AS, const SDLoc &DL,
|
|
|
|
SelectionDAG &DAG) const;
|
|
|
|
|
2016-04-25 21:27:24 +02:00
|
|
|
SDValue lowerADDRSPACECAST(SDValue Op, SelectionDAG &DAG) const;
|
2017-01-24 00:09:58 +01:00
|
|
|
SDValue lowerINSERT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
|
|
|
|
SDValue lowerEXTRACT_VECTOR_ELT(SDValue Op, SelectionDAG &DAG) const;
|
2018-05-16 13:47:30 +02:00
|
|
|
SDValue lowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const;
|
2016-06-18 00:27:03 +02:00
|
|
|
SDValue lowerTRAP(SDValue Op, SelectionDAG &DAG) const;
|
2016-04-25 21:27:24 +02:00
|
|
|
|
2017-12-04 23:18:27 +01:00
|
|
|
SDNode *adjustWritemask(MachineSDNode *&N, SelectionDAG &DAG) const;
|
2013-04-10 10:39:08 +02:00
|
|
|
|
2015-01-14 02:35:22 +01:00
|
|
|
SDValue performUCharToFloatCombine(SDNode *N,
|
|
|
|
DAGCombinerInfo &DCI) const;
|
2014-08-15 19:49:05 +02:00
|
|
|
SDValue performSHLPtrCombine(SDNode *N,
|
|
|
|
unsigned AS,
|
2017-11-13 06:11:54 +01:00
|
|
|
EVT MemVT,
|
2014-08-15 19:49:05 +02:00
|
|
|
DAGCombinerInfo &DCI) const;
|
2016-09-14 17:19:03 +02:00
|
|
|
|
2016-12-22 04:44:42 +01:00
|
|
|
SDValue performMemSDNodeCombine(MemSDNode *N, DAGCombinerInfo &DCI) const;
|
|
|
|
|
2016-09-14 17:19:03 +02:00
|
|
|
SDValue splitBinaryBitConstantOp(DAGCombinerInfo &DCI, const SDLoc &SL,
|
|
|
|
unsigned Opc, SDValue LHS,
|
|
|
|
const ConstantSDNode *CRHS) const;
|
|
|
|
|
2015-01-07 00:00:46 +01:00
|
|
|
SDValue performAndCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2015-01-07 00:00:39 +01:00
|
|
|
SDValue performOrCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2016-09-14 17:19:03 +02:00
|
|
|
SDValue performXorCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-03-31 21:53:03 +02:00
|
|
|
SDValue performZeroExtendCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2015-01-07 00:00:39 +01:00
|
|
|
SDValue performClassCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2016-04-14 03:42:16 +02:00
|
|
|
SDValue performFCanonicalizeCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2014-06-11 19:50:44 +02:00
|
|
|
|
2017-02-22 00:35:48 +01:00
|
|
|
SDValue performFPMed3ImmCombine(SelectionDAG &DAG, const SDLoc &SL,
|
|
|
|
SDValue Op0, SDValue Op1) const;
|
2017-02-27 23:40:39 +01:00
|
|
|
SDValue performIntMed3ImmCombine(SelectionDAG &DAG, const SDLoc &SL,
|
|
|
|
SDValue Op0, SDValue Op1, bool Signed) const;
|
2016-01-28 21:53:42 +01:00
|
|
|
SDValue performMinMaxCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-02-22 00:35:48 +01:00
|
|
|
SDValue performFMed3Combine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-02-22 01:27:34 +01:00
|
|
|
SDValue performCvtPkRTZCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-05-11 19:26:25 +02:00
|
|
|
SDValue performExtractVectorEltCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-09-20 23:01:24 +02:00
|
|
|
SDValue performBuildVectorCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2016-01-28 21:53:42 +01:00
|
|
|
|
2016-12-22 05:03:35 +01:00
|
|
|
unsigned getFusedOpcode(const SelectionDAG &DAG,
|
|
|
|
const SDNode *N0, const SDNode *N1) const;
|
2017-06-22 00:05:06 +02:00
|
|
|
SDValue performAddCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2017-06-22 00:30:01 +02:00
|
|
|
SDValue performAddCarrySubCarryCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
|
|
|
SDValue performSubCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2016-12-22 04:44:42 +01:00
|
|
|
SDValue performFAddCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
|
|
|
SDValue performFSubCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2015-01-07 00:00:41 +01:00
|
|
|
SDValue performSetCCCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2016-12-22 04:44:42 +01:00
|
|
|
SDValue performCvtF32UByteNCombine(SDNode *N, DAGCombinerInfo &DCI) const;
|
2014-11-14 21:08:52 +01:00
|
|
|
|
2015-07-20 16:28:41 +02:00
|
|
|
bool isLegalFlatAddressingMode(const AddrMode &AM) const;
|
2017-07-29 03:12:31 +02:00
|
|
|
bool isLegalGlobalAddressingMode(const AddrMode &AM) const;
|
2015-08-07 22:18:34 +02:00
|
|
|
bool isLegalMUBUFAddressingMode(const AddrMode &AM) const;
|
2016-02-13 00:45:29 +01:00
|
|
|
|
2017-03-17 21:41:45 +01:00
|
|
|
unsigned isCFIntrinsic(const SDNode *Intr) const;
|
2016-06-25 05:11:28 +02:00
|
|
|
|
|
|
|
void createDebuggerPrologueStackObjects(MachineFunction &MF) const;
|
2016-10-20 20:12:38 +02:00
|
|
|
|
|
|
|
/// \returns True if fixup needs to be emitted for given global value \p GV,
|
|
|
|
/// false otherwise.
|
|
|
|
bool shouldEmitFixup(const GlobalValue *GV) const;
|
|
|
|
|
|
|
|
/// \returns True if GOT relocation needs to be emitted for given global value
|
|
|
|
/// \p GV, false otherwise.
|
|
|
|
bool shouldEmitGOTReloc(const GlobalValue *GV) const;
|
|
|
|
|
|
|
|
/// \returns True if PC-relative relocation needs to be emitted for given
|
|
|
|
/// global value \p GV, false otherwise.
|
|
|
|
bool shouldEmitPCReloc(const GlobalValue *GV) const;
|
|
|
|
|
2012-12-11 22:25:42 +01:00
|
|
|
public:
|
2016-06-24 08:30:11 +02:00
|
|
|
SITargetLowering(const TargetMachine &tm, const SISubtarget &STI);
|
|
|
|
|
|
|
|
const SISubtarget *getSubtarget() const;
|
2014-08-15 19:17:07 +02:00
|
|
|
|
2017-07-26 10:06:58 +02:00
|
|
|
bool isShuffleMaskLegal(ArrayRef<int> /*Mask*/, EVT /*VT*/) const override;
|
2017-03-16 00:15:12 +01:00
|
|
|
|
2016-04-12 16:05:04 +02:00
|
|
|
bool getTgtMemIntrinsic(IntrinsicInfo &, const CallInst &,
|
2017-12-14 23:34:10 +01:00
|
|
|
MachineFunction &MF,
|
2016-04-12 16:05:04 +02:00
|
|
|
unsigned IntrinsicID) const override;
|
|
|
|
|
2017-03-16 00:15:12 +01:00
|
|
|
bool getAddrModeArguments(IntrinsicInst * /*I*/,
|
|
|
|
SmallVectorImpl<Value*> &/*Ops*/,
|
|
|
|
Type *&/*AccessTy*/) const override;
|
2014-10-21 18:25:08 +02:00
|
|
|
|
2015-07-09 04:09:40 +02:00
|
|
|
bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty,
|
2017-07-21 13:59:37 +02:00
|
|
|
unsigned AS,
|
|
|
|
Instruction *I = nullptr) const override;
|
2014-08-15 19:17:07 +02:00
|
|
|
|
2017-07-10 22:25:54 +02:00
|
|
|
bool canMergeStoresTo(unsigned AS, EVT MemVT,
|
|
|
|
const SelectionDAG &DAG) const override;
|
2017-05-24 17:59:09 +02:00
|
|
|
|
2014-07-27 19:46:40 +02:00
|
|
|
bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS,
|
|
|
|
unsigned Align,
|
|
|
|
bool *IsFast) const override;
|
2014-07-03 02:23:43 +02:00
|
|
|
|
2014-07-28 19:49:26 +02:00
|
|
|
EVT getOptimalMemOpType(uint64_t Size, unsigned DstAlign,
|
|
|
|
unsigned SrcAlign, bool IsMemset,
|
|
|
|
bool ZeroMemset,
|
|
|
|
bool MemcpyStrSrc,
|
|
|
|
MachineFunction &MF) const override;
|
|
|
|
|
2015-12-15 21:55:55 +01:00
|
|
|
bool isMemOpUniform(const SDNode *N) const;
|
2016-12-08 18:28:47 +01:00
|
|
|
bool isMemOpHasNoClobberedMemOperand(const SDNode *N) const;
|
2015-12-02 00:04:00 +01:00
|
|
|
bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
2016-12-02 19:12:53 +01:00
|
|
|
bool isCheapAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
2015-12-02 00:04:00 +01:00
|
|
|
|
2014-07-03 02:23:43 +02:00
|
|
|
TargetLoweringBase::LegalizeTypeAction
|
|
|
|
getPreferredVectorAction(EVT VT) const override;
|
2013-03-07 10:03:52 +01:00
|
|
|
|
2014-04-29 09:57:24 +02:00
|
|
|
bool shouldConvertConstantLoadToIntImm(const APInt &Imm,
|
|
|
|
Type *Ty) const override;
|
2014-03-31 21:54:27 +02:00
|
|
|
|
2016-01-20 01:13:22 +01:00
|
|
|
bool isTypeDesirableForOp(unsigned Op, EVT VT) const override;
|
|
|
|
|
2016-06-25 03:59:16 +02:00
|
|
|
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override;
|
|
|
|
|
2017-08-01 21:54:18 +02:00
|
|
|
bool supportSplitCSR(MachineFunction *MF) const override;
|
|
|
|
void initializeSplitCSR(MachineBasicBlock *Entry) const override;
|
|
|
|
void insertCopiesSplitCSR(
|
|
|
|
MachineBasicBlock *Entry,
|
|
|
|
const SmallVectorImpl<MachineBasicBlock *> &Exits) const override;
|
|
|
|
|
2013-03-07 10:03:52 +01:00
|
|
|
SDValue LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv,
|
|
|
|
bool isVarArg,
|
|
|
|
const SmallVectorImpl<ISD::InputArg> &Ins,
|
2016-06-12 17:39:02 +02:00
|
|
|
const SDLoc &DL, SelectionDAG &DAG,
|
2014-04-29 09:57:24 +02:00
|
|
|
SmallVectorImpl<SDValue> &InVals) const override;
|
2013-03-07 10:03:52 +01:00
|
|
|
|
2017-05-17 23:56:25 +02:00
|
|
|
bool CanLowerReturn(CallingConv::ID CallConv,
|
|
|
|
MachineFunction &MF, bool isVarArg,
|
|
|
|
const SmallVectorImpl<ISD::OutputArg> &Outs,
|
|
|
|
LLVMContext &Context) const override;
|
|
|
|
|
|
|
|
SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool IsVarArg,
|
2016-01-13 18:23:04 +01:00
|
|
|
const SmallVectorImpl<ISD::OutputArg> &Outs,
|
2016-06-12 17:39:02 +02:00
|
|
|
const SmallVectorImpl<SDValue> &OutVals, const SDLoc &DL,
|
|
|
|
SelectionDAG &DAG) const override;
|
2016-01-13 18:23:04 +01:00
|
|
|
|
2017-08-04 01:00:29 +02:00
|
|
|
void passSpecialInputs(
|
|
|
|
CallLoweringInfo &CLI,
|
|
|
|
const SIMachineFunctionInfo &Info,
|
|
|
|
SmallVectorImpl<std::pair<unsigned, SDValue>> &RegsToPass,
|
|
|
|
SmallVectorImpl<SDValue> &MemOpChains,
|
|
|
|
SDValue Chain,
|
|
|
|
SDValue StackPtr) const;
|
|
|
|
|
2017-08-01 21:54:18 +02:00
|
|
|
SDValue LowerCallResult(SDValue Chain, SDValue InFlag,
|
|
|
|
CallingConv::ID CallConv, bool isVarArg,
|
|
|
|
const SmallVectorImpl<ISD::InputArg> &Ins,
|
|
|
|
const SDLoc &DL, SelectionDAG &DAG,
|
|
|
|
SmallVectorImpl<SDValue> &InVals, bool isThisReturn,
|
|
|
|
SDValue ThisVal) const;
|
2017-08-11 22:42:08 +02:00
|
|
|
|
|
|
|
bool mayBeEmittedAsTailCall(const CallInst *) const override;
|
|
|
|
|
|
|
|
bool isEligibleForTailCallOptimization(
|
|
|
|
SDValue Callee, CallingConv::ID CalleeCC, bool isVarArg,
|
|
|
|
const SmallVectorImpl<ISD::OutputArg> &Outs,
|
|
|
|
const SmallVectorImpl<SDValue> &OutVals,
|
|
|
|
const SmallVectorImpl<ISD::InputArg> &Ins, SelectionDAG &DAG) const;
|
|
|
|
|
2017-08-01 21:54:18 +02:00
|
|
|
SDValue LowerCall(CallLoweringInfo &CLI,
|
|
|
|
SmallVectorImpl<SDValue> &InVals) const override;
|
|
|
|
|
2016-01-26 05:29:24 +01:00
|
|
|
unsigned getRegisterByName(const char* RegName, EVT VT,
|
|
|
|
SelectionDAG &DAG) const override;
|
|
|
|
|
2016-07-12 23:41:32 +02:00
|
|
|
MachineBasicBlock *splitKillBlock(MachineInstr &MI,
|
|
|
|
MachineBasicBlock *BB) const;
|
|
|
|
|
2016-07-01 00:52:52 +02:00
|
|
|
MachineBasicBlock *
|
|
|
|
EmitInstrWithCustomInserter(MachineInstr &MI,
|
|
|
|
MachineBasicBlock *BB) const override;
|
2017-10-13 23:10:22 +02:00
|
|
|
|
|
|
|
bool hasBitPreservingFPLogic(EVT VT) const override;
|
2015-01-29 20:34:32 +01:00
|
|
|
bool enableAggressiveFMAFusion(EVT VT) const override;
|
2015-07-09 04:09:04 +02:00
|
|
|
EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context,
|
|
|
|
EVT VT) const override;
|
2015-07-09 17:12:23 +02:00
|
|
|
MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override;
|
2014-04-29 09:57:24 +02:00
|
|
|
bool isFMAFasterThanFMulAndFAdd(EVT VT) const override;
|
|
|
|
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
|
2017-01-24 00:09:58 +01:00
|
|
|
void ReplaceNodeResults(SDNode *N, SmallVectorImpl<SDValue> &Results,
|
|
|
|
SelectionDAG &DAG) const override;
|
|
|
|
|
2014-04-29 09:57:24 +02:00
|
|
|
SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
|
|
|
|
SDNode *PostISelFolding(MachineSDNode *N, SelectionDAG &DAG) const override;
|
2016-07-01 00:52:52 +02:00
|
|
|
void AdjustInstrPostInstrSelection(MachineInstr &MI,
|
2014-04-29 09:57:24 +02:00
|
|
|
SDNode *Node) const override;
|
2013-02-26 18:52:23 +01:00
|
|
|
|
2017-04-12 23:58:23 +02:00
|
|
|
SDNode *legalizeTargetIndependentNode(SDNode *Node, SelectionDAG &DAG) const;
|
2014-11-05 20:01:17 +01:00
|
|
|
|
2016-06-12 17:39:02 +02:00
|
|
|
MachineSDNode *wrapAddr64Rsrc(SelectionDAG &DAG, const SDLoc &DL,
|
|
|
|
SDValue Ptr) const;
|
|
|
|
MachineSDNode *buildRSRC(SelectionDAG &DAG, const SDLoc &DL, SDValue Ptr,
|
|
|
|
uint32_t RsrcDword1, uint64_t RsrcDword2And3) const;
|
2015-07-05 21:29:18 +02:00
|
|
|
std::pair<unsigned, const TargetRegisterClass *>
|
|
|
|
getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
|
|
|
|
StringRef Constraint, MVT VT) const override;
|
2015-12-10 03:12:53 +01:00
|
|
|
ConstraintType getConstraintType(StringRef Constraint) const override;
|
2016-06-12 17:39:02 +02:00
|
|
|
SDValue copyToM0(SelectionDAG &DAG, SDValue Chain, const SDLoc &DL,
|
|
|
|
SDValue V) const;
|
2017-07-18 18:44:56 +02:00
|
|
|
|
|
|
|
void finalizeLowering(MachineFunction &MF) const override;
|
2017-11-15 01:45:43 +01:00
|
|
|
|
|
|
|
void computeKnownBitsForFrameIndex(const SDValue Op,
|
|
|
|
KnownBits &Known,
|
|
|
|
const APInt &DemandedElts,
|
|
|
|
const SelectionDAG &DAG,
|
|
|
|
unsigned Depth = 0) const override;
|
2012-12-11 22:25:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
2014-08-13 18:26:38 +02:00
|
|
|
#endif
|