LLVM 17.0.0git
|
Define some predicates that are used for node matching. More...
Functions | |
CPUKind | parseArchX86 (StringRef CPU, bool Only64Bit=false) |
Parse CPU string into a CPUKind. | |
CPUKind | parseTuneCPU (StringRef CPU, bool Only64Bit=false) |
void | fillValidCPUArchList (SmallVectorImpl< StringRef > &Values, bool Only64Bit=false) |
Provide a list of valid CPU names. | |
void | fillValidTuneCPUList (SmallVectorImpl< StringRef > &Values, bool Only64Bit=false) |
Provide a list of valid -mtune names. | |
ProcessorFeatures | getKeyFeature (CPUKind Kind) |
Get the key feature prioritizing target multiversioning. | |
void | getFeaturesForCPU (StringRef CPU, SmallVectorImpl< StringRef > &Features) |
Fill in the features that CPU supports into Features . | |
void | updateImpliedFeatures (StringRef Feature, bool Enabled, StringMap< bool > &Features) |
Set or clear entries in Features that are implied to be enabled/disabled by the provided Feature . | |
uint64_t | getCpuSupportsMask (ArrayRef< StringRef > FeatureStrs) |
unsigned | getFeaturePriority (ProcessorFeatures Feat) |
FirstMacroFusionInstKind | classifyFirstOpcodeInMacroFusion (unsigned Opcode) |
SecondMacroFusionInstKind | classifySecondCondCodeInMacroFusion (X86::CondCode CC) |
bool | isMacroFused (FirstMacroFusionInstKind FirstKind, SecondMacroFusionInstKind SecondKind) |
EncodingOfSegmentOverridePrefix | getSegmentOverridePrefixForReg (unsigned Reg) |
Given a segment register, return the encoding of the segment override prefix for it. | |
bool | optimizeInstFromVEX3ToVEX2 (MCInst &MI, const MCInstrDesc &Desc) |
bool | optimizeShiftRotateWithImmediateOne (MCInst &MI) |
bool | optimizeVPCMPWithImmediateOneOrSix (MCInst &MI) |
bool | optimizeMOVSX (MCInst &MI) |
bool | optimizeINCDEC (MCInst &MI, bool In64BitMode) |
bool | optimizeMOV (MCInst &MI, bool In64BitMode) |
Simplify things like MOV32rm to MOV32o32a. | |
bool | optimizeToFixedRegisterOrShortImmediateForm (MCInst &MI) |
unsigned | getOpcodeForShortImmediateForm (unsigned Opcode) |
unsigned | getOpcodeForLongImmediateForm (unsigned Opcode) |
std::pair< CondCode, bool > | getX86ConditionCode (CmpInst::Predicate Predicate) |
Return a pair of condition code for the given predicate and whether the instruction operands should be swaped to match the condition code. | |
unsigned | getCMovOpcode (unsigned RegBytes, bool HasMemoryOperand=false) |
Return a cmov opcode for the given register size in bytes, and operand type. | |
int | getCondSrcNoFromDesc (const MCInstrDesc &MCID) |
Return the source operand # for condition code by MCID . | |
CondCode | getCondFromMI (const MachineInstr &MI) |
Return the condition code of the instruction. | |
CondCode | getCondFromBranch (const MachineInstr &MI) |
CondCode | getCondFromSETCC (const MachineInstr &MI) |
CondCode | getCondFromCMov (const MachineInstr &MI) |
CondCode | GetOppositeBranchCondition (CondCode CC) |
GetOppositeBranchCondition - Return the inverse of the specified cond, e.g. | |
unsigned | getVPCMPImmForCond (ISD::CondCode CC) |
Get the VPCMP immediate for the given condition. | |
unsigned | getSwappedVPCMPImm (unsigned Imm) |
Get the VPCMP immediate if the opcodes are swapped. | |
unsigned | getSwappedVPCOMImm (unsigned Imm) |
Get the VPCOM immediate if the opcodes are swapped. | |
unsigned | getSwappedVCMPImm (unsigned Imm) |
Get the VCMP immediate if the opcodes are swapped. | |
bool | isX87Instruction (MachineInstr &MI) |
Check if the instruction is X87 instruction. | |
bool | isConstantSplat (SDValue Op, APInt &SplatVal, bool AllowPartialUndefs=true) |
If Op is a constant whose elements are all the same constant or undefined, return true and return the constant value in SplatVal . | |
bool | isZeroNode (SDValue Elt) |
Returns true if Elt is a constant zero or floating point constant +0.0. | |
bool | isOffsetSuitableForCodeModel (int64_t Offset, CodeModel::Model M, bool hasSymbolicDisplacement) |
Returns true of the given offset can be fit into displacement field of the instruction. | |
bool | isCalleePop (CallingConv::ID CallingConv, bool is64Bit, bool IsVarArg, bool GuaranteeTCO) |
Determines whether the callee is required to pop its own arguments. | |
bool | mayFoldLoad (SDValue Op, const X86Subtarget &Subtarget, bool AssumeSingleUse=false) |
Check if Op is a load operation that could be folded into some other x86 instruction as a memory operand. | |
bool | mayFoldLoadIntoBroadcastFromMem (SDValue Op, MVT EltVT, const X86Subtarget &Subtarget, bool AssumeSingleUse=false) |
Check if Op is a load operation that could be folded into a vector splat instruction as a memory operand. | |
bool | mayFoldIntoStore (SDValue Op) |
Check if Op is a value that could be used to fold a store into some other x86 instruction as a memory operand. | |
bool | mayFoldIntoZeroExtend (SDValue Op) |
Check if Op is an operation that could be folded into a zero extend x86 instruction. | |
FastISel * | createFastISel (FunctionLoweringInfo &funcInfo, const TargetLibraryInfo *libInfo) |
Define some predicates that are used for node matching.
anonymous enum |
Enumerator | |
---|---|
BX_SI | |
BX_DI | |
BP_SI | |
BP_DI | |
sib | |
sib64 |
Definition at line 1678 of file X86Disassembler.cpp.
anonymous enum |
Definition at line 31 of file X86BaseInfo.h.
anonymous enum |
Enumerator | |
---|---|
MaxShuffleCombineDepth |
Definition at line 41013 of file X86ISelLowering.cpp.
enum llvm::X86::AlignBranchBoundaryKind : uint8_t |
Defines the possible values of the branch boundary alignment mask.
Enumerator | |
---|---|
AlignBranchNone | |
AlignBranchFused | |
AlignBranchJcc | |
AlignBranchJmp | |
AlignBranchCall | |
AlignBranchRet | |
AlignBranchIndirect |
Definition at line 357 of file X86BaseInfo.h.
Enumerator | |
---|---|
AC_EVEX_2_VEX |
Definition at line 31 of file X86InstrInfo.h.
enum llvm::X86::CondCode |
Enumerator | |
---|---|
COND_O | |
COND_NO | |
COND_B | |
COND_AE | |
COND_E | |
COND_NE | |
COND_BE | |
COND_A | |
COND_S | |
COND_NS | |
COND_P | |
COND_NP | |
COND_L | |
COND_GE | |
COND_LE | |
COND_G | |
LAST_VALID_COND | |
COND_NE_OR_P | |
COND_E_AND_NP | |
COND_INVALID |
Definition at line 80 of file X86BaseInfo.h.
enum llvm::X86::CPUKind |
Definition at line 63 of file X86TargetParser.h.
enum llvm::X86::EncodingOfSegmentOverridePrefix : uint8_t |
Defines the encoding values for segment override prefix.
Enumerator | |
---|---|
CS_Encoding | |
DS_Encoding | |
ES_Encoding | |
FS_Encoding | |
GS_Encoding | |
SS_Encoding |
Definition at line 368 of file X86BaseInfo.h.
|
strong |
Enumerator | |
---|---|
Test | |
Cmp | |
And | |
AddSub | |
IncDec | |
Invalid |
Definition at line 111 of file X86BaseInfo.h.
enum llvm::X86::Fixups |
Definition at line 16 of file X86FixupKinds.h.
enum llvm::X86::IPREFIXES |
The constants to describe instr prefixes if there are.
Enumerator | |
---|---|
IP_NO_PREFIX | |
IP_HAS_OP_SIZE | |
IP_HAS_AD_SIZE | |
IP_HAS_REPEAT_NE | |
IP_HAS_REPEAT | |
IP_HAS_LOCK | |
IP_HAS_NOTRACK | |
IP_USE_VEX | |
IP_USE_VEX2 | |
IP_USE_VEX3 | |
IP_USE_EVEX | |
IP_USE_DISP8 | |
IP_USE_DISP32 |
Definition at line 56 of file X86BaseInfo.h.
enum llvm::X86::OperandType : unsigned |
Enumerator | |
---|---|
OPERAND_ROUNDING_CONTROL | AVX512 embedded rounding control. This should only have values 0-3. |
OPERAND_COND_CODE |
Definition at line 72 of file X86BaseInfo.h.
Enumerator | |
---|---|
CPU_FEATURE_MAX |
Definition at line 57 of file X86TargetParser.h.
Enumerator | |
---|---|
CPU_SUBTYPE_DUMMY | |
CPU_SUBTYPE_MAX |
Definition at line 47 of file X86TargetParser.h.
Enumerator | |
---|---|
CPU_TYPE_DUMMY | |
CPU_TYPE_MAX |
Definition at line 37 of file X86TargetParser.h.
Enumerator | |
---|---|
VENDOR_DUMMY | |
VENDOR_OTHER |
Definition at line 27 of file X86TargetParser.h.
Current rounding mode is represented in bits 11:10 of FPSR.
These values are same as corresponding constants for rounding mode used in glibc.
Enumerator | |
---|---|
rmToNearest | |
rmDownward | |
rmUpward | |
rmTowardZero | |
rmMask |
Definition at line 914 of file X86ISelLowering.h.
|
strong |
Enumerator | |
---|---|
AB | |
ELG | |
SPO | |
Invalid |
Definition at line 127 of file X86BaseInfo.h.
AVX512 static rounding constants.
These need to match the values in avx512fintrin.h.
Enumerator | |
---|---|
TO_NEAREST_INT | |
TO_NEG_INF | |
TO_POS_INF | |
TO_ZERO | |
CUR_DIRECTION | |
NO_EXC |
Definition at line 46 of file X86BaseInfo.h.
|
inline |
Definition at line 140 of file X86BaseInfo.h.
References AddSub, And, Cmp, IncDec, Invalid, and Test.
Referenced by classifyFirst(), and isFirstMacroFusibleInst().
|
inline |
Definition at line 289 of file X86BaseInfo.h.
References AB, CC, COND_A, COND_AE, COND_B, COND_BE, COND_E, COND_G, COND_GE, COND_INVALID, COND_L, COND_LE, COND_NE, COND_NO, COND_NP, COND_NS, COND_O, COND_P, COND_S, ELG, Invalid, and SPO.
Referenced by classifySecond().
FastISel * llvm::X86::createFastISel | ( | FunctionLoweringInfo & | funcInfo, |
const TargetLibraryInfo * | libInfo | ||
) |
Definition at line 4054 of file X86FastISel.cpp.
Referenced by llvm::X86TargetLowering::createFastISel().
void llvm::X86::fillValidCPUArchList | ( | SmallVectorImpl< StringRef > & | Values, |
bool | Only64Bit = false |
||
) |
Provide a list of valid CPU names.
If Only64Bit
is true, the list will only contain 64-bit capable CPUs.
Definition at line 463 of file X86TargetParser.cpp.
References llvm::SmallVectorImpl< T >::emplace_back(), P, and Processors.
void llvm::X86::fillValidTuneCPUList | ( | SmallVectorImpl< StringRef > & | Values, |
bool | Only64Bit = false |
||
) |
Provide a list of valid -mtune names.
Definition at line 470 of file X86TargetParser.cpp.
References llvm::SmallVectorImpl< T >::emplace_back(), llvm::is_contained(), NoTuneList, P, and Processors.
Return a cmov opcode for the given register size in bytes, and operand type.
Definition at line 2836 of file X86InstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::X86InstrInfo::insertSelect().
X86::CondCode llvm::X86::getCondFromBranch | ( | const MachineInstr & | MI | ) |
Definition at line 2738 of file X86InstrInfo.cpp.
References COND_INVALID, getCondFromMI(), and MI.
Referenced by classifySecond(), llvm::X86InstrInfo::removeBranch(), llvm::X86InstrInfo::replaceBranchWithTailCall(), and splitBlock().
X86::CondCode llvm::X86::getCondFromCMov | ( | const MachineInstr & | MI | ) |
Definition at line 2748 of file X86InstrInfo.cpp.
References COND_INVALID, getCondFromMI(), and MI.
Referenced by packCmovGroup().
X86::CondCode llvm::X86::getCondFromMI | ( | const MachineInstr & | MI | ) |
Return the condition code of the instruction.
If the instruction doesn't have a condition code, return X86::COND_INVALID.
Definition at line 2729 of file X86InstrInfo.cpp.
References COND_INVALID, getCondSrcNoFromDesc(), llvm::MCInstrDesc::getNumDefs(), and MI.
Referenced by getCondFromBranch(), getCondFromCMov(), getCondFromSETCC(), and llvm::X86InstrInfo::optimizeCompareInstr().
X86::CondCode llvm::X86::getCondFromSETCC | ( | const MachineInstr & | MI | ) |
Definition at line 2743 of file X86InstrInfo.cpp.
References COND_INVALID, getCondFromMI(), and MI.
int llvm::X86::getCondSrcNoFromDesc | ( | const MCInstrDesc & | MCID | ) |
Return the source operand # for condition code by MCID
.
If the instruction doesn't have a condition code, return -1.
Definition at line 2720 of file X86InstrInfo.cpp.
References llvm::MCInstrDesc::getNumDefs(), llvm::MCInstrDesc::getNumOperands(), and llvm::MCInstrDesc::getOpcode().
Referenced by getCondFromMI().
Definition at line 706 of file X86TargetParser.cpp.
unsigned llvm::X86::getFeaturePriority | ( | ProcessorFeatures | Feat | ) |
Definition at line 720 of file X86TargetParser.cpp.
References assert(), and llvm_unreachable.
void llvm::X86::getFeaturesForCPU | ( | StringRef | CPU, |
SmallVectorImpl< StringRef > & | Features | ||
) |
Fill in the features that CPU
supports into Features
.
Definition at line 633 of file X86TargetParser.cpp.
References assert(), CPU_FEATURE_MAX, FeatureInfos, llvm::find_if(), I, Name, P, Processors, and llvm::SmallVectorTemplateBase< T, bool >::push_back().
ProcessorFeatures llvm::X86::getKeyFeature | ( | X86::CPUKind | Kind | ) |
Get the key feature prioritizing target multiversioning.
Definition at line 478 of file X86TargetParser.cpp.
References assert(), llvm_unreachable, P, and Processors.
Definition at line 439 of file X86EncodingOptimization.cpp.
Referenced by getRelaxedOpcode().
Definition at line 428 of file X86EncodingOptimization.cpp.
X86::CondCode llvm::X86::GetOppositeBranchCondition | ( | X86::CondCode | CC | ) |
GetOppositeBranchCondition - Return the inverse of the specified cond, e.g.
Return the inverse of the specified condition, e.g.
turning COND_E to COND_NE.
Definition at line 2755 of file X86InstrInfo.cpp.
References CC, COND_A, COND_AE, COND_B, COND_BE, COND_E, COND_E_AND_NP, COND_G, COND_GE, COND_L, COND_LE, COND_NE, COND_NE_OR_P, COND_NO, COND_NP, COND_NS, COND_O, COND_P, COND_S, and llvm_unreachable.
Referenced by checkBoolTestSetCCCombine(), combineCMov(), combineOr(), combineSubSetcc(), llvm::X86InstrInfo::commuteInstructionImpl(), createPHIsForCMOVsInSinkBB(), and foldXor1SetCC().
|
inline |
Given a segment register, return the encoding of the segment override prefix for it.
Definition at line 380 of file X86BaseInfo.h.
References CS_Encoding, DS_Encoding, ES_Encoding, FS_Encoding, GS_Encoding, llvm_unreachable, Reg, and SS_Encoding.
Get the VCMP immediate if the opcodes are swapped.
Get the VCMP immediate if the operands are swapped.
Definition at line 2899 of file X86InstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::X86InstrInfo::commuteInstructionImpl().
Get the VPCMP immediate if the opcodes are swapped.
Get the VPCMP immediate if the operands are swapped.
Definition at line 2863 of file X86InstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::X86InstrInfo::commuteInstructionImpl().
Get the VPCOM immediate if the opcodes are swapped.
Get the VPCOM immediate if the operands are swapped.
Definition at line 2881 of file X86InstrInfo.cpp.
References llvm_unreachable.
Referenced by llvm::X86InstrInfo::commuteInstructionImpl().
unsigned llvm::X86::getVPCMPImmForCond | ( | ISD::CondCode | CC | ) |
Get the VPCMP immediate for the given condition.
Definition at line 2846 of file X86InstrInfo.cpp.
References CC, llvm_unreachable, llvm::ISD::SETEQ, llvm::ISD::SETGE, llvm::ISD::SETGT, llvm::ISD::SETLE, llvm::ISD::SETLT, llvm::ISD::SETNE, llvm::ISD::SETUGE, llvm::ISD::SETUGT, llvm::ISD::SETULE, and llvm::ISD::SETULT.
std::pair< X86::CondCode, bool > llvm::X86::getX86ConditionCode | ( | CmpInst::Predicate | Predicate | ) |
Return a pair of condition code for the given predicate and whether the instruction operands should be swaped to match the condition code.
Definition at line 2798 of file X86InstrInfo.cpp.
References CC, COND_A, COND_AE, COND_B, COND_BE, COND_E, COND_G, COND_GE, COND_INVALID, COND_L, COND_LE, COND_NE, COND_NP, COND_P, llvm::CmpInst::FCMP_OEQ, llvm::CmpInst::FCMP_OGE, llvm::CmpInst::FCMP_OGT, llvm::CmpInst::FCMP_OLE, llvm::CmpInst::FCMP_OLT, llvm::CmpInst::FCMP_ONE, llvm::CmpInst::FCMP_ORD, llvm::CmpInst::FCMP_UEQ, llvm::CmpInst::FCMP_UGE, llvm::CmpInst::FCMP_UGT, llvm::CmpInst::FCMP_ULE, llvm::CmpInst::FCMP_ULT, llvm::CmpInst::FCMP_UNE, llvm::CmpInst::FCMP_UNO, llvm::CmpInst::ICMP_EQ, llvm::CmpInst::ICMP_NE, llvm::CmpInst::ICMP_SGE, llvm::CmpInst::ICMP_SGT, llvm::CmpInst::ICMP_SLE, llvm::CmpInst::ICMP_SLT, llvm::CmpInst::ICMP_UGE, llvm::CmpInst::ICMP_UGT, llvm::CmpInst::ICMP_ULE, and llvm::CmpInst::ICMP_ULT.
bool llvm::X86::isCalleePop | ( | CallingConv::ID | CallingConv, |
bool | is64Bit, | ||
bool | IsVarArg, | ||
bool | GuaranteeTCO | ||
) |
Determines whether the callee is required to pop its own arguments.
Callee pop is necessary to support tail calls.
Definition at line 5581 of file X86ISelLowering.cpp.
References is64Bit(), shouldGuaranteeTCO(), llvm::CallingConv::X86_FastCall, llvm::CallingConv::X86_StdCall, llvm::CallingConv::X86_ThisCall, and llvm::CallingConv::X86_VectorCall.
If Op is a constant whose elements are all the same constant or undefined, return true and return the constant value in SplatVal
.
If we have undef bits that don't cover an entire element, we treat these as zero if AllowPartialUndefs is set, else we fail and return false.
Definition at line 7703 of file X86ISelLowering.cpp.
References getTargetConstantBitsFromNode(), and llvm::SmallVectorBase< Size_T >::size().
Referenced by LowerFunnelShift(), LowerRotate(), and LowerShiftByScalarImmediate().
|
inline |
FirstKind | kind of the first instruction in macro fusion. |
SecondKind | kind of the second instruction in macro fusion. |
Definition at line 338 of file X86BaseInfo.h.
References AB, AddSub, And, Cmp, ELG, IncDec, Invalid, llvm_unreachable, and Test.
Referenced by shouldScheduleAdjacent().
bool llvm::X86::isOffsetSuitableForCodeModel | ( | int64_t | Offset, |
CodeModel::Model | M, | ||
bool | hasSymbolicDisplacement | ||
) |
Returns true of the given offset can be fit into displacement field of the instruction.
Definition at line 5549 of file X86ISelLowering.cpp.
References llvm::CodeModel::Kernel, llvm::Offset, and llvm::CodeModel::Small.
Referenced by llvm::X86TargetLowering::isLegalAddressingMode().
bool llvm::X86::isX87Instruction | ( | MachineInstr & | MI | ) |
Check if the instruction is X87 instruction.
check if the instruction is X87 instruction
Definition at line 2922 of file X86InstrInfo.cpp.
References isX87Reg(), and MI.
Referenced by getNextFPInstruction().
Returns true if Elt is a constant zero or floating point constant +0.0.
Returns true if Elt is a constant zero or a floating point constant +0.0.
Definition at line 6463 of file X86ISelLowering.cpp.
References llvm::isNullConstant(), and llvm::isNullFPConstant().
Referenced by combineAdd(), combineAddOrSubToADCOrSBB(), combineSub(), computeZeroableShuffleElements(), EltsFromConsecutiveLoads(), getFauxShuffleMask(), getMaskNode(), getTargetShuffleAndZeroables(), LowerBuildVectorv4x32(), and LowerSCALAR_TO_VECTOR().
Check if Op is a value that could be used to fold a store into some other x86 instruction as a memory operand.
Ex: pextrb $0, xmm0, (rdi).
Definition at line 5459 of file X86ISelLowering.cpp.
References llvm::ISD::isNormalStore().
Referenced by LowerEXTRACT_VECTOR_ELT_SSE4().
Check if Op is an operation that could be folded into a zero extend x86 instruction.
Definition at line 5463 of file X86ISelLowering.cpp.
References llvm::ISD::ZERO_EXTEND.
Referenced by LowerEXTRACT_VECTOR_ELT_SSE4().
bool llvm::X86::mayFoldLoad | ( | SDValue | Op, |
const X86Subtarget & | Subtarget, | ||
bool | AssumeSingleUse = false |
||
) |
Check if Op is a load operation that could be folded into some other x86 instruction as a memory operand.
Example: vpaddd (rdi), xmm0, xmm0.
Definition at line 5426 of file X86ISelLowering.cpp.
References llvm::X86Subtarget::hasAVX(), and llvm::ISD::isNormalLoad().
Referenced by combineCommutableSHUFP(), combineConcatVectorOps(), combineX86ShuffleChain(), llvm::X86TargetLowering::IsDesirableToPromoteOp(), lowerShuffleAsDecomposedShuffleMerge(), lowerV2X128Shuffle(), mayFoldLoadIntoBroadcastFromMem(), and pushAddIntoCmovOfConsts().
bool llvm::X86::mayFoldLoadIntoBroadcastFromMem | ( | SDValue | Op, |
MVT | EltVT, | ||
const X86Subtarget & | Subtarget, | ||
bool | AssumeSingleUse = false |
||
) |
Check if Op is a load operation that could be folded into a vector splat instruction as a memory operand.
Example: vbroadcastss 16(rdi), xmm2.
Definition at line 5445 of file X86ISelLowering.cpp.
References assert(), llvm::MVT::getScalarSizeInBits(), llvm::X86Subtarget::hasAVX(), and mayFoldLoad().
Referenced by combineConcatVectorOps(), and EltsFromConsecutiveLoads().
Definition at line 288 of file X86EncodingOptimization.cpp.
bool llvm::X86::optimizeInstFromVEX3ToVEX2 | ( | MCInst & | MI, |
const MCInstrDesc & | Desc | ||
) |
Definition at line 22 of file X86EncodingOptimization.cpp.
References llvm::X86II::EncodingMask, llvm::X86II::FormMask, FROM_TO, llvm::MCInstrDesc::isCommutable(), llvm::X86II::isX86_64ExtendedReg(), MI, llvm::X86II::MRMSrcReg, llvm::X86II::OpMapMask, llvm::X86II::REX_W, std::swap(), llvm::X86II::TB, TO_REV, llvm::MCInstrDesc::TSFlags, TSFlags, llvm::X86II::VEX, and llvm::X86II::VEX_4V.
Simplify things like MOV32rm to MOV32o32a.
Definition at line 314 of file X86EncodingOptimization.cpp.
References AddrBaseReg, AddrIndexReg, AddrScaleAmt, AddrSegmentReg, FROM_TO, isARegister(), MI, Saved, and llvm::MCSymbolRefExpr::VK_TLVP.
Definition at line 266 of file X86EncodingOptimization.cpp.
Definition at line 104 of file X86EncodingOptimization.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::isImm(), MI, and TO_IMM1.
Definition at line 474 of file X86EncodingOptimization.cpp.
References MI, optimizeToFixedRegisterForm(), and optimizeToShortImmediateForm().
Definition at line 179 of file X86EncodingOptimization.cpp.
References FROM_TO, llvm::MCOperand::getImm(), and MI.
X86::CPUKind llvm::X86::parseArchX86 | ( | StringRef | CPU, |
bool | Only64Bit = false |
||
) |
Parse CPU
string into a CPUKind.
Will only accept 64-bit capable CPUs if Only64Bit
is true.
Definition at line 449 of file X86TargetParser.cpp.
References CK_None, P, and Processors.
Referenced by parseTuneCPU().
X86::CPUKind llvm::X86::parseTuneCPU | ( | StringRef | CPU, |
bool | Only64Bit = false |
||
) |
Definition at line 457 of file X86TargetParser.cpp.
References CK_None, llvm::is_contained(), NoTuneList, and parseArchX86().
void llvm::X86::updateImpliedFeatures | ( | StringRef | Feature, |
bool | Enabled, | ||
StringMap< bool > & | Features | ||
) |
Set or clear entries in Features
that are implied to be enabled/disabled by the provided Feature
.
Definition at line 682 of file X86TargetParser.cpp.
References CPU_FEATURE_MAX, Enabled, FeatureInfos, llvm::find_if(), getImpliedDisabledFeatures(), getImpliedEnabledFeatures(), I, and Name.