14 #ifndef LLVM_LIB_TARGET_RISCV_RISCVISELLOWERING_H 15 #define LLVM_LIB_TARGET_RISCV_RISCVISELLOWERING_H 67 unsigned Intrinsic)
const override;
71 bool isLegalICmpImmediate(int64_t Imm)
const override;
72 bool isLegalAddImmediate(int64_t Imm)
const override;
73 bool isTruncateFree(
Type *SrcTy,
Type *DstTy)
const override;
74 bool isTruncateFree(
EVT SrcVT,
EVT DstVT)
const override;
75 bool isZExtFree(
SDValue Val,
EVT VT2)
const override;
76 bool isSExtCheaperThanZExt(
EVT SrcVT,
EVT DstVT)
const override;
78 bool hasBitPreservingFPLogic(
EVT VT)
const override;
87 unsigned ComputeNumSignBitsForTargetNode(
SDValue Op,
88 const APInt &DemandedElts,
90 unsigned Depth)
const override;
93 const char *getTargetNodeName(
unsigned Opcode)
const override;
97 unsigned getInlineAsmMemConstraint(
StringRef ConstraintCode)
const override;
99 std::pair<unsigned, const TargetRegisterClass *>
103 void LowerAsmOperandForConstraint(
SDValue Op, std::string &Constraint,
104 std::vector<SDValue> &Ops,
112 EVT VT)
const override;
119 return isa<LoadInst>(
I) || isa<StoreInst>(I);
135 bool isDesirableToCommuteWithShift(
const SDNode *N,
141 getExceptionPointerRegister(
const Constant *PersonalityFn)
const override;
146 getExceptionSelectorRegister(
const Constant *PersonalityFn)
const override;
148 bool shouldExtendTypeInLibCall(
EVT Type)
const override;
154 Register getRegisterByName(
const char *RegName,
LLT VT,
180 bool shouldConvertConstantLoadToIntImm(
const APInt &Imm,
181 Type *Ty)
const override {
185 template <
class NodeTy>
192 bool shouldConsiderGEPOffsetSplit()
const override {
return true; }
204 bool isEligibleForTailCallOptimization(
210 virtual Value *emitMaskedAtomicRMWIntrinsic(
223 void validateCCReservedRegs(
BUILTIN_OP_END - This must be the last enum value in this list.
A parsed version of the target data layout string in and methods for querying it. ...
This represents an addressing mode of: BaseGV + BaseOffs + BaseReg + Scale*ScaleReg If BaseGV is null...
This class represents lattice values for constants.
An instruction that atomically checks whether a specified value is in a memory location, and, if it is, stores a new value there.
bool isScalarInteger() const
Return true if this is an integer, but not a vector.
This class represents a function call, abstracting a target machine's calling convention.
Function Alias Analysis Results
unsigned const TargetRegisterInfo * TRI
an instruction that atomically reads a memory location, combines it with another value, and then stores the result back.
AtomicExpansionKind
Enum that specifies what an atomic load/AtomicRMWInst is expanded to, if at all.
bool shouldExpandShift(SelectionDAG &DAG, SDNode *N) const override
Return true if SHIFT instructions should be expanded to SHIFT_PARTS instructions, and false if a libr...
NodeType
ISD::NodeType enum - This enum defines the target-independent operators for a SelectionDAG.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
ISD::NodeType getExtendForAtomicOps() const override
Returns how the platform's atomic operations are extended (ZERO_EXTEND, SIGN_EXTEND, or ANY_EXTEND).
AtomicOrdering
Atomic ordering for LLVM's memory model.
bool convertSetCCLogicToBitwiseLogic(EVT VT) const override
Use bitwise logic to make pairs of compares more efficient.
MachineFunction & getMachineFunction() const
bool shouldInsertFencesForAtomic(const Instruction *I) const override
Whether AtomicExpandPass should automatically insert fences and reduce ordering for this atomic...
Analysis containing CSE Info
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
This is an important base class in LLVM.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This structure contains all information that is necessary for lowering calls.
CCState - This class holds information needed while lowering arguments and return values...
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
const Function & getFunction() const
Return the LLVM function that this machine code represents.
Class for arbitrary precision integers.
Representation of each machine instruction.
bool hasMinSize() const
Optimize this function for minimum size (-Oz).
LLVM Value Representation.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
Primary interface to the complete machine description for the target machine.
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...
Wrapper class representing virtual and physical registers.
This file describes how to lower LLVM code to machine code.