67 "jump-is-expensive",
cl::init(
false),
68 cl::desc(
"Do not create extra branches to split comparison logic."),
73 cl::desc(
"Set minimum number of entries to use a jump table."));
77 cl::desc(
"Set maximum size of jump tables."));
82 cl::desc(
"Minimum density for building a jump table in " 83 "a normal function"));
88 cl::desc(
"Minimum density for building a jump table in " 89 "an optsize function"));
96 cl::desc(
"Don't mutate strict-float node to a legalize node"),
120 "min-predictable-branch",
cl::init(99),
121 cl::desc(
"Minimum percentage (0-100) that a condition must be either true " 122 "or false to assume that the condition is predictable"),
125 void TargetLoweringBase::InitLibcalls(
const Triple &
TT) {
126 #define HANDLE_LIBCALL(code, name) \ 127 setLibcallName(RTLIB::code, name); 128 #include "llvm/IR/RuntimeLibcalls.def" 129 #undef HANDLE_LIBCALL 131 for (
int LC = 0; LC < RTLIB::UNKNOWN_LIBCALL; ++LC)
223 return FPEXT_F16_F32;
226 return FPEXT_F32_F64;
228 return FPEXT_F32_F128;
230 return FPEXT_F32_PPCF128;
233 return FPEXT_F64_F128;
235 return FPEXT_F64_PPCF128;
238 return FPEXT_F80_F128;
241 return UNKNOWN_LIBCALL;
249 return FPROUND_F32_F16;
251 return FPROUND_F64_F16;
253 return FPROUND_F80_F16;
255 return FPROUND_F128_F16;
257 return FPROUND_PPCF128_F16;
260 return FPROUND_F64_F32;
262 return FPROUND_F80_F32;
264 return FPROUND_F128_F32;
266 return FPROUND_PPCF128_F32;
269 return FPROUND_F80_F64;
271 return FPROUND_F128_F64;
273 return FPROUND_PPCF128_F64;
276 return FPROUND_F128_F80;
279 return UNKNOWN_LIBCALL;
287 return FPTOSINT_F32_I32;
289 return FPTOSINT_F32_I64;
291 return FPTOSINT_F32_I128;
294 return FPTOSINT_F64_I32;
296 return FPTOSINT_F64_I64;
298 return FPTOSINT_F64_I128;
301 return FPTOSINT_F80_I32;
303 return FPTOSINT_F80_I64;
305 return FPTOSINT_F80_I128;
308 return FPTOSINT_F128_I32;
310 return FPTOSINT_F128_I64;
312 return FPTOSINT_F128_I128;
315 return FPTOSINT_PPCF128_I32;
317 return FPTOSINT_PPCF128_I64;
319 return FPTOSINT_PPCF128_I128;
321 return UNKNOWN_LIBCALL;
329 return FPTOUINT_F32_I32;
331 return FPTOUINT_F32_I64;
333 return FPTOUINT_F32_I128;
336 return FPTOUINT_F64_I32;
338 return FPTOUINT_F64_I64;
340 return FPTOUINT_F64_I128;
343 return FPTOUINT_F80_I32;
345 return FPTOUINT_F80_I64;
347 return FPTOUINT_F80_I128;
350 return FPTOUINT_F128_I32;
352 return FPTOUINT_F128_I64;
354 return FPTOUINT_F128_I128;
357 return FPTOUINT_PPCF128_I32;
359 return FPTOUINT_PPCF128_I64;
361 return FPTOUINT_PPCF128_I128;
363 return UNKNOWN_LIBCALL;
371 return SINTTOFP_I32_F32;
373 return SINTTOFP_I32_F64;
375 return SINTTOFP_I32_F80;
377 return SINTTOFP_I32_F128;
379 return SINTTOFP_I32_PPCF128;
382 return SINTTOFP_I64_F32;
384 return SINTTOFP_I64_F64;
386 return SINTTOFP_I64_F80;
388 return SINTTOFP_I64_F128;
390 return SINTTOFP_I64_PPCF128;
393 return SINTTOFP_I128_F32;
395 return SINTTOFP_I128_F64;
397 return SINTTOFP_I128_F80;
399 return SINTTOFP_I128_F128;
401 return SINTTOFP_I128_PPCF128;
403 return UNKNOWN_LIBCALL;
411 return UINTTOFP_I32_F32;
413 return UINTTOFP_I32_F64;
415 return UINTTOFP_I32_F80;
417 return UINTTOFP_I32_F128;
419 return UINTTOFP_I32_PPCF128;
422 return UINTTOFP_I64_F32;
424 return UINTTOFP_I64_F64;
426 return UINTTOFP_I64_F80;
428 return UINTTOFP_I64_F128;
430 return UINTTOFP_I64_PPCF128;
433 return UINTTOFP_I128_F32;
435 return UINTTOFP_I128_F64;
437 return UINTTOFP_I128_F80;
439 return UINTTOFP_I128_F128;
441 return UINTTOFP_I128_PPCF128;
443 return UNKNOWN_LIBCALL;
447 #define OP_TO_LIBCALL(Name, Enum) \ 449 switch (VT.SimpleTy) { \ 451 return UNKNOWN_LIBCALL; \ 481 return UNKNOWN_LIBCALL;
485 switch (ElementSize) {
487 return MEMCPY_ELEMENT_UNORDERED_ATOMIC_1;
489 return MEMCPY_ELEMENT_UNORDERED_ATOMIC_2;
491 return MEMCPY_ELEMENT_UNORDERED_ATOMIC_4;
493 return MEMCPY_ELEMENT_UNORDERED_ATOMIC_8;
495 return MEMCPY_ELEMENT_UNORDERED_ATOMIC_16;
497 return UNKNOWN_LIBCALL;
502 switch (ElementSize) {
504 return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_1;
506 return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_2;
508 return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_4;
510 return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_8;
512 return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_16;
514 return UNKNOWN_LIBCALL;
519 switch (ElementSize) {
521 return MEMSET_ELEMENT_UNORDERED_ATOMIC_1;
523 return MEMSET_ELEMENT_UNORDERED_ATOMIC_2;
525 return MEMSET_ELEMENT_UNORDERED_ATOMIC_4;
527 return MEMSET_ELEMENT_UNORDERED_ATOMIC_8;
529 return MEMSET_ELEMENT_UNORDERED_ATOMIC_16;
531 return UNKNOWN_LIBCALL;
578 HasMultipleConditionRegisters =
false;
579 HasExtractBitsInsn =
false;
583 StackPointerRegisterToSaveRestore = 0;
592 MaxAtomicSizeInBitsSupported = 1024;
594 MinCmpXchgSizeInBits = 0;
595 SupportsUnalignedAtomics =
false;
605 memset(OpActions, 0,
sizeof(OpActions));
606 memset(LoadExtActions, 0,
sizeof(LoadExtActions));
607 memset(TruncStoreActions, 0,
sizeof(TruncStoreActions));
608 memset(IndexedModeActions, 0,
sizeof(IndexedModeActions));
609 memset(CondCodeActions, 0,
sizeof(CondCodeActions));
612 std::end(TargetDAGCombineArray), 0);
704 #define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN) \ 705 setOperationAction(ISD::STRICT_##DAGN, VT, Expand); 706 #include "llvm/IR/ConstrainedOps.def" 776 bool LegalTypes)
const {
800 JumpIsExpensive = isExpensive;
815 "Promote may not follow Expand or Promote");
833 assert(NVT != VT &&
"Unable to round integer VT");
834 LegalizeKind NextStep = getTypeConversion(Context, NVT);
879 EVT OldEltVT = EltVT;
884 .getRoundIntegerType(Context);
918 if (LargerVector ==
MVT())
938 unsigned &NumIntermediates,
945 unsigned NumVectorRegs = 1;
950 NumVectorRegs = NumElts;
961 NumIntermediates = NumVectorRegs;
966 IntermediateVT = NewVT;
976 if (
EVT(DestVT).bitsLT(NewVT))
981 return NumVectorRegs;
1016 for(
unsigned OperIdx = 0; OperIdx != MI->
getNumOperands(); ++OperIdx) {
1027 for (
unsigned i = 0; i < OperIdx; ++i)
1036 MIB.
addImm(StackMaps::IndirectMemRefOp);
1043 MIB.
addImm(StackMaps::DirectMemRefOp);
1053 assert(MIB->
mayLoad() &&
"Folded a stackmap use to a non-load!");
1060 if (MI->
getOpcode() != TargetOpcode::STATEPOINT) {
1081 "Called emitXRayCustomEvent on the wrong MI!");
1082 auto &MF = *MI.
getMF();
1096 "Called emitXRayTypedEvent on the wrong MI!");
1097 auto &MF = *MI.
getMF();
1113 std::pair<const TargetRegisterClass *, uint8_t>
1118 return std::make_pair(RC, 0);
1127 for (
unsigned i : SuperRegRC.set_bits()) {
1136 return std::make_pair(BestRC, 1);
1144 "Too many value types for ValueTypeActions to hold!");
1148 NumRegistersForVT[i] = 1;
1156 for (; RegClassForVT[LargestIntReg] ==
nullptr; --LargestIntReg)
1157 assert(LargestIntReg !=
MVT::i1 &&
"No integer registers defined!");
1161 for (
unsigned ExpandedReg = LargestIntReg + 1;
1163 NumRegistersForVT[ExpandedReg] = 2*NumRegistersForVT[ExpandedReg-1];
1172 unsigned LegalIntReg = LargestIntReg;
1173 for (
unsigned IntReg = LargestIntReg - 1;
1177 LegalIntReg = IntReg;
1179 RegisterTypeForVT[IntReg] = TransformToType[IntReg] =
1246 bool IsLegalWiderType =
false;
1249 switch (PreferredAction) {
1256 for (
unsigned nVT = i + 1;
1264 TransformToType[i] = SVT;
1265 RegisterTypeForVT[i] = SVT;
1266 NumRegistersForVT[i] = 1;
1268 IsLegalWiderType =
true;
1272 if (IsLegalWiderType)
1285 TransformToType[i] = SVT;
1286 RegisterTypeForVT[i] = SVT;
1287 NumRegistersForVT[i] = 1;
1289 IsLegalWiderType =
true;
1293 if (IsLegalWiderType)
1299 TransformToType[i] = NVT;
1301 RegisterTypeForVT[i] = NVT;
1302 NumRegistersForVT[i] = 1;
1312 unsigned NumIntermediates;
1314 NumIntermediates, RegisterVT,
this);
1315 NumRegistersForVT[i] = NumRegisters;
1316 assert(NumRegistersForVT[i] == NumRegisters &&
1317 "NumRegistersForVT size cannot represent NumRegisters!");
1318 RegisterTypeForVT[i] = RegisterVT;
1333 TransformToType[i] = NVT;
1352 RepRegClassForVT[i] =
RRC;
1353 RepRegClassCostForVT[i] = Cost;
1376 EVT &IntermediateVT,
1377 unsigned &NumIntermediates,
1378 MVT &RegisterVT)
const {
1390 IntermediateVT = RegisterEVT;
1392 NumIntermediates = 1;
1400 unsigned NumVectorRegs = 1;
1405 NumVectorRegs = NumElts;
1414 NumVectorRegs <<= 1;
1417 NumIntermediates = NumVectorRegs;
1422 IntermediateVT = NewVT;
1425 RegisterVT = DestVT;
1432 if (
EVT(DestVT).bitsLT(NewVT))
1437 return NumVectorRegs;
1450 const bool OptForSize =
1458 return (OptForSize || Range <= MaxJumpTableSize) &&
1459 (NumCases * 100 >= Range * MinDensity);
1472 unsigned NumValues = ValueVTs.
size();
1473 if (NumValues == 0)
return;
1475 for (
unsigned j = 0, f = NumValues; j != f; ++j) {
1476 EVT VT = ValueVTs[j];
1510 for (
unsigned i = 0; i < NumParts; ++i)
1534 if (Fast !=
nullptr)
1575 enum InstructionOpcodes {
1576 #define HANDLE_INST(NUM, OPCODE, CLASS) OPCODE = NUM, 1577 #define LAST_OTHER_INST(NUM) InstructionOpcodesCount = NUM 1578 #include "llvm/IR/Instruction.def" 1580 switch (static_cast<InstructionOpcodes>(Opcode)) {
1583 case Switch:
return 0;
1584 case IndirectBr:
return 0;
1585 case Invoke:
return 0;
1586 case CallBr:
return 0;
1587 case Resume:
return 0;
1588 case Unreachable:
return 0;
1589 case CleanupRet:
return 0;
1590 case CatchRet:
return 0;
1591 case CatchPad:
return 0;
1592 case CatchSwitch:
return 0;
1593 case CleanupPad:
return 0;
1613 case Alloca:
return 0;
1616 case GetElementPtr:
return 0;
1617 case Fence:
return 0;
1618 case AtomicCmpXchg:
return 0;
1619 case AtomicRMW:
return 0;
1636 case Call:
return 0;
1638 case UserOp1:
return 0;
1639 case UserOp2:
return 0;
1640 case VAArg:
return 0;
1646 case LandingPad:
return 0;
1647 case Freeze:
return 0;
1673 if (MTy == LK.second)
1682 bool UseTLS)
const {
1686 const char *UnsafeStackPtrVar =
"__safestack_unsafe_stack_ptr";
1687 auto UnsafeStackPtr =
1688 dyn_cast_or_null<GlobalVariable>(M->
getNamedValue(UnsafeStackPtrVar));
1692 if (!UnsafeStackPtr) {
1693 auto TLSModel = UseTLS ?
1701 UnsafeStackPtrVar,
nullptr, TLSModel);
1704 if (UnsafeStackPtr->getValueType() != StackPtrTy)
1706 if (UseTLS != UnsafeStackPtr->isThreadLocal())
1708 (UseTLS ?
"" :
"not ") +
"be thread-local");
1710 return UnsafeStackPtr;
1788 nullptr,
"__stack_chk_guard");
1839 Name += IsSqrt ?
"sqrt" :
"div";
1846 "Unexpected FP type for reciprocal estimate");
1858 const char RefStepToken =
':';
1859 Position = In.
find(RefStepToken);
1866 if (RefStepString.
size() == 1) {
1867 char RefStepChar = RefStepString[0];
1868 if (RefStepChar >=
'0' && RefStepChar <=
'9') {
1869 Value = RefStepChar -
'0';
1880 if (Override.
empty())
1881 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
1884 Override.
split(OverrideVector,
',');
1885 unsigned NumArgs = OverrideVector.
size();
1895 Override = Override.
substr(0, RefPos);
1899 if (Override ==
"all")
1903 if (Override ==
"none")
1904 return TargetLoweringBase::ReciprocalEstimate::Disabled;
1907 if (Override ==
"default")
1908 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
1913 std::string VTNameNoSize = VTName;
1914 VTNameNoSize.pop_back();
1915 static const char DisabledPrefix =
'!';
1917 for (
StringRef RecipType : OverrideVector) {
1921 RecipType = RecipType.substr(0, RefPos);
1924 bool IsDisabled = RecipType[0] == DisabledPrefix;
1926 RecipType = RecipType.substr(1);
1928 if (RecipType.equals(VTName) || RecipType.equals(VTNameNoSize))
1929 return IsDisabled ? TargetLoweringBase::ReciprocalEstimate::Disabled
1933 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
1940 if (Override.
empty())
1941 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
1944 Override.
split(OverrideVector,
',');
1945 unsigned NumArgs = OverrideVector.
size();
1954 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
1957 Override = Override.
substr(0, RefPos);
1958 assert(Override !=
"none" &&
1959 "Disabled reciprocals, but specifed refinement steps?");
1962 if (Override ==
"all" || Override ==
"default")
1968 std::string VTNameNoSize = VTName;
1969 VTNameNoSize.pop_back();
1971 for (
StringRef RecipType : OverrideVector) {
1977 RecipType = RecipType.substr(0, RefPos);
1978 if (RecipType.equals(VTName) || RecipType.equals(VTNameNoSize))
1982 return TargetLoweringBase::ReciprocalEstimate::Unspecified;
virtual std::pair< const TargetRegisterClass *, uint8_t > findRepresentativeClass(const TargetRegisterInfo *TRI, MVT VT) const
Return the largest legal super-reg register class of the register class for the specified type and it...
static bool darwinHasSinCos(const Triple &TT)
BITCAST - This operator converts between integer, vector and FP values, as if the value was stored to...
X = FP_ROUND(Y, TRUNC) - Rounding 'Y' from a larger floating point type down to the precision of the ...
bool isOSDarwin() const
isOSDarwin - Is this a "Darwin" OS (macOS, iOS, tvOS or watchOS).
static MVT getIntegerVT(unsigned BitWidth)
const MachineInstrBuilder & add(const MachineOperand &MO) const
A parsed version of the target data layout string in and methods for querying it. ...
const_iterator end(StringRef path)
Get end iterator over path.
FMINNUM/FMAXNUM - Perform floating-point minimum or maximum on two values.
This represents an addressing mode of: BaseGV + BaseOffs + BaseReg + Scale*ScaleReg If BaseGV is null...
unsigned MaxLoadsPerMemcmpOptSize
Likewise for functions with the OptSize attribute.
unsigned getAddrSpace() const
bool isPow2VectorType() const
Returns true if the given vector is a power of 2.
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
void setMinimumJumpTableEntries(unsigned Val)
Indicate the minimum number of blocks to generate jump tables.
const MachineFunction * getMF() const
Return the function that contains the basic block that this instruction belongs to.
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.
bool isMacOSX() const
isMacOSX - Is this a Mac OS X triple.
static MVT getVectorVT(MVT VT, unsigned NumElements)
FMINIMUM/FMAXIMUM - NaN-propagating minimum/maximum that also treat -0.0 as less than 0...
VECTOR_SHUFFLE(VEC1, VEC2) - Returns a vector, of the same type as VEC1/VEC2.
EVT getScalarType() const
If this is a vector type, return the element type, otherwise return this.
virtual MVT::SimpleValueType getCmpLibcallReturnType() const
Return the ValueType for comparison libcalls.
A Module instance is used to store all the information related to an LLVM module. ...
static cl::opt< unsigned > MaximumJumpTableSize("max-jump-table-size", cl::init(UINT_MAX), cl::Hidden, cl::desc("Set maximum size of jump tables."))
bool hasOptSize() const
Optimize this function for size (-Os) or minimum size (-Oz).
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Same as the corresponding unsaturated fixed point instructions, but the result is clamped between the...
ZERO_EXTEND_VECTOR_INREG(Vector) - This operator represents an in-register zero-extension of the low ...
bool isVector() const
Return true if this is a vector value type.
Libcall getSYNC(unsigned Opc, MVT VT)
Return the SYNC_FETCH_AND_* value for the given opcode and type, or UNKNOWN_LIBCALL if there is none...
A handy container for a FunctionType+Callee-pointer pair, which can be passed around as a single enti...
Carry-setting nodes for multiple precision addition and subtraction.
void push_back(const T &Elt)
const DebugLoc & getDebugLoc() const
Returns the debug location id of this MachineInstr.
TypeSize getSizeInBits() const
Returns the size of the specified MVT in bits.
Analysis providing profile information.
Y = RRC X, rotate right via carry.
static cl::opt< bool > JumpIsExpensiveOverride("jump-is-expensive", cl::init(false), cl::desc("Do not create extra branches to split comparison logic."), cl::Hidden)
static cl::opt< unsigned > MinimumJumpTableEntries("min-jump-table-entries", cl::init(4), cl::Hidden, cl::desc("Set minimum number of entries to use a jump table."))
MVT getSimpleVT() const
Return the SimpleValueType held in the specified simple EVT.
Libcall
RTLIB::Libcall enum - This enum defines all of the runtime library calls the backend can emit...
MVT getPow2VectorType() const
Widens the length of the given vector MVT up to the nearest power of 2 and returns that type...
RESULT, BOOL = [SU]ADDO(LHS, RHS) - Overflow-aware nodes for addition.
static cl::opt< int > MinPercentageForPredictableBranch("min-predictable-branch", cl::init(99), cl::desc("Minimum percentage (0-100) that a condition must be either true " "or false to assume that the condition is predictable"), cl::Hidden)
static int getOpEnabled(bool IsSqrt, EVT VT, StringRef Override)
For the input attribute string, return one of the ReciprocalEstimate enum status values (enabled...
unsigned getVectorNumElements() const
Externally visible function.
SPLAT_VECTOR(VAL) - Returns a vector with the scalar value VAL duplicated in all lanes.
Val, Success, OUTCHAIN = ATOMIC_CMP_SWAP_WITH_SUCCESS(INCHAIN, ptr, cmp, swap) N.b.
C - The default llvm calling convention, compatible with C.
unsigned getPointerSizeInBits(unsigned AS=0) const
Layout pointer size, in bits FIXME: The defaults need to be removed once all of the backends/clients ...
unsigned const TargetRegisterInfo * TRI
bool isInteger() const
Return true if this is an integer or a vector integer type.
SIGN_EXTEND_VECTOR_INREG(Vector) - This operator represents an in-register sign-extension of the low ...
[US]{MIN/MAX} - Binary minimum or maximum or signed or unsigned integers.
static cl::opt< bool > DisableStrictNodeMutation("disable-strictnode-mutation", cl::desc("Don't mutate strict-float node to a legalize node"), cl::init(false), cl::Hidden)
std::pair< LegalizeTypeAction, EVT > LegalizeKind
LegalizeKind holds the legalization kind that needs to happen to EVT in order to type-legalize it...
void setIndexedMaskedLoadAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed masked load does or does not work with the specified type and ind...
virtual unsigned getByValTypeAlignment(Type *Ty, const DataLayout &DL) const
Return the desired alignment for ByVal or InAlloca aggregate function arguments in the caller paramet...
unsigned getSpillSize(const TargetRegisterClass &RC) const
Return the size in bytes of the stack slot allocated to hold a spilled copy of a register from class ...
NodeType
ISD::NodeType enum - This enum defines the target-independent operators for a SelectionDAG.
bool hasAttribute(unsigned Index, Attribute::AttrKind Kind) const
Return true if the attribute exists at the given index.
Libcall getFPROUND(EVT OpVT, EVT RetVT)
getFPROUND - Return the FPROUND_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
INT = FGETSIGN(FP) - Return the sign bit of the specified floating point value as an integer 0/1 valu...
bool isValid() const
Return true if this is a valid simple valuetype.
EVT getPow2VectorType(LLVMContext &Context) const
Widens the length of the given vector EVT up to the nearest power of 2 and returns that type...
const TargetRegisterClass * getRegClass(unsigned i) const
Returns the register class associated with the enumeration value.
LLVMContext & getContext() const
Return the LLVMContext in which this type was uniqued.
int getRecipEstimateSqrtEnabled(EVT VT, MachineFunction &MF) const
Return a ReciprocalEstimate enum value for a square root of the given type based on the function's at...
Libcall getUINTTOFP(EVT OpVT, EVT RetVT)
getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
MVT getRegisterType(MVT VT) const
Return the type of registers that this ValueType will eventually require.
virtual bool isSuitableForJumpTable(const SwitchInst *SI, uint64_t NumCases, uint64_t Range, ProfileSummaryInfo *PSI, BlockFrequencyInfo *BFI) const
Return true if lowering to a jump table is suitable for a set of case clusters which may contain NumC...
void setIndexedMaskedStoreAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed masked store does or does not work with the specified type and in...
A description of a memory reference used in the backend.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Shift and rotation operations.
unsigned getNumOperands() const
Retuns the total number of operands.
Type * getTypeForEVT(LLVMContext &Context) const
This method returns an LLVM type corresponding to the specified EVT.
virtual MVT getRegisterTypeForCallingConv(LLVMContext &Context, CallingConv::ID CC, EVT VT) const
Certain combinations of ABIs, Targets and features require that types are legal for some operations a...
LLVMContext & getContext() const
Get the global data context.
ABS - Determine the unsigned absolute value of a signed integer value of the same bitwidth...
PointerType * getPointerTo(unsigned AddrSpace=0) const
Return a pointer to the current type.
RESULT = [US]MULFIX(LHS, RHS, SCALE) - Perform fixed point multiplication on 2 integers with the same...
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void eraseFromParent()
Unlink 'this' from the containing basic block and delete it.
int64_t getObjectOffset(int ObjectIdx) const
Return the assigned stack offset of the specified object from the incoming stack pointer.
void freezeReservedRegs(const MachineFunction &)
freezeReservedRegs - Called by the register allocator to freeze the set of reserved registers before ...
This file contains the simple types necessary to represent the attributes associated with functions a...
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted...
Val, OUTCHAIN = ATOMIC_SWAP(INCHAIN, ptr, amt) Val, OUTCHAIN = ATOMIC_LOAD_[OpName](INCHAIN, ptr, amt) For double-word atomic operations: ValLo, ValHi, OUTCHAIN = ATOMIC_SWAP(INCHAIN, ptr, amtLo, amtHi) ValLo, ValHi, OUTCHAIN = ATOMIC_LOAD_[OpName](INCHAIN, ptr, amtLo, amtHi) These correspond to the atomicrmw instruction.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
void setOperationAction(unsigned Op, MVT VT, LegalizeAction Action)
Indicate that the specified operation does not work with the specified type and indicate what to do a...
LLVM_NODISCARD StringRef substr(size_t Start, size_t N=npos) const
Return a reference to the substring from [Start, Start + N).
void setJumpIsExpensive(bool isExpensive=true)
Tells the code generator not to expand logic operations on comparison predicates into separate sequen...
MachineMemOperand * getMachineMemOperand(MachinePointerInfo PtrInfo, MachineMemOperand::Flags f, uint64_t s, unsigned base_alignment, const AAMDNodes &AAInfo=AAMDNodes(), const MDNode *Ranges=nullptr, SyncScope::ID SSID=SyncScope::System, AtomicOrdering Ordering=AtomicOrdering::NotAtomic, AtomicOrdering FailureOrdering=AtomicOrdering::NotAtomic)
getMachineMemOperand - Allocate a new MachineMemOperand.
LLVM_NODISCARD bool empty() const
empty - Check if the string is empty.
Position
Position to insert a new instruction relative to an existing instruction.
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
OutputArg - This struct carries flags and a value for a single outgoing (actual) argument or outgoing...
unsigned getNumRegClasses() const
const MCInstrDesc & getDesc() const
Returns the target instruction descriptor of this MachineInstr.
[SU]INT_TO_FP - These operators convert integers (whose interpreted sign depends on the first letter)...
void computeRegisterProperties(const TargetRegisterInfo *TRI)
Once all of the register classes are added, this allows us to compute derived properties we expose...
unsigned MaxLoadsPerMemcmp
Specify maximum number of load instructions per memcmp call.
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
BasicBlock * GetInsertBlock() const
Simple integer binary arithmetic operators.
GlobalValue * getNamedValue(StringRef Name) const
Return the global value in the module with the specified name, of arbitrary type. ...
LLVM_NODISCARD size_t size() const
size - Get the string size.
bool isiOS() const
Is this an iOS triple.
static StringRef getRecipEstimateForFunc(MachineFunction &MF)
Get the reciprocal estimate attribute string for a function that will override the target defaults...
CondCode
ISD::CondCode enum - These are ordered carefully to make the bitfields below work out...
virtual bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty, unsigned AddrSpace, Instruction *I=nullptr) const
Return true if the addressing mode represented by AM is legal for this target, for a load/store of th...
READCYCLECOUNTER - This corresponds to the readcyclecounter intrinsic.
void addMemOperand(MachineFunction &MF, MachineMemOperand *MO)
Add a MachineMemOperand to the machine instruction.
ANY_EXTEND_VECTOR_INREG(Vector) - This operator represents an in-register any-extension of the low la...
instr_iterator insert(instr_iterator I, MachineInstr *M)
Insert MI into the instruction list before I, possibly inside a bundle.
int64_t getObjectSize(int ObjectIdx) const
Return the size of the specified object.
void ComputeValueVTs(const TargetLowering &TLI, const DataLayout &DL, Type *Ty, SmallVectorImpl< EVT > &ValueVTs, SmallVectorImpl< uint64_t > *Offsets=nullptr, uint64_t StartingOffset=0)
ComputeValueVTs - Given an LLVM IR type, compute a sequence of EVTs that represent all the individual...
MVT getVectorElementType() const
const DataLayout & getDataLayout() const
Return the DataLayout attached to the Module associated to this MF.
int getRecipEstimateDivEnabled(EVT VT, MachineFunction &MF) const
Return a ReciprocalEstimate enum value for a division of the given type based on the function's attri...
Class to represent pointers.
FP_TO_[US]INT - Convert a floating point value to a signed or unsigned integer.
bool isScalableVector() const
Return true if this is a vector value type where the runtime length is machine dependent.
static cl::opt< unsigned > JumpTableDensity("jump-table-density", cl::init(10), cl::Hidden, cl::desc("Minimum density for building a jump table in " "a normal function"))
Minimum jump table density for normal functions.
virtual Value * getIRStackGuard(IRBuilder<> &IRB) const
If the target has a standard location for the stack protector guard, returns the address of that loca...
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
static std::string getReciprocalOpName(bool IsSqrt, EVT VT)
Construct a string for the given reciprocal operation of the given type.
unsigned getObjectAlignment(int ObjectIdx) const
Return the alignment of the specified stack object.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
static void InitCmpLibcallCCs(ISD::CondCode *CCs)
InitCmpLibcallCCs - Set default comparison libcall CC.
initializer< Ty > init(const Ty &Val)
These reductions are non-strict, and have a single vector operand.
constexpr bool isPowerOf2_32(uint32_t Value)
Return true if the argument is a power of two > 0.
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.
Simple binary floating point operators.
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
unsigned getVectorNumElements() const
Given a vector type, return the number of elements it contains.
unsigned getPointerSize(unsigned AS=0) const
Layout pointer size FIXME: The defaults need to be removed once all of the backends/clients are updat...
Libcall getMEMMOVE_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize)
getMEMMOVE_ELEMENT_UNORDERED_ATOMIC - Return MEMMOVE_ELEMENT_UNORDERED_ATOMIC_* value for the given e...
INSERT_VECTOR_ELT(VECTOR, VAL, IDX) - Returns VECTOR with the element at IDX replaced with VAL...
TargetLoweringBase(const TargetMachine &TM)
NOTE: The TargetMachine owns TLOF.
virtual bool allowsMisalignedMemoryAccesses(EVT, unsigned AddrSpace=0, unsigned Align=1, MachineMemOperand::Flags Flags=MachineMemOperand::MONone, bool *=nullptr) const
Determine if the target supports unaligned memory accesses.
Carry-using nodes for multiple precision addition and subtraction.
Libcall getFPTOSINT(EVT OpVT, EVT RetVT)
getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
LLVM_NODISCARD size_t find(char C, size_t From=0) const
Search for the first character C in the string.
static mvt_range fp_valuetypes()
bool isAndroidVersionLT(unsigned Major) const
bool isPS4CPU() const
Tests whether the target is the PS4 CPU.
TRAP - Trapping instruction.
const Triple & getTargetTriple() const
DEBUGTRAP - Trap intended to get the attention of a debugger.
void AddPromotedToType(unsigned Opc, MVT OrigVT, MVT DestVT)
If Opc/OrigVT is specified as being promoted, the promotion code defaults to trying a larger integer/...
unsigned MaxStoresPerMemmove
Specify maximum number of store instructions per memmove call.
bool isPPC64() const
Tests whether the target is 64-bit PowerPC (little and big endian).
Bit counting operators with an undefined result for zero inputs.
Val, OUTCHAIN = ATOMIC_CMP_SWAP(INCHAIN, ptr, cmp, swap) For double-word atomic operations: ValLo...
X = FP_EXTEND(Y) - Extend a smaller FP type into a larger FP type.
virtual MVT getPointerTy(const DataLayout &DL, uint32_t AS=0) const
Return the pointer type for the given address space, defaults to the pointer type from the data layou...
virtual Value * getSafeStackPointerLocation(IRBuilder<> &IRB) const
Returns the target-specific address of the unsafe stack pointer.
uint64_t NextPowerOf2(uint64_t A)
Returns the next power of two (in 64-bits) that is strictly greater than A.
static unsigned getVectorTypeBreakdownMVT(MVT VT, MVT &IntermediateVT, unsigned &NumIntermediates, MVT &RegisterVT, TargetLoweringBase *TLI)
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
TypeSize getSizeInBits() const
Return the size of the specified value type in bits.
Libcall getMEMCPY_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize)
getMEMCPY_ELEMENT_UNORDERED_ATOMIC - Return MEMCPY_ELEMENT_UNORDERED_ATOMIC_* value for the given ele...
static PointerType * getInt8PtrTy(LLVMContext &C, unsigned AS=0)
int getDivRefinementSteps(EVT VT, MachineFunction &MF) const
Return the refinement step count for a division of the given type based on the function's attributes...
const TargetMachine & getTargetMachine() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
void setLibcallCallingConv(RTLIB::Libcall Call, CallingConv::ID CC)
Set the CallingConv that should be used for the specified libcall.
EVT getValueType(const DataLayout &DL, Type *Ty, bool AllowUnknown=false) const
Return the EVT corresponding to this LLVM type.
uint64_t getAlignment() const
Return the minimum known alignment in bytes of the actual memory reference.
Value * getDefaultSafeStackPointerLocation(IRBuilder<> &IRB, bool UseTLS) const
unsigned GatherAllAliasesMaxDepth
Depth that GatherAllAliases should should continue looking for chain dependencies when trying to find...
Triple - Helper class for working with autoconf configuration names.
This base class for TargetLowering contains the SelectionDAG-independent parts that can be used from ...
unsigned getVectorTypeBreakdown(LLVMContext &Context, EVT VT, EVT &IntermediateVT, unsigned &NumIntermediates, MVT &RegisterVT) const
Vector types are broken down into some number of legal first class types.
void GetReturnInfo(CallingConv::ID CC, Type *ReturnType, AttributeList attr, SmallVectorImpl< ISD::OutputArg > &Outs, const TargetLowering &TLI, const DataLayout &DL)
Given an LLVM IR type and return type attributes, compute the return value EVTs and flags...
Libcall getFPEXT(EVT OpVT, EVT RetVT)
getFPEXT - Return the FPEXT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
bool allowsMemoryAccessForAlignment(LLVMContext &Context, const DataLayout &DL, EVT VT, unsigned AddrSpace=0, unsigned Alignment=1, MachineMemOperand::Flags Flags=MachineMemOperand::MONone, bool *Fast=nullptr) const
This function returns true if the memory access is aligned or if the target allows this specific unal...
void initActions()
Initialize all of the actions to default values.
RESULT = [US]ADDSAT(LHS, RHS) - Perform saturation addition on 2 integers with the same bit width (W)...
bool isLegalRC(const TargetRegisterInfo &TRI, const TargetRegisterClass &RC) const
Return true if the value types that can be represented by the specified register class are all legal...
EVT getRoundIntegerType(LLVMContext &Context) const
Rounds the bit-width of the given integer EVT up to the nearest power of two (and at least to eight)...
virtual unsigned getNumRegistersForCallingConv(LLVMContext &Context, CallingConv::ID CC, EVT VT) const
Certain targets require unusual breakdowns of certain types.
ARM_AAPCS_VFP - Same as ARM_AAPCS, but uses hard floating point ABI.
virtual bool canOpTrap(unsigned Op, EVT VT) const
Returns true if the operation can trap for the value type.
EXTRACT_VECTOR_ELT(VECTOR, IDX) - Returns a single element from VECTOR identified by the (potentially...
EVT getVectorElementType() const
Given a vector type, return the type of each element.
Like SetCC, ops #0 and #1 are the LHS and RHS operands to compare, but op #2 is a boolean indicating ...
ADDRSPACECAST - This operator converts between pointers of different address spaces.
MachineOperand class - Representation of each machine instruction operand.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
Module.h This file contains the declarations for the Module class.
unsigned getMaximumJumpTableSize() const
Return upper limit for number of entries in a jump table.
LLVM_NODISCARD std::pair< StringRef, StringRef > split(char Separator) const
Split into two substrings around the first occurrence of a separator character.
static cl::opt< unsigned > OptsizeJumpTableDensity("optsize-jump-table-density", cl::init(40), cl::Hidden, cl::desc("Minimum density for building a jump table in " "an optsize function"))
Minimum jump table density for -Os or -Oz functions.
constexpr size_t array_lengthof(T(&)[N])
Find the length of an array.
virtual MVT getScalarShiftAmountTy(const DataLayout &, EVT) const
EVT is not used in-tree, but is used by out-of-tree target.
unsigned getABITypeAlignment(Type *Ty) const
Returns the minimum ABI-required alignment for the specified type.
FMINNUM_IEEE/FMAXNUM_IEEE - Perform floating-point minimum or maximum on two values, following the IEEE-754 2008 definition.
virtual Function * getSSPStackGuardCheck(const Module &M) const
If the target has a standard stack protection check function that performs validation and error handl...
TypeSize getScalarSizeInBits() const
FunctionCallee getOrInsertFunction(StringRef Name, FunctionType *T, AttributeList AttributeList)
Look up the specified function in the module symbol table.
const Function & getFunction() const
Return the LLVM function that this machine code represents.
static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, bool IsScalable=false)
Returns the EVT that represents a vector NumElements in length, where each element is of type VT...
void setIndexedLoadAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed load does or does not work with the specified type and indicate w...
bool isTypeLegal(EVT VT) const
Return true if the target has native support for the specified value type.
bool isStatepointSpillSlotObjectIndex(int ObjectIdx) const
Select(COND, TRUEVAL, FALSEVAL).
bool bitsLT(EVT VT) const
Return true if this has less bits than VT.
bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo *BFI, PGSOQueryType QueryType=PGSOQueryType::Other)
Returns true if machine function MF is suggested to be size-optimized based on the profile...
unsigned getMinimumJumpTableDensity(bool OptForSize) const
Return lower limit of the density in a jump table.
void setMaximumJumpTableSize(unsigned)
Indicate the maximum number of entries in jump tables.
ZERO_EXTEND - Used for integer types, zeroing the new bits.
ANY_EXTEND - Used for integer types. The high bits are undefined.
#define OP_TO_LIBCALL(Name, Enum)
FCOPYSIGN(X, Y) - Return the value of X with the sign of Y.
int InstructionOpcodeToISD(unsigned Opcode) const
Get the ISD node that corresponds to the Instruction class opcode.
Flags
Flags values. These may be or'd together.
int getSqrtRefinementSteps(EVT VT, MachineFunction &MF) const
Return the refinement step count for a square root of the given type based on the function's attribut...
The memory access reads data.
static bool parseRefinementStep(StringRef In, size_t &Position, uint8_t &Value)
Return the character position and value (a single numeric character) of a customized refinement opera...
GET_DYNAMIC_AREA_OFFSET - get offset from native SP to the address of the most recent dynamic alloca...
static MachinePointerInfo getFixedStack(MachineFunction &MF, int FI, int64_t Offset=0)
Return a MachinePointerInfo record that refers to the specified FrameIndex.
static mvt_range all_valuetypes()
SimpleValueType Iteration.
Representation of each machine instruction.
Libcall getFPTOUINT(EVT OpVT, EVT RetVT)
getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
bool isVector() const
Return true if this is a vector value type.
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
Constant * getOrInsertGlobal(StringRef Name, Type *Ty, function_ref< GlobalVariable *()> CreateGlobalCallback)
Look up the specified global in the module symbol table.
Bitwise operators - logical and, logical or, logical xor.
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
MachineBasicBlock * emitXRayCustomEvent(MachineInstr &MI, MachineBasicBlock *MBB) const
Replace/modify the XRay custom event operands with target-dependent details.
StringRef getValueAsString() const
Return the attribute's value as a string.
bool isArch64Bit() const
Test whether the architecture is 64-bit.
void setTypeAction(MVT VT, LegalizeTypeAction Action)
SIGN_EXTEND_INREG - This operator atomically performs a SHL/SRA pair to sign extend a small value in ...
LOAD and STORE have token chains as their first operand, then the same operands as an LLVM load/store...
virtual EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context, EVT VT) const
Return the ValueType of the result of SETCC operations.
LegalizeTypeAction getTypeAction(LLVMContext &Context, EVT VT) const
Return how we should legalize values of this type, either it is already legal (return 'Legal') or we ...
const Function * getParent() const
Return the enclosing method, or null if none.
MachineBasicBlock * emitXRayTypedEvent(MachineInstr &MI, MachineBasicBlock *MBB) const
Replace/modify the XRay typed event operands with target-dependent details.
Flags getFlags() const
Return the raw flags of the source value,.
unsigned MaxGluedStoresPerMemcpy
Specify max number of store instructions to glue in inlined memcpy.
const MachineInstrBuilder & cloneMemRefs(const MachineInstr &OtherMI) const
bool isFI() const
isFI - Tests if this is a MO_FrameIndex operand.
unsigned MaxStoresPerMemmoveOptSize
Likewise for functions with the OptSize attribute.
bool isGNUEnvironment() const
unsigned MaxStoresPerMemcpyOptSize
Likewise for functions with the OptSize attribute.
void setLibcallName(RTLIB::Libcall Call, const char *Name)
Rename the default libcall routine name for the specified libcall.
RESULT = [US]SUBSAT(LHS, RHS) - Perform saturation subtraction on 2 integers with the same bit width ...
static const int LAST_INDEXED_MODE
CallInst * CreateCall(FunctionType *FTy, Value *Callee, ArrayRef< Value *> Args=None, const Twine &Name="", MDNode *FPMathTag=nullptr)
virtual Value * getSDagStackGuard(const Module &M) const
Return the variable that's previously inserted by insertSSPDeclarations, if any, otherwise return nul...
unsigned MaxStoresPerMemcpy
Specify maximum number of store instructions per memcpy call.
bool isMacOSXVersionLT(unsigned Major, unsigned Minor=0, unsigned Micro=0) const
isMacOSXVersionLT - Comparison function for checking OS X version compatibility, which handles suppor...
Libcall getSINTTOFP(EVT OpVT, EVT RetVT)
getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
virtual unsigned getMinimumJumpTableEntries() const
Return lower limit for number of blocks in a jump table.
CONCAT_VECTORS(VECTOR0, VECTOR1, ...) - Given a number of values of vector type with the same length ...
bool mayLoad(QueryType Type=AnyInBundle) const
Return true if this instruction could possibly read memory.
bool EnableExtLdPromotion
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LegalizeTypeAction
This enum indicates whether a types are legal for a target, and if not, what action should be used to...
Module * getParent()
Get the module that this global value is contained inside of...
LLVM Value Representation.
Integer reductions may have a result type larger than the vector element type.
Fast - This calling convention attempts to make calls as fast as possible (e.g.
FMIN/FMAX nodes can have flags, for NaN/NoNaN variants.
virtual void finalizeLowering(MachineFunction &MF) const
Execute target specific actions to finalize target lowering.
virtual void insertSSPDeclarations(Module &M) const
Inserts necessary declarations for SSP (stack protection) purpose.
#define LLVM_FALLTHROUGH
LLVM_FALLTHROUGH - Mark fallthrough cases in switch statements.
PREFETCH - This corresponds to a prefetch intrinsic.
bool isAndroid() const
Tests whether the target is Android.
Attribute getFnAttribute(Attribute::AttrKind Kind) const
Return the attribute for the given attribute kind.
Primary interface to the complete machine description for the target machine.
StringRef - Represent a constant reference to a string, i.e.
FMAD - Perform a * b + c, while getting the same result as the separately rounded operations...
SetCC operator - This evaluates to a true value iff the condition is true.
bool isOSVersionLT(unsigned Major, unsigned Minor=0, unsigned Micro=0) const
isOSVersionLT - Helper function for doing comparisons against version numbers included in the target ...
unsigned MaxStoresPerMemset
Specify maximum number of store instructions per memset call.
unsigned MaxStoresPerMemsetOptSize
Likewise for functions with the OptSize attribute.
MERGE_VALUES - This node takes multiple discrete operands and returns them all as its individual resu...
static int getOpRefinementSteps(bool IsSqrt, EVT VT, StringRef Override)
For the input attribute string, return the customized refinement step count for this operation on the...
TRUNCATE - Completely drop the high bits.
bool isSimple() const
Test if the given EVT is simple (as opposed to being extended).
virtual BranchProbability getPredictableBranchThreshold() const
If a branch or a select condition is skewed in one direction by more than this factor, it is very likely to be predicted correctly.
Libcall getMEMSET_ELEMENT_UNORDERED_ATOMIC(uint64_t ElementSize)
getMEMSET_ELEMENT_UNORDERED_ATOMIC - Return MEMSET_ELEMENT_UNORDERED_ATOMIC_* value for the given ele...
const MachineOperand & getOperand(unsigned i) const
RESULT = [US]DIVFIX(LHS, RHS, SCALE) - Perform fixed point division on 2 integers with the same width...
Perform various unary floating-point operations inspired by libm.
static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth)
Returns the EVT that represents an integer with the given number of bits.
virtual TargetLoweringBase::LegalizeTypeAction getPreferredVectorAction(MVT VT) const
Return the preferred vector type legalization action.
EVT getTypeToTransformTo(LLVMContext &Context, EVT VT) const
For types supported by the target, this is an identity function.
virtual bool allowsMemoryAccess(LLVMContext &Context, const DataLayout &DL, EVT VT, unsigned AddrSpace=0, unsigned Alignment=1, MachineMemOperand::Flags Flags=MachineMemOperand::MONone, bool *Fast=nullptr) const
Return true if the target supports a memory access of this type for the given address space and align...
void setBitsInMask(const uint32_t *Mask, unsigned MaskWords=~0u)
setBitsInMask - Add '1' bits from Mask to this vector.
std::pair< int, MVT > getTypeLegalizationCost(const DataLayout &DL, Type *Ty) const
Estimate the cost of type-legalization and the legalized type.
bool isValid() const
Returns true if this iterator is still pointing at a valid entry.
bool PredictableSelectIsExpensive
Tells the code generator that select is more expensive than a branch if the branch is usually predict...
EVT getShiftAmountTy(EVT LHSTy, const DataLayout &DL, bool LegalTypes=true) const
Carry-using nodes for multiple precision addition and subtraction.
LegalizeTypeAction getTypeAction(MVT VT) const
This file describes how to lower LLVM code to machine code.
const BasicBlock * getParent() const
vt_iterator legalclasstypes_begin(const TargetRegisterClass &RC) const
Loop over all of the value types that can be represented by values in the given register class...
void setIndexedStoreAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed store does or does not work with the specified type and indicate ...
MachineBasicBlock * emitPatchPoint(MachineInstr &MI, MachineBasicBlock *MBB) const
Replace/modify any TargetFrameIndex operands with a targte-dependent sequence of memory operands that...