15 #ifndef LLVM_LIB_TARGET_RISCV_RISCVISELLOWERING_H 16 #define LLVM_LIB_TARGET_RISCV_RISCVISELLOWERING_H 48 unsigned Intrinsic)
const override;
52 bool isLegalICmpImmediate(int64_t Imm)
const override;
53 bool isLegalAddImmediate(int64_t Imm)
const override;
54 bool isTruncateFree(
Type *SrcTy,
Type *DstTy)
const override;
55 bool isTruncateFree(
EVT SrcVT,
EVT DstVT)
const override;
56 bool isZExtFree(
SDValue Val,
EVT VT2)
const override;
57 bool isSExtCheaperThanZExt(
EVT SrcVT,
EVT DstVT)
const override;
65 const char *getTargetNodeName(
unsigned Opcode)
const override;
67 std::pair<unsigned, const TargetRegisterClass *>
76 EVT VT)
const override;
79 return isa<LoadInst>(
I) || isa<StoreInst>(I);
109 bool shouldConvertConstantLoadToIntImm(
const APInt &Imm,
110 Type *Ty)
const override {
121 bool IsEligibleForTailCallOptimization(
CCState &CCInfo,
127 virtual Value *emitMaskedAtomicRMWIntrinsic(
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.
This class represents a function call, abstracting a target machine's calling convention.
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.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
This provides a uniform API for creating instructions and inserting them into a basic block: either a...
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
AtomicOrdering
Atomic ordering for LLVM's memory model.
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.
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.
Class for arbitrary precision integers.
Representation of each machine instruction.
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...
This file describes how to lower LLVM code to machine code.