15#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYISELLOWERING_H
16#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYISELLOWERING_H
40 bool shouldScalarizeBinop(
SDValue VecOp)
const override;
47 std::pair<unsigned, const TargetRegisterClass *>
50 bool isCheapToSpeculateCttz(
Type *Ty)
const override;
51 bool isCheapToSpeculateCtlz(
Type *Ty)
const override;
55 bool allowsMisalignedMemoryAccesses(
EVT,
unsigned AddrSpace,
Align Alignment,
57 unsigned *
Fast)
const override;
58 bool isIntDivCheap(
EVT VT, AttributeList Attr)
const override;
59 bool isVectorLoadExtDesirable(
SDValue ExtVal)
const override;
62 EVT VT)
const override;
63 bool getTgtMemIntrinsic(IntrinsicInfo &
Info,
const CallBase &
I,
68 const APInt &DemandedElts,
70 unsigned Depth)
const override;
73 getPreferredVectorAction(
MVT VT)
const override;
75 EVT VT)
const override;
77 SDValue LowerCall(CallLoweringInfo &CLI,
97 shouldSimplifyDemandedVectorElts(
SDValue Op,
98 const TargetLoweringOpt &TLO)
const override;
133namespace WebAssembly {
135 const TargetLibraryInfo *libInfo);
static SDValue LowerVASTART(SDValue Op, SelectionDAG &DAG)
static SDValue LowerShift(SDNode *N, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG, const ARMSubtarget *ST)
static SDValue LowerFP_TO_INT_SAT(SDValue Op, SelectionDAG &DAG, const ARMSubtarget *Subtarget)
MachineBasicBlock MachineBasicBlock::iterator DebugLoc DL
Function Alias Analysis Results
Analysis containing CSE Info
Register const TargetRegisterInfo * TRI
static SDValue LowerFRAMEADDR(SDValue Op, SelectionDAG &DAG, const SparcSubtarget *Subtarget)
static SDValue LowerRETURNADDR(SDValue Op, SelectionDAG &DAG, const SparcTargetLowering &TLI, const SparcSubtarget *Subtarget)
This file describes how to lower LLVM code to machine code.
static SDValue LowerStore(SDValue Op, const X86Subtarget &Subtarget, SelectionDAG &DAG)
static SDValue LowerLoad(SDValue Op, const X86Subtarget &Subtarget, SelectionDAG &DAG)
static SDValue LowerEXTEND_VECTOR_INREG(SDValue Op, const X86Subtarget &Subtarget, SelectionDAG &DAG)
Class for arbitrary precision integers.
an instruction that atomically reads a memory location, combines it with another value,...
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
A parsed version of the target data layout string in and methods for querying it.
This is a fast-path instruction selection class that generates poor code and doesn't support illegal ...
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
This is an important class for using LLVM in a threaded context.
Representation of each machine instruction.
Flags
Flags values. These may be or'd together.
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
StringRef - Represent a constant reference to a string, i.e.
Provides information about what library functions are available for the current target.
LegalizeTypeAction
This enum indicates whether a types are legal for a target, and if not, what action should be used to...
AtomicExpansionKind
Enum that specifies what an atomic load/AtomicRMWInst is expanded to, if at all.
TargetLowering(const TargetLowering &)=delete
Primary interface to the complete machine description for the target machine.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
The instances of the Type class are immutable: once they are created, they are never changed.
WebAssemblyTargetLowering(const TargetMachine &TM, const WebAssemblySubtarget &STI)
bool softPromoteHalfType() const override
MVT getPointerTy(const DataLayout &DL, uint32_t AS=0) const override
Return the pointer type for the given address space, defaults to the pointer type from the data layou...
MVT getPointerMemTy(const DataLayout &DL, uint32_t AS=0) const override
Return the in-memory pointer type for the given address space, defaults to the pointer type from the ...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
@ Fast
Attempts to make calls as fast as possible (e.g.
This namespace contains an enum with a value for every intrinsic/builtin function known by LLVM.
FastISel * createFastISel(FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo)
This is an optimization pass for GlobalISel generic memory operations.
DWARFExpression::Operation Op
This struct is a compact representation of a valid (non-zero power of two) alignment.