14 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZISELLOWERING_H 15 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZISELLOWERING_H 24 namespace SystemZISD {
378 namespace SystemZICMP {
419 return TypeWidenVector;
426 EVT VT)
const override;
428 bool ForCodeSize)
const override;
429 bool isLegalICmpImmediate(int64_t Imm)
const override;
430 bool isLegalAddImmediate(int64_t Imm)
const override;
434 bool allowsMisalignedMemoryAccesses(
EVT VT,
unsigned AS,
437 bool *
Fast)
const override;
438 bool isTruncateFree(
Type *,
Type *)
const override;
439 bool isTruncateFree(
EVT,
EVT)
const override;
440 const char *getTargetNodeName(
unsigned Opcode)
const override;
441 std::pair<unsigned, const TargetRegisterClass *>
445 getConstraintType(
StringRef Constraint)
const override;
448 const char *constraint)
const override;
449 void LowerAsmOperandForConstraint(
SDValue Op,
450 std::string &Constraint,
451 std::vector<SDValue> &Ops,
455 if (ConstraintCode.
size() == 1) {
456 switch(ConstraintCode[0]) {
504 bool allowTruncateForTailCall(
Type *,
Type *)
const override;
505 bool mayBeEmittedAsTailCall(
const CallInst *CI)
const override;
526 void computeKnownBitsForTargetNode(
const SDValue Op,
528 const APInt &DemandedElts,
530 unsigned Depth = 0)
const override;
533 unsigned ComputeNumSignBitsForTargetNode(
SDValue Op,
534 const APInt &DemandedElts,
536 unsigned Depth)
const override;
557 bool IsSignaling =
false)
const;
560 bool IsSignaling)
const;
594 unsigned Opcode)
const;
602 bool isVectorElementLoad(
SDValue Op)
const;
611 unsigned UnpackHigh)
const;
614 bool canTreatAsByteVector(
EVT VT)
const;
624 bool canLoadStoreByteSwapped(
EVT VT)
const;
652 unsigned StoreOpcode,
unsigned STOCOpcode,
657 bool ClearEven)
const;
660 unsigned BinOpcode,
unsigned BitSize,
661 bool Invert =
false)
const;
664 unsigned CompareOpcode,
665 unsigned KeepOldMask,
666 unsigned BitSize)
const;
670 unsigned Opcode)
const;
672 unsigned Opcode)
const;
675 unsigned Opcode,
bool NoFloat)
const;
678 unsigned Opcode)
const;
689 unsigned SplatBitSize = 0;
690 bool isFP128 =
false;
bool isCheapToSpeculateCtlz() const override
Return true if it is cheap to speculate a call to intrinsic ctlz.
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.
A Module instance is used to store all the information related to an LLVM module. ...
This class represents a function call, abstracting a target machine's calling convention.
Function Alias Analysis Results
unsigned const TargetRegisterInfo * TRI
NodeType
ISD::NodeType enum - This enum defines the target-independent operators for a SelectionDAG.
MVT getVectorIdxTy(const DataLayout &DL) const override
Returns the type to be used for the index operand of: ISD::INSERT_VECTOR_ELT, ISD::EXTRACT_VECTOR_ELT...
unsigned getExceptionSelectorRegister(const Constant *PersonalityFn) const override
If a physical register, this returns the register that receives the exception typeid on entry to a la...
bool useLoadStackGuardNode() const override
Override to support customized stack guard loading.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
static const int FIRST_TARGET_STRICTFP_OPCODE
FIRST_TARGET_STRICTFP_OPCODE - Target-specific pre-isel operations which cannot raise FP exceptions s...
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
This contains information for each constraint that we are lowering.
LLVM_NODISCARD size_t size() const
size - Get the string size.
CondCode
ISD::CondCode enum - These are ordered carefully to make the bitfields below work out...
virtual unsigned getInlineAsmMemConstraint(StringRef ConstraintCode) const
static SDValue lowerVECTOR_SHUFFLE(SDValue Op, const X86Subtarget &Subtarget, SelectionDAG &DAG)
Top-level lowering for x86 vector shuffles.
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.
bool isPCREL(unsigned Opcode)
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.
This struct is a compact representation of a valid (non-zero power of two) alignment.
unsigned getInlineAsmMemConstraint(StringRef ConstraintCode) const override
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
TypeSize getScalarSizeInBits() const
static const int FIRST_TARGET_MEMORY_OPCODE
FIRST_TARGET_MEMORY_OPCODE - Target-specific pre-isel operations which do not reference a specific me...
Represents one node in the SelectionDAG.
Target - Wrapper for Target specific information.
Class for arbitrary precision integers.
A "pseudo-class" with methods for operating on BUILD_VECTORs.
ANY_EXTEND - Used for integer types. The high bits are undefined.
Flags
Flags values. These may be or'd together.
MVT getScalarShiftAmountTy(const DataLayout &, EVT) const override
EVT is not used in-tree, but is used by out-of-tree target.
Representation of each machine instruction.
ISD::NodeType getExtendForAtomicOps() const override
Returns how the platform's atomic operations are extended (ZERO_EXTEND, SIGN_EXTEND, or ANY_EXTEND).
SmallVector< unsigned, 2 > OpVals
void insertSSPDeclarations(Module &M) const override
Inserts necessary declarations for SSP (stack protection) purpose.
LegalizeTypeAction
This enum indicates whether a types are legal for a target, and if not, what action should be used to...
Fast - This calling convention attempts to make calls as fast as possible (e.g.
unsigned getExceptionPointerRegister(const Constant *PersonalityFn) const override
If a physical register, this returns the register that receives the exception address on entry to an ...
TargetLoweringBase::LegalizeTypeAction getPreferredVectorAction(MVT VT) const override
Return the preferred vector type legalization action.
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...
virtual TargetLoweringBase::LegalizeTypeAction getPreferredVectorAction(MVT VT) const
Return the preferred vector type legalization action.
This file describes how to lower LLVM code to machine code.
bool supportSwiftError() const override
Return true if the target supports swifterror attribute.