LLVM  5.0.0
AMDGPUISelLowering.h
Go to the documentation of this file.
1 //===-- AMDGPUISelLowering.h - AMDGPU Lowering Interface --------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 /// \brief Interface definition of the TargetLowering class that is common
12 /// to all AMD GPUs.
13 //
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUISELLOWERING_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUISELLOWERING_H
18 
19 #include "AMDGPU.h"
22 
23 namespace llvm {
24 
25 class AMDGPUMachineFunction;
26 class AMDGPUSubtarget;
27 class MachineRegisterInfo;
28 
30 private:
31  /// \returns AMDGPUISD::FFBH_U32 node if the incoming \p Op may have been
32  /// legalized from a smaller type VT. Need to match pre-legalized type because
33  /// the generic legalization inserts the add/sub between the select and
34  /// compare.
35  SDValue getFFBH_U32(SelectionDAG &DAG, SDValue Op, const SDLoc &DL) const;
36 
37 public:
38  static bool isOrEquivalentToAdd(SelectionDAG &DAG, SDValue Op);
39 
40 protected:
43 
46  /// \brief Split a vector store into multiple scalar stores.
47  /// \returns The resulting chain.
48 
49  SDValue LowerFREM(SDValue Op, SelectionDAG &DAG) const;
50  SDValue LowerFCEIL(SDValue Op, SelectionDAG &DAG) const;
51  SDValue LowerFTRUNC(SDValue Op, SelectionDAG &DAG) const;
52  SDValue LowerFRINT(SDValue Op, SelectionDAG &DAG) const;
54 
56  SDValue LowerFROUND64(SDValue Op, SelectionDAG &DAG) const;
57  SDValue LowerFROUND(SDValue Op, SelectionDAG &DAG) const;
58  SDValue LowerFFLOOR(SDValue Op, SelectionDAG &DAG) const;
59 
60  SDValue LowerCTLZ(SDValue Op, SelectionDAG &DAG) const;
61 
62  SDValue LowerINT_TO_FP32(SDValue Op, SelectionDAG &DAG, bool Signed) const;
63  SDValue LowerINT_TO_FP64(SDValue Op, SelectionDAG &DAG, bool Signed) const;
66 
67  SDValue LowerFP64_TO_INT(SDValue Op, SelectionDAG &DAG, bool Signed) const;
71 
73 
74 protected:
75  bool shouldCombineMemoryType(EVT VT) const;
80 
82  unsigned Opc, SDValue LHS,
83  uint32_t ValLo, uint32_t ValHi) const;
91  SDValue performCtlzCombine(const SDLoc &SL, SDValue Cond, SDValue LHS,
92  SDValue RHS, DAGCombinerInfo &DCI) const;
96 
98 
100  SelectionDAG &DAG) const;
101 
102  /// Return 64-bit value Op as two 32-bit integers.
103  std::pair<SDValue, SDValue> split64BitValue(SDValue Op,
104  SelectionDAG &DAG) const;
105  SDValue getLoHalf64(SDValue Op, SelectionDAG &DAG) const;
106  SDValue getHiHalf64(SDValue Op, SelectionDAG &DAG) const;
107 
108  /// \brief Split a vector load into 2 loads of half the vector.
110 
111  /// \brief Split a vector store into 2 stores of half the vector.
113 
114  SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;
115  SDValue LowerSDIVREM(SDValue Op, SelectionDAG &DAG) const;
116  SDValue LowerUDIVREM(SDValue Op, SelectionDAG &DAG) const;
117  SDValue LowerDIVREM24(SDValue Op, SelectionDAG &DAG, bool sign) const;
118  void LowerUDIVREM64(SDValue Op, SelectionDAG &DAG,
121  const SmallVectorImpl<ISD::InputArg> &Ins) const;
122 public:
123  AMDGPUTargetLowering(const TargetMachine &TM, const AMDGPUSubtarget &STI);
124 
125  bool mayIgnoreSignedZero(SDValue Op) const {
126  if (getTargetMachine().Options.NoSignedZerosFPMath)
127  return true;
128 
129  const auto Flags = Op.getNode()->getFlags();
130  if (Flags.isDefined())
131  return Flags.hasNoSignedZeros();
132 
133  return false;
134  }
135 
136  static bool allUsesHaveSourceMods(const SDNode *N,
137  unsigned CostThreshold = 4);
138  bool isFAbsFree(EVT VT) const override;
139  bool isFNegFree(EVT VT) const override;
140  bool isTruncateFree(EVT Src, EVT Dest) const override;
141  bool isTruncateFree(Type *Src, Type *Dest) const override;
142 
143  bool isZExtFree(Type *Src, Type *Dest) const override;
144  bool isZExtFree(EVT Src, EVT Dest) const override;
145  bool isZExtFree(SDValue Val, EVT VT2) const override;
146 
147  bool isNarrowingProfitable(EVT VT1, EVT VT2) const override;
148 
149  MVT getVectorIdxTy(const DataLayout &) const override;
150  bool isSelectSupported(SelectSupportKind) const override;
151 
152  bool isFPImmLegal(const APFloat &Imm, EVT VT) const override;
153  bool ShouldShrinkFPConstant(EVT VT) const override;
155  ISD::LoadExtType ExtType,
156  EVT ExtVT) const override;
157 
158  bool isLoadBitCastBeneficial(EVT, EVT) const final;
159 
161  unsigned NumElem,
162  unsigned AS) const override;
163  bool aggressivelyPreferBuildVectorSources(EVT VecVT) const override;
164  bool isCheapToSpeculateCttz() const override;
165  bool isCheapToSpeculateCtlz() const override;
166 
167  static CCAssignFn *CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg);
168  static CCAssignFn *CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg);
169 
170  SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg,
171  const SmallVectorImpl<ISD::OutputArg> &Outs,
172  const SmallVectorImpl<SDValue> &OutVals, const SDLoc &DL,
173  SelectionDAG &DAG) const override;
174  SDValue LowerCall(CallLoweringInfo &CLI,
175  SmallVectorImpl<SDValue> &InVals) const override;
176 
178  SelectionDAG &DAG) const;
179 
180  SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override;
181  SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override;
182  void ReplaceNodeResults(SDNode * N,
184  SelectionDAG &DAG) const override;
185 
186  SDValue combineFMinMaxLegacy(const SDLoc &DL, EVT VT, SDValue LHS,
187  SDValue RHS, SDValue True, SDValue False,
188  SDValue CC, DAGCombinerInfo &DCI) const;
189 
190  const char* getTargetNodeName(unsigned Opcode) const override;
191 
192  bool isFsqrtCheap(SDValue Operand, SelectionDAG &DAG) const override {
193  return true;
194  }
196  int &RefinementSteps, bool &UseOneConstNR,
197  bool Reciprocal) const override;
199  int &RefinementSteps) const override;
200 
202  SelectionDAG &DAG) const = 0;
203 
204  /// \brief Determine which of the bits specified in \p Mask are known to be
205  /// either zero or one and return them in the \p KnownZero and \p KnownOne
206  /// bitsets.
208  KnownBits &Known,
209  const APInt &DemandedElts,
210  const SelectionDAG &DAG,
211  unsigned Depth = 0) const override;
212 
213  unsigned ComputeNumSignBitsForTargetNode(SDValue Op, const APInt &DemandedElts,
214  const SelectionDAG &DAG,
215  unsigned Depth = 0) const override;
216 
217  /// \brief Helper function that adds Reg to the LiveIn list of the DAG's
218  /// MachineFunction.
219  ///
220  /// \returns a RegisterSDNode representing Reg if \p RawReg is true, otherwise
221  /// a copy from the register.
223  const TargetRegisterClass *RC,
224  unsigned Reg, EVT VT,
225  const SDLoc &SL,
226  bool RawReg = false) const;
228  const TargetRegisterClass *RC,
229  unsigned Reg, EVT VT) const {
230  return CreateLiveInRegister(DAG, RC, Reg, VT, SDLoc(DAG.getEntryNode()));
231  }
232 
233  // Returns the raw live in register rather than a copy from it.
235  const TargetRegisterClass *RC,
236  unsigned Reg, EVT VT) const {
237  return CreateLiveInRegister(DAG, RC, Reg, VT, SDLoc(DAG.getEntryNode()), true);
238  }
239 
244  };
245 
246  /// \brief Helper function that returns the byte offset of the given
247  /// type of implicit parameter.
249  const ImplicitParameter Param) const;
250 
252  return AMDGPUASI;
253  }
254 
255  MVT getFenceOperandTy(const DataLayout &DL) const override {
256  return MVT::i32;
257  }
258 };
259 
260 namespace AMDGPUISD {
261 
262 enum NodeType : unsigned {
263  // AMDIL ISD Opcodes
265  UMUL, // 32bit unsigned multiplication
267  // End AMDIL ISD Opcodes
268 
269  // Function call.
272 
273  // Masked control flow nodes.
274  IF,
277 
278  // A uniform kernel return that terminates the wavefront.
280 
281  // Return to a shader part's epilog code.
283 
284  // Return with values from a non-entry function.
286 
289 
290  /// CLAMP value between 0.0 and 1.0. NaN clamped to 0, following clamp output
291  /// modifier behavior with dx10_enable.
293 
294  // This is SETCC with the full mask result which is used for a compare with a
295  // result bit per item in the wavefront.
298  // FP ops with input and output chain.
301 
302  // SIN_HW, COS_HW - f32 for SI, 1 ULP max error, valid from -100 pi to 100 pi.
303  // Denormals handled on some parts.
321  // For emitting ISD::FMAD when f32 denormals are enabled because mac/mad is
322  // treated as an illegal operation.
324  TRIG_PREOP, // 1 ULP max error for f64
325 
326  // RCP, RSQ - For f32, 1 ULP max error, no denormal handling.
327  // For f64, max error 2^29 ULP, handles denormals.
339  BFE_U32, // Extract range of bits with zero extension to 32-bits.
340  BFE_I32, // Extract range of bits with sign extension to 32-bits.
341  BFI, // (src0 & src1) | (~src0 & src2)
342  BFM, // Insert a range of bits into a 32-bit word.
343  FFBH_U32, // ctlz with -1 if input is zero.
354  EXPORT, // exp on SI+
355  EXPORT_DONE, // exp on SI+ with done bit set
364 
365  // These cvt_f32_ubyte* nodes need to remain consecutive and in order.
370 
371  // Convert two float 32 numbers into a single register holding two packed f16
372  // with round to zero.
374 
375  // Same as the standard node, except the high bits of the resulting integer
376  // are known 0.
378 
379  // Wrapper around fp16 results that are known to zero the high bits.
381 
382  /// This node is for VLIW targets and it is used to represent a vector
383  /// that is stored in consecutive registers with the same channel.
384  /// For example:
385  /// |X |Y|Z|W|
386  /// T0|v.x| | | |
387  /// T1|v.y| | | |
388  /// T2|v.z| | | |
389  /// T3|v.w| | | |
391  /// Pointer to the start of the shader's constant data.
415 };
416 
417 
418 } // End namespace AMDGPUISD
419 
420 } // End namespace llvm
421 
422 #endif
unsigned ComputeNumSignBitsForTargetNode(SDValue Op, const APInt &DemandedElts, const SelectionDAG &DAG, unsigned Depth=0) const override
This method can be implemented by targets that want to expose additional information about sign bits ...
SDValue LowerReturn(SDValue Chain, CallingConv::ID CallConv, bool isVarArg, const SmallVectorImpl< ISD::OutputArg > &Outs, const SmallVectorImpl< SDValue > &OutVals, const SDLoc &DL, SelectionDAG &DAG) const override
This hook must be implemented to lower outgoing return values, described by the Outs array...
BUILTIN_OP_END - This must be the last enum value in this list.
Definition: ISDOpcodes.h:827
A parsed version of the target data layout string in and methods for querying it. ...
Definition: DataLayout.h:109
SDValue performLoadCombine(SDNode *N, DAGCombinerInfo &DCI) const
LLVMContext & Context
SDValue PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const override
This method will be invoked for all target nodes and for any target-independent nodes that the target...
void LowerUDIVREM64(SDValue Op, SelectionDAG &DAG, SmallVectorImpl< SDValue > &Results) const
bool shouldReduceLoadWidth(SDNode *Load, ISD::LoadExtType ExtType, EVT ExtVT) const override
SDValue getHiHalf64(SDValue Op, SelectionDAG &DAG) const
const TargetMachine & getTargetMachine() const
SDValue performMulhuCombine(SDNode *N, DAGCombinerInfo &DCI) const
virtual SDValue LowerGlobalAddress(AMDGPUMachineFunction *MFI, SDValue Op, SelectionDAG &DAG) const
SDValue LowerFRINT(SDValue Op, SelectionDAG &DAG) const
SDValue LowerINT_TO_FP64(SDValue Op, SelectionDAG &DAG, bool Signed) const
DataLayout DL
SDValue LowerFP_TO_SINT(SDValue Op, SelectionDAG &DAG) const
SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG) const
SDValue LowerUINT_TO_FP(SDValue Op, SelectionDAG &DAG) const
SDValue LowerCTLZ(SDValue Op, SelectionDAG &DAG) const
bool CCAssignFn(unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
CCAssignFn - This function assigns a location for Val, updating State to reflect the change...
Function Alias Analysis Results
virtual SDNode * PostISelFolding(MachineSDNode *N, SelectionDAG &DAG) const =0
SDValue getLoHalf64(SDValue Op, SelectionDAG &DAG) const
SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const
SDValue LowerCall(CallLoweringInfo &CLI, SmallVectorImpl< SDValue > &InVals) const override
This hook must be implemented to lower calls into the specified DAG.
void computeKnownBitsForTargetNode(const SDValue Op, KnownBits &Known, const APInt &DemandedElts, const SelectionDAG &DAG, unsigned Depth=0) const override
Determine which of the bits specified in Mask are known to be either zero or one and return them in t...
SDValue performMulCombine(SDNode *N, DAGCombinerInfo &DCI) const
CLAMP value between 0.0 and 1.0.
std::pair< SDValue, SDValue > split64BitValue(SDValue Op, SelectionDAG &DAG) const
Return 64-bit value Op as two 32-bit integers.
SDValue performSrlCombine(SDNode *N, DAGCombinerInfo &DCI) const
SDValue splitBinaryBitConstantOpImpl(DAGCombinerInfo &DCI, const SDLoc &SL, unsigned Opc, SDValue LHS, uint32_t ValLo, uint32_t ValHi) const
Split the 64-bit value LHS into two 32-bit components, and perform the binary operation Opc to it wit...
SDValue LowerDIVREM24(SDValue Op, SelectionDAG &DAG, bool sign) const
bool storeOfVectorConstantIsCheap(EVT MemVT, unsigned NumElem, unsigned AS) const override
Return true if it is expected to be cheaper to do a store of a non-zero vector constant with the give...
bool isCheapToSpeculateCttz() const override
Return true if it is cheap to speculate a call to intrinsic cttz.
SDValue LowerUDIVREM(SDValue Op, SelectionDAG &DAG) const
SDValue LowerFP_TO_UINT(SDValue Op, SelectionDAG &DAG) const
Pointer to the start of the shader's constant data.
OpenCL uses address spaces to differentiate between various memory regions on the hardware...
Definition: AMDGPU.h:164
SDValue performMulLoHi24Combine(SDNode *N, DAGCombinerInfo &DCI) const
bool isFsqrtCheap(SDValue Operand, SelectionDAG &DAG) const override
Return true if SQRT(X) shouldn't be replaced with X*RSQRT(X).
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: APFloat.h:42
SDValue getRecipEstimate(SDValue Operand, SelectionDAG &DAG, int Enabled, int &RefinementSteps) const override
Return a reciprocal estimate value for the input operand.
Reg
All possible values of the reg field in the ModR/M byte.
SDValue combineFMinMaxLegacy(const SDLoc &DL, EVT VT, SDValue LHS, SDValue RHS, SDValue True, SDValue False, SDValue CC, DAGCombinerInfo &DCI) const
Generate Min/Max node.
SDValue LowerFROUND32_16(SDValue Op, SelectionDAG &DAG) const
SDValue LowerFROUND(SDValue Op, SelectionDAG &DAG) const
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override
This callback is invoked for operations that are unsupported by the target, which are registered to u...
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
void ReplaceNodeResults(SDNode *N, SmallVectorImpl< SDValue > &Results, SelectionDAG &DAG) const override
This callback is invoked when a node result type is illegal for the target, and the operation was reg...
bool isCheapToSpeculateCtlz() const override
Return true if it is cheap to speculate a call to intrinsic ctlz.
const AMDGPUSubtarget * Subtarget
SDValue performSelectCombine(SDNode *N, DAGCombinerInfo &DCI) const
This node is for VLIW targets and it is used to represent a vector that is stored in consecutive regi...
MVT getFenceOperandTy(const DataLayout &DL) const override
Return the type for operands of fence.
SDValue performAssertSZExtCombine(SDNode *N, DAGCombinerInfo &DCI) const
SDValue LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const
SDValue LowerFP_TO_FP16(SDValue Op, SelectionDAG &DAG) const
SDNode * getNode() const
get the SDNode which holds the desired result
SDValue LowerFCEIL(SDValue Op, SelectionDAG &DAG) const
SDValue LowerFREM(SDValue Op, SelectionDAG &DAG) const
Split a vector store into multiple scalar stores.
Machine Value Type.
SDValue performFNegCombine(SDNode *N, DAGCombinerInfo &DCI) const
The instances of the Type class are immutable: once they are created, they are never changed...
Definition: Type.h:46
This is an important class for using LLVM in a threaded context.
Definition: LLVMContext.h:68
SDValue performSraCombine(SDNode *N, DAGCombinerInfo &DCI) const
SDValue performShlCombine(SDNode *N, DAGCombinerInfo &DCI) const
const SDNodeFlags getFlags() const
LoadExtType
LoadExtType enum - This enum defines the three variants of LOADEXT (load with extension).
Definition: ISDOpcodes.h:884
bool shouldCombineMemoryType(EVT VT) const
const char * getTargetNodeName(unsigned Opcode) const override
This method returns the name of a target specific DAG node.
SDValue performFAbsCombine(SDNode *N, DAGCombinerInfo &DCI) const
static bool isOrEquivalentToAdd(SelectionDAG &DAG, SDValue Op)
bool isLoadBitCastBeneficial(EVT, EVT) const final
Return true if the following transform is beneficial: fold (conv (load x)) -> (load (conv*)x) On archi...
Extended Value Type.
Definition: ValueTypes.h:34
SDValue LowerFFLOOR(SDValue Op, SelectionDAG &DAG) const
bool isFPImmLegal(const APFloat &Imm, EVT VT) const override
Returns true if the target can instruction select the specified FP immediate natively.
SDValue LowerSIGN_EXTEND_INREG(SDValue Op, SelectionDAG &DAG) const
static CCAssignFn * CCAssignFnForCall(CallingConv::ID CC, bool IsVarArg)
Selects the correct CCAssignFn for a given CallingConvention value.
SDValue LowerFNEARBYINT(SDValue Op, SelectionDAG &DAG) const
SDValue SplitVectorStore(SDValue Op, SelectionDAG &DAG) const
Split a vector store into 2 stores of half the vector.
SDValue LowerSINT_TO_FP(SDValue Op, SelectionDAG &DAG) const
CCState - This class holds information needed while lowering arguments and return values...
SDValue SplitVectorLoad(SDValue Op, SelectionDAG &DAG) const
Split a vector load into 2 loads of half the vector.
bool isFAbsFree(EVT VT) const override
Return true if an fabs operation is free to the point where it is never worthwhile to replace it with...
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Definition: SelectionDAG.h:209
An SDNode that represents everything that will be needed to construct a MachineInstr.
const size_t N
SDValue performCtlzCombine(const SDLoc &SL, SDValue Cond, SDValue LHS, SDValue RHS, DAGCombinerInfo &DCI) const
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
static const int FIRST_TARGET_MEMORY_OPCODE
FIRST_TARGET_MEMORY_OPCODE - Target-specific pre-isel operations which do not reference a specific me...
Definition: ISDOpcodes.h:834
Represents one node in the SelectionDAG.
SDValue LowerFTRUNC(SDValue Op, SelectionDAG &DAG) const
static bool allUsesHaveSourceMods(const SDNode *N, unsigned CostThreshold=4)
Class for arbitrary precision integers.
Definition: APInt.h:69
SDValue CreateLiveInRegisterRaw(SelectionDAG &DAG, const TargetRegisterClass *RC, unsigned Reg, EVT VT) const
SDValue LowerINT_TO_FP32(SDValue Op, SelectionDAG &DAG, bool Signed) const
static CCAssignFn * CCAssignFnForReturn(CallingConv::ID CC, bool IsVarArg)
SDValue LowerFP64_TO_INT(SDValue Op, SelectionDAG &DAG, bool Signed) const
static std::vector< std::string > Flags
Definition: FlagsTest.cpp:8
bool isNarrowingProfitable(EVT VT1, EVT VT2) const override
Return true if it's profitable to narrow operations of type VT1 to VT2.
SelectSupportKind
Enum that describes what type of support for selects the target has.
SDValue performMulhsCombine(SDNode *N, DAGCombinerInfo &DCI) const
bool isTruncateFree(EVT Src, EVT Dest) const override
AMDGPUTargetLowering(const TargetMachine &TM, const AMDGPUSubtarget &STI)
void analyzeFormalArgumentsCompute(CCState &State, const SmallVectorImpl< ISD::InputArg > &Ins) const
The SelectionDAGBuilder will automatically promote function arguments with illegal types...
SDValue performStoreCombine(SDNode *N, DAGCombinerInfo &DCI) const
bool isFNegFree(EVT VT) const override
Return true if an fneg operation is free to the point where it is never worthwhile to replace it with...
SDValue LowerFROUND64(SDValue Op, SelectionDAG &DAG) const
aarch64 promote const
SDValue CreateLiveInRegister(SelectionDAG &DAG, const TargetRegisterClass *RC, unsigned Reg, EVT VT, const SDLoc &SL, bool RawReg=false) const
Helper function that adds Reg to the LiveIn list of the DAG's MachineFunction.
static EVT getEquivalentMemType(LLVMContext &Context, EVT VT)
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:56
bool isZExtFree(Type *Src, Type *Dest) const override
Return true if any actual instruction that defines a value of type FromTy implicitly zero-extends the...
uint32_t getImplicitParameterOffset(const AMDGPUMachineFunction *MFI, const ImplicitParameter Param) const
Helper function that returns the byte offset of the given type of implicit parameter.
SDValue LowerEXTRACT_SUBVECTOR(SDValue Op, SelectionDAG &DAG) const
bool aggressivelyPreferBuildVectorSources(EVT VecVT) const override
SDValue getEntryNode() const
Return the token chain corresponding to the entry of the function.
Definition: SelectionDAG.h:434
SDValue LowerSDIVREM(SDValue Op, SelectionDAG &DAG) const
bool ShouldShrinkFPConstant(EVT VT) const override
If true, then instruction selection should seek to shrink the FP constant of the specified type to a ...
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...
MVT getVectorIdxTy(const DataLayout &) const override
Returns the type to be used for the index operand of: ISD::INSERT_VECTOR_ELT, ISD::EXTRACT_VECTOR_ELT...
SDValue getSqrtEstimate(SDValue Operand, SelectionDAG &DAG, int Enabled, int &RefinementSteps, bool &UseOneConstNR, bool Reciprocal) const override
Hooks for building estimates in place of slower divisions and square roots.
SDValue CreateLiveInRegister(SelectionDAG &DAG, const TargetRegisterClass *RC, unsigned Reg, EVT VT) const
bool mayIgnoreSignedZero(SDValue Op) const
This file describes how to lower LLVM code to machine code.
bool isSelectSupported(SelectSupportKind) const override
SDValue performClampCombine(SDNode *N, DAGCombinerInfo &DCI) const