15 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYISELLOWERING_H 16 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYISELLOWERING_H 22 namespace WebAssemblyISD {
26 #define HANDLE_NODETYPE(NODE) NODE, 27 #define HANDLE_MEM_NODETYPE(NODE) 28 #include "WebAssemblyISD.def" 30 #undef HANDLE_NODETYPE 31 #undef HANDLE_MEM_NODETYPE 32 #define HANDLE_NODETYPE(NODE) 33 #define HANDLE_MEM_NODETYPE(NODE) NODE, 34 #include "WebAssemblyISD.def" 35 #undef HANDLE_NODETYPE 36 #undef HANDLE_MEM_NODETYPE 61 const char *getTargetNodeName(
unsigned Opcode)
const override;
62 std::pair<unsigned, const TargetRegisterClass *>
65 bool isCheapToSpeculateCttz()
const override;
66 bool isCheapToSpeculateCtlz()
const override;
70 bool allowsMisalignedMemoryAccesses(
EVT,
unsigned AddrSpace,
unsigned Align,
72 bool *
Fast)
const override;
73 bool isIntDivCheap(EVT VT, AttributeList Attr)
const override;
74 bool isVectorLoadExtDesirable(SDValue ExtVal)
const override;
75 EVT getSetCCResultType(
const DataLayout &DL, LLVMContext &
Context,
76 EVT VT)
const override;
77 bool getTgtMemIntrinsic(IntrinsicInfo &
Info,
const CallInst &
I,
79 unsigned Intrinsic)
const override;
81 SDValue LowerCall(CallLoweringInfo &CLI,
82 SmallVectorImpl<SDValue> &InVals)
const override;
85 const SmallVectorImpl<ISD::OutputArg> &Outs,
86 LLVMContext &
Context)
const override;
87 SDValue LowerReturn(SDValue Chain,
CallingConv::ID CallConv,
bool isVarArg,
88 const SmallVectorImpl<ISD::OutputArg> &Outs,
89 const SmallVectorImpl<SDValue> &OutVals,
const SDLoc &dl,
90 SelectionDAG &DAG)
const override;
93 const SmallVectorImpl<ISD::InputArg> &
Ins,
94 const SDLoc &DL, SelectionDAG &DAG,
95 SmallVectorImpl<SDValue> &InVals)
const override;
97 void ReplaceNodeResults(SDNode *
N, SmallVectorImpl<SDValue> &
Results,
98 SelectionDAG &DAG)
const override;
100 const char *getClearCacheBuiltinName()
const override {
105 SDValue LowerOperation(SDValue
Op, SelectionDAG &DAG)
const override;
106 SDValue LowerFrameIndex(SDValue
Op, SelectionDAG &DAG)
const;
109 SDValue LowerGlobalAddress(SDValue
Op, SelectionDAG &DAG)
const;
110 SDValue LowerExternalSymbol(SDValue
Op, SelectionDAG &DAG)
const;
111 SDValue LowerBR_JT(SDValue
Op, SelectionDAG &DAG)
const;
112 SDValue LowerJumpTable(SDValue
Op, SelectionDAG &DAG)
const;
114 SDValue LowerCopyToReg(SDValue
Op, SelectionDAG &DAG)
const;
115 SDValue LowerIntrinsic(SDValue
Op, SelectionDAG &DAG)
const;
116 SDValue LowerSIGN_EXTEND_INREG(SDValue
Op, SelectionDAG &DAG)
const;
117 SDValue LowerBUILD_VECTOR(SDValue
Op, SelectionDAG &DAG)
const;
119 SDValue LowerSETCC(SDValue
Op, SelectionDAG &DAG)
const;
120 SDValue LowerAccessVectorElement(SDValue
Op, SelectionDAG &DAG)
const;
121 SDValue
LowerShift(SDValue
Op, SelectionDAG &DAG)
const;
124 namespace WebAssembly {
126 const TargetLibraryInfo *libInfo);
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...
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
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.
FastISel * createFastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo)
static SDValue LowerRETURNADDR(SDValue Op, SelectionDAG &DAG, const SparcTargetLowering &TLI, const SparcSubtarget *Subtarget)
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
This is a fast-path instruction selection class that generates poor code and doesn't support illegal ...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Analysis containing CSE Info
static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerVASTART(SDValue Op, SelectionDAG &DAG)
The instances of the Type class are immutable: once they are created, they are never changed...
static SDValue LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG, const SparcSubtarget *Subtarget)
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This struct is a compact representation of a valid (non-zero power of two) alignment.
static SDValue LowerShift(SDNode *N, SelectionDAG &DAG, const ARMSubtarget *ST)
Provides information about what library functions are available for the current target.
static const int FIRST_TARGET_MEMORY_OPCODE
FIRST_TARGET_MEMORY_OPCODE - Target-specific pre-isel operations which do not reference a specific me...
Flags
Flags values. These may be or'd together.
Representation of each machine instruction.
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
Fast - This calling convention attempts to make calls as fast as possible (e.g.
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
This file describes how to lower LLVM code to machine code.