|
LLVM
10.0.0
|
#include "Target/X86/X86Subtarget.h"
Public Types | |
| enum | X86ProcFamilyEnum { Others, IntelAtom, IntelSLM } |
Protected Types | |
| enum | X86SSEEnum { NoSSE, SSE1, SSE2, SSE3, SSSE3, SSE41, SSE42, AVX, AVX2, AVX512F } |
| enum | X863DNowEnum { NoThreeDNow, MMX, ThreeDNow, ThreeDNowA } |
Protected Attributes | |
| X86ProcFamilyEnum | X86ProcFamily = Others |
| X86 processor family: Intel Atom, and others. More... | |
| PICStyles::Style | PICStyle |
| Which PIC style to use. More... | |
| const TargetMachine & | TM |
| X86SSEEnum | X86SSELevel = NoSSE |
| SSE1, SSE2, SSE3, SSSE3, SSE41, SSE42, or none supported. More... | |
| X863DNowEnum | X863DNowLevel = NoThreeDNow |
| MMX, 3DNow, 3DNow Athlon, or none supported. More... | |
| bool | HasX87 = false |
| True if the processor supports X87 instructions. More... | |
| bool | HasCmpxchg8b = false |
| True if the processor supports CMPXCHG8B. More... | |
| bool | HasNOPL = false |
| True if this processor has NOPL instruction (generally pentium pro+). More... | |
| bool | HasCMov = false |
| True if this processor has conditional move instructions (generally pentium pro+). More... | |
| bool | HasX86_64 = false |
| True if the processor supports X86-64 instructions. More... | |
| bool | HasPOPCNT = false |
| True if the processor supports POPCNT. More... | |
| bool | HasSSE4A = false |
| True if the processor supports SSE4A instructions. More... | |
| bool | HasAES = false |
| Target has AES instructions. More... | |
| bool | HasVAES = false |
| bool | HasFXSR = false |
| Target has FXSAVE/FXRESTOR instructions. More... | |
| bool | HasXSAVE = false |
| Target has XSAVE instructions. More... | |
| bool | HasXSAVEOPT = false |
| Target has XSAVEOPT instructions. More... | |
| bool | HasXSAVEC = false |
| Target has XSAVEC instructions. More... | |
| bool | HasXSAVES = false |
| Target has XSAVES instructions. More... | |
| bool | HasPCLMUL = false |
| Target has carry-less multiplication. More... | |
| bool | HasVPCLMULQDQ = false |
| bool | HasGFNI = false |
| Target has Galois Field Arithmetic instructions. More... | |
| bool | HasFMA = false |
| Target has 3-operand fused multiply-add. More... | |
| bool | HasFMA4 = false |
| Target has 4-operand fused multiply-add. More... | |
| bool | HasXOP = false |
| Target has XOP instructions. More... | |
| bool | HasTBM = false |
| Target has TBM instructions. More... | |
| bool | HasLWP = false |
| Target has LWP instructions. More... | |
| bool | HasMOVBE = false |
| True if the processor has the MOVBE instruction. More... | |
| bool | HasRDRAND = false |
| True if the processor has the RDRAND instruction. More... | |
| bool | HasF16C = false |
| Processor has 16-bit floating point conversion instructions. More... | |
| bool | HasFSGSBase = false |
| Processor has FS/GS base insturctions. More... | |
| bool | HasLZCNT = false |
| Processor has LZCNT instruction. More... | |
| bool | HasBMI = false |
| Processor has BMI1 instructions. More... | |
| bool | HasBMI2 = false |
| Processor has BMI2 instructions. More... | |
| bool | HasVBMI = false |
| Processor has VBMI instructions. More... | |
| bool | HasVBMI2 = false |
| Processor has VBMI2 instructions. More... | |
| bool | HasIFMA = false |
| Processor has Integer Fused Multiply Add. More... | |
| bool | HasRTM = false |
| Processor has RTM instructions. More... | |
| bool | HasADX = false |
| Processor has ADX instructions. More... | |
| bool | HasSHA = false |
| Processor has SHA instructions. More... | |
| bool | HasPRFCHW = false |
| Processor has PRFCHW instructions. More... | |
| bool | HasRDSEED = false |
| Processor has RDSEED instructions. More... | |
| bool | HasLAHFSAHF = false |
| Processor has LAHF/SAHF instructions. More... | |
| bool | HasMWAITX = false |
| Processor has MONITORX/MWAITX instructions. More... | |
| bool | HasCLZERO = false |
| Processor has Cache Line Zero instruction. More... | |
| bool | HasCLDEMOTE = false |
| Processor has Cache Line Demote instruction. More... | |
| bool | HasMOVDIRI = false |
| Processor has MOVDIRI instruction (direct store integer). More... | |
| bool | HasMOVDIR64B = false |
| Processor has MOVDIR64B instruction (direct store 64 bytes). More... | |
| bool | HasPTWRITE = false |
| Processor has ptwrite instruction. More... | |
| bool | HasPREFETCHWT1 = false |
| Processor has Prefetch with intent to Write instruction. More... | |
| bool | IsSHLDSlow = false |
| True if SHLD instructions are slow. More... | |
| bool | IsPMULLDSlow = false |
| True if the PMULLD instruction is slow compared to PMULLW/PMULHW and. More... | |
| bool | IsPMADDWDSlow = false |
| True if the PMADDWD instruction is slow compared to PMULLD. More... | |
| bool | IsUAMem16Slow = false |
| True if unaligned memory accesses of 16-bytes are slow. More... | |
| bool | IsUAMem32Slow = false |
| True if unaligned memory accesses of 32-bytes are slow. More... | |
| bool | HasSSEUnalignedMem = false |
| True if SSE operations can have unaligned memory operands. More... | |
| bool | HasCmpxchg16b = false |
| True if this processor has the CMPXCHG16B instruction; this is true for most x86-64 chips, but not the first AMD chips. More... | |
| bool | UseLeaForSP = false |
| True if the LEA instruction should be used for adjusting the stack pointer. More... | |
| bool | HasPOPCNTFalseDeps = false |
| True if POPCNT instruction has a false dependency on the destination register. More... | |
| bool | HasLZCNTFalseDeps = false |
| True if LZCNT/TZCNT instructions have a false dependency on the destination register. More... | |
| bool | HasFastVariableShuffle = false |
| True if its preferable to combine to a single shuffle using a variable mask over multiple fixed shuffles. More... | |
| bool | InsertVZEROUPPER = false |
| True if vzeroupper instructions should be inserted after code that uses ymm or zmm registers. More... | |
| bool | HasFast11ByteNOP = false |
| True if there is no performance penalty for writing NOPs with up to 11 bytes. More... | |
| bool | HasFast15ByteNOP = false |
| True if there is no performance penalty for writing NOPs with up to 15 bytes. More... | |
| bool | HasFastGather = false |
| True if gather is reasonably fast. More... | |
| bool | HasFastScalarFSQRT = false |
| True if hardware SQRTSS instruction is at least as fast (latency) as RSQRTSS followed by a Newton-Raphson iteration. More... | |
| bool | HasFastVectorFSQRT = false |
| True if hardware SQRTPS/VSQRTPS instructions are at least as fast (throughput) as RSQRTPS/VRSQRTPS followed by a Newton-Raphson iteration. More... | |
| bool | HasSlowDivide32 = false |
| True if 8-bit divisions are significantly faster than 32-bit divisions and should be used when possible. More... | |
| bool | HasSlowDivide64 = false |
| True if 32-bit divides are significantly faster than 64-bit divisions and should be used when possible. More... | |
| bool | HasFastLZCNT = false |
| True if LZCNT instruction is fast. More... | |
| bool | HasFastSHLDRotate = false |
| True if SHLD based rotate is fast. More... | |
| bool | HasMacroFusion = false |
| True if the processor supports macrofusion. More... | |
| bool | HasBranchFusion = false |
| True if the processor supports branch fusion. More... | |
| bool | HasERMSB = false |
| True if the processor has enhanced REP MOVSB/STOSB. More... | |
| bool | PadShortFunctions = false |
| True if the short functions should be padded to prevent a stall when returning too early. More... | |
| bool | SlowTwoMemOps = false |
| True if two memory operand instructions should use a temporary register instead. More... | |
| bool | LEAUsesAG = false |
| True if the LEA instruction inputs have to be ready at address generation (AG) time. More... | |
| bool | SlowLEA = false |
| True if the LEA instruction with certain arguments is slow. More... | |
| bool | Slow3OpsLEA = false |
| True if the LEA instruction has all three source operands: base, index, and offset or if the LEA instruction uses base and index registers where the base is EBP, RBP,or R13. More... | |
| bool | SlowIncDec = false |
| True if INC and DEC instructions are slow when writing to flags. More... | |
| bool | HasPFI = false |
| Processor has AVX-512 PreFetch Instructions. More... | |
| bool | HasERI = false |
| Processor has AVX-512 Exponential and Reciprocal Instructions. More... | |
| bool | HasCDI = false |
| Processor has AVX-512 Conflict Detection Instructions. More... | |
| bool | HasVPOPCNTDQ = false |
| Processor has AVX-512 population count Instructions. More... | |
| bool | HasDQI = false |
| Processor has AVX-512 Doubleword and Quadword instructions. More... | |
| bool | HasBWI = false |
| Processor has AVX-512 Byte and Word instructions. More... | |
| bool | HasVLX = false |
| Processor has AVX-512 Vector Length eXtenstions. More... | |
| bool | HasPKU = false |
| Processor has PKU extenstions. More... | |
| bool | HasVNNI = false |
| Processor has AVX-512 Vector Neural Network Instructions. More... | |
| bool | HasBF16 = false |
| Processor has AVX-512 bfloat16 floating-point extensions. More... | |
| bool | HasENQCMD = false |
| Processor supports ENQCMD instructions. More... | |
| bool | HasBITALG = false |
| Processor has AVX-512 Bit Algorithms instructions. More... | |
| bool | HasVP2INTERSECT = false |
| Processor has AVX-512 vp2intersect instructions. More... | |
| bool | DeprecatedHasMPX = false |
| Deprecated flag for MPX instructions. More... | |
| bool | HasSHSTK = false |
| Processor supports CET SHSTK - Control-Flow Enforcement Technology using Shadow Stack. More... | |
| bool | HasINVPCID = false |
| Processor supports Invalidate Process-Context Identifier. More... | |
| bool | HasSGX = false |
| Processor has Software Guard Extensions. More... | |
| bool | HasCLFLUSHOPT = false |
| Processor supports Flush Cache Line instruction. More... | |
| bool | HasCLWB = false |
| Processor supports Cache Line Write Back instruction. More... | |
| bool | HasWBNOINVD = false |
| Processor supports Write Back No Invalidate instruction. More... | |
| bool | HasRDPID = false |
| Processor support RDPID instruction. More... | |
| bool | HasWAITPKG = false |
| Processor supports WaitPKG instructions. More... | |
| bool | HasPCONFIG = false |
| Processor supports PCONFIG instruction. More... | |
| bool | HasFastBEXTR = false |
| Processor has a single uop BEXTR implementation. More... | |
| bool | HasFastHorizontalOps = false |
| Try harder to combine to horizontal vector ops if they are fast. More... | |
| bool | HasFastScalarShiftMasks = false |
| Prefer a left/right scalar logical shifts pair over a shift+and pair. More... | |
| bool | HasFastVectorShiftMasks = false |
| Prefer a left/right vector logical shifts pair over a shift+and pair. More... | |
| bool | UseRetpolineIndirectCalls = false |
| Use a retpoline thunk rather than indirect calls to block speculative execution. More... | |
| bool | UseRetpolineIndirectBranches = false |
| Use a retpoline thunk or remove any indirect branch to block speculative execution. More... | |
| bool | DeprecatedUseRetpoline = false |
Deprecated flag, query UseRetpolineIndirectCalls and UseRetpolineIndirectBranches instead. More... | |
| bool | UseRetpolineExternalThunk = false |
| When using a retpoline thunk, call an externally provided thunk rather than emitting one inside the compiler. More... | |
| bool | UseSoftFloat = false |
| Use software floating point for code generation. More... | |
| bool | UseAA = false |
| Use alias analysis during code generation. More... | |
| Align | stackAlignment = Align(4) |
| The minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function. More... | |
| unsigned | MaxInlineSizeThreshold = 128 |
| Max. More... | |
| bool | Prefer128Bit = false |
| Indicates target prefers 128 bit instructions. More... | |
| bool | Prefer256Bit = false |
| Indicates target prefers 256 bit instructions. More... | |
| bool | PreferMaskRegisters = false |
| Indicates target prefers AVX512 mask registers. More... | |
| bool | ThreewayBranchProfitable = false |
| Threeway branch is profitable in this subtarget. More... | |
| bool | UseGLMDivSqrtCosts = false |
| Use Goldmont specific floating point div/sqrt costs. More... | |
| Triple | TargetTriple |
| What processor and OS we're targeting. More... | |
| std::unique_ptr< CallLowering > | CallLoweringInfo |
| GlobalISel related APIs. More... | |
| std::unique_ptr< LegalizerInfo > | Legalizer |
| std::unique_ptr< RegisterBankInfo > | RegBankInfo |
| std::unique_ptr< InstructionSelector > | InstSelector |
Definition at line 52 of file X86Subtarget.h.
|
protected |
| Enumerator | |
|---|---|
| NoThreeDNow | |
| MMX | |
| ThreeDNow | |
| ThreeDNowA | |
Definition at line 67 of file X86Subtarget.h.
| Enumerator | |
|---|---|
| Others | |
| IntelAtom | |
| IntelSLM | |
Definition at line 56 of file X86Subtarget.h.
|
protected |
| Enumerator | |
|---|---|
| NoSSE | |
| SSE1 | |
| SSE2 | |
| SSE3 | |
| SSSE3 | |
| SSE41 | |
| SSE42 | |
| AVX | |
| AVX2 | |
| AVX512F | |
Definition at line 63 of file X86Subtarget.h.
| X86Subtarget::X86Subtarget | ( | const Triple & | TT, |
| StringRef | CPU, | ||
| StringRef | FS, | ||
| const X86TargetMachine & | TM, | ||
| MaybeAlign | StackAlignOverride, | ||
| unsigned | PreferVectorWidthOverride, | ||
| unsigned | RequiredVectorWidth | ||
| ) |
This constructor initializes the data members to match that of the specified triple.
Definition at line 322 of file X86Subtarget.cpp.
References CallLoweringInfo, llvm::createX86InstructionSelector(), getRegisterInfo(), getTargetLowering(), llvm::PICStyles::GOT, InstSelector, is64Bit(), isPositionIndependent(), isTargetCOFF(), isTargetDarwin(), isTargetELF(), llvm::PICStyles::None, RegBankInfo, llvm::PICStyles::RIPRel, setPICStyle(), and llvm::PICStyles::StubPIC.
|
inline |
Definition at line 723 of file X86Subtarget.h.
Referenced by lower1BitShuffle(), LowerMUL(), LowerMULH(), LowerScalarVariableShift(), and LowerShift().
|
inline |
Definition at line 720 of file X86Subtarget.h.
Referenced by lower1BitShuffle(), LowerScalarVariableShift(), LowerShift(), LowerSIGN_EXTEND_Mask(), LowerTruncateVecI1(), LowerVectorCTLZ(), LowerVectorCTLZ_AVX512CDI(), LowerVectorCTPOP(), and LowerZERO_EXTEND_Mask().
Classify a blockaddress reference for the current subtarget according to how we should reference it in a non-pcrel context.
Definition at line 58 of file X86Subtarget.cpp.
References classifyLocalReference().
Referenced by getRetpolineSymbol(), and LowerEXTRACT_SUBVECTOR().
| unsigned char X86Subtarget::classifyGlobalFunctionReference | ( | const GlobalValue * | GV, |
| const Module & | M | ||
| ) | const |
Classify a global function reference for the current subtarget.
Definition at line 177 of file X86Subtarget.cpp.
References F(), llvm::Function::getCallingConv(), llvm::Module::getRtLibUseGOT(), llvm::GlobalValue::hasDLLImportStorageClass(), llvm::Function::hasFnAttribute(), is64Bit(), isTargetCOFF(), isTargetELF(), llvm::X86II::MO_COFFSTUB, llvm::X86II::MO_DLLIMPORT, llvm::X86II::MO_GOTPCREL, llvm::X86II::MO_NO_FLAG, llvm::X86II::MO_PLT, llvm::TargetMachine::shouldAssumeDSOLocal(), TM, and llvm::CallingConv::X86_RegCall.
Referenced by classifyGlobalFunctionReference(), and LowerEXTRACT_SUBVECTOR().
| unsigned char X86Subtarget::classifyGlobalFunctionReference | ( | const GlobalValue * | GV | ) | const |
Definition at line 172 of file X86Subtarget.cpp.
References classifyGlobalFunctionReference(), and llvm::GlobalValue::getParent().
| unsigned char X86Subtarget::classifyGlobalReference | ( | const GlobalValue * | GV, |
| const Module & | M | ||
| ) | const |
Definition at line 122 of file X86Subtarget.cpp.
References classifyLocalReference(), llvm::GlobalValue::getAbsoluteSymbolRange(), llvm::TargetMachine::getCodeModel(), llvm::GlobalValue::hasDLLImportStorageClass(), is64Bit(), isOSWindows(), isPositionIndependent(), isTargetCOFF(), isTargetDarwin(), isTargetELF(), llvm::CodeModel::Large, llvm::X86II::MO_ABS8, llvm::X86II::MO_COFFSTUB, llvm::X86II::MO_DARWIN_NONLAZY, llvm::X86II::MO_DARWIN_NONLAZY_PIC_BASE, llvm::X86II::MO_DLLIMPORT, llvm::X86II::MO_GOT, llvm::X86II::MO_GOTPCREL, llvm::X86II::MO_NO_FLAG, llvm::TargetMachine::shouldAssumeDSOLocal(), and TM.
Referenced by classifyGlobalReference(), llvm::X86TargetLowering::isLegalAddressingMode(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), and LowerEXTRACT_SUBVECTOR().
| unsigned char X86Subtarget::classifyGlobalReference | ( | const GlobalValue * | GV | ) | const |
Classify a global variable reference for the current subtarget according to how we should reference it in a non-pcrel context.
Definition at line 65 of file X86Subtarget.cpp.
References classifyGlobalReference(), and llvm::GlobalValue::getParent().
| unsigned char X86Subtarget::classifyLocalReference | ( | const GlobalValue * | GV | ) | const |
Classify a global variable reference for the current subtarget according to how we should reference it in a non-pcrel context.
Definition at line 70 of file X86Subtarget.cpp.
References llvm::TargetMachine::getCodeModel(), llvm::GlobalValue::hasCommonLinkage(), is64Bit(), llvm::GlobalValue::isDeclarationForLinker(), isPositionIndependent(), isTargetCOFF(), isTargetDarwin(), isTargetELF(), llvm::CodeModel::Kernel, llvm::CodeModel::Large, llvm_unreachable, llvm::CodeModel::Medium, llvm::X86II::MO_DARWIN_NONLAZY_PIC_BASE, llvm::X86II::MO_GOTOFF, llvm::X86II::MO_NO_FLAG, llvm::X86II::MO_PIC_BASE_OFFSET, llvm::CodeModel::Small, llvm::CodeModel::Tiny, and TM.
Referenced by classifyBlockAddressReference(), classifyGlobalReference(), and LowerEXTRACT_SUBVECTOR().
|
inlineoverride |
Definition at line 874 of file X86Subtarget.h.
|
override |
Definition at line 374 of file X86Subtarget.cpp.
References hasCMov(), and X86EarlyIfConv.
|
inlineoverride |
If we are using retpolines, we need to expand indirectbr to avoid it lowering to an actual indirect jump.
Definition at line 858 of file X86Subtarget.h.
|
inlineoverride |
Enable the MachineScheduler pass for all X86 subtargets.
Definition at line 863 of file X86Subtarget.h.
|
inlineoverride |
Definition at line 870 of file X86Subtarget.h.
|
override |
Methods used by Global ISel.
Definition at line 358 of file X86Subtarget.cpp.
References CallLoweringInfo.
|
inlineoverride |
Definition at line 512 of file X86Subtarget.h.
Referenced by emitLockedStackOp(), ExpandMOVImmSExti8(), getMOVL(), llvm::X86TargetLowering::getRegisterByName(), isSortedByValueNo(), and LowerADJUST_TRAMPOLINE().
|
inline |
Definition at line 651 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getUserCost().
|
inlineoverride |
Definition at line 510 of file X86Subtarget.h.
Referenced by callHasRegMask(), createPHIsForCMOVsInSinkBB(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), emitXBegin(), findUncondBrI(), getRetpolineSymbol(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::X86FrameLowering::inlineStackProbe(), isCallInstruction(), IsCallReturnTwice(), llvm::X86TargetLowering::isIntDivCheap(), isLEA(), llvm::X86CallLowering::lowerCall(), MatchingStackOffset(), llvm::X86TargetLowering::needsFixedCatchObjects(), llvm::X86AsmPrinter::runOnMachineFunction(), and llvm::X86LegalizerInfo::X86LegalizerInfo().
|
override |
Definition at line 362 of file X86Subtarget.cpp.
References InstSelector.
|
override |
Definition at line 366 of file X86Subtarget.cpp.
|
inline |
Returns the maximum memset / memcpy size that still makes it profitable to inline the call.
Definition at line 531 of file X86Subtarget.h.
References llvm::X86AS::FS.
Referenced by emitConstantSizeRepmov().
|
inline |
Definition at line 575 of file X86Subtarget.h.
|
override |
Definition at line 378 of file X86Subtarget.cpp.
References llvm::createX86MacroFusionDAGMutation().
|
inline |
Definition at line 713 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::canMergeStoresTo(), llvm::X86TTIImpl::enableMemCmpExpansion(), llvm::X86TargetLowering::getOptimalMemOpType(), and llvm::X86TTIImpl::getRegisterBitWidth().
|
inline |
Definition at line 739 of file X86Subtarget.h.
|
override |
Definition at line 370 of file X86Subtarget.cpp.
References RegBankInfo.
|
inlineoverride |
Definition at line 520 of file X86Subtarget.h.
Referenced by createPHIsForCMOVsInSinkBB(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), expandXorFP(), getBroadcastOpcode(), getLoadStoreRegOpcode(), getMOVL(), llvm::X86TargetLowering::getRegisterByName(), getRetpolineSymbol(), llvm::X86TargetLowering::getReturnAddressFrameIndex(), llvm::X86TargetLowering::isIntDivCheap(), isLEA(), LowerADJUST_TRAMPOLINE(), llvm::X86CallLowering::lowerCall(), LowerINTRINSIC_W_CHAIN(), lowerRegToMasks(), MatchingStackOffset(), llvm::X86TargetLowering::needsFixedCatchObjects(), Passv64i1ArgInRegs(), recoverFramePointer(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::X86AsmPrinter::runOnMachineFunction(), X86Subtarget(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 714 of file X86Subtarget.h.
|
inline |
Definition at line 652 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getUserCost().
|
inlineoverride |
Definition at line 516 of file X86Subtarget.h.
|
inline |
Returns the minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function for this subtarget.
Definition at line 527 of file X86Subtarget.h.
|
inlineoverride |
Definition at line 506 of file X86Subtarget.h.
Referenced by combineConcatVectorOps(), combineOrCmpEqZeroToCtlzSrl(), combineSIntToFP(), llvm::X86FrameLowering::emitPrologue(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::X86FrameLowering::inlineStackProbe(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), and X86Subtarget().
Definition at line 752 of file X86Subtarget.h.
Referenced by computeBytesPoppedByCalleeForSRet(), llvm::X86TargetLowering::getIRStackGuard(), getMOVL(), llvm::X86TargetLowering::getSafeStackPointerLocation(), llvm::X86TargetLowering::getSDagStackGuard(), llvm::X86TargetLowering::getSSPStackGuardCheck(), llvm::X86TargetLowering::insertSSPDeclarations(), isSortedByValueNo(), Passv64i1ArgInRegs(), llvm::X86TargetLowering::useStackGuardXorFP(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 596 of file X86Subtarget.h.
References llvm::X86II::ThreeDNow.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 597 of file X86Subtarget.h.
|
inline |
Definition at line 628 of file X86Subtarget.h.
|
inline |
Definition at line 599 of file X86Subtarget.h.
|
inline |
Definition at line 613 of file X86Subtarget.h.
Referenced by combineFMA(), combineFneg(), combineShuffleToFMAddSub(), llvm::X86TargetLowering::getNegatedExpression(), isFMAddSubOrFMSubAdd(), llvm::X86TargetLowering::isFMAFasterThanFMulAndFAdd(), llvm::X86TargetLowering::isNegatibleForFree(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 590 of file X86Subtarget.h.
References llvm::AVX.
Referenced by callHasRegMask(), combineBasicSADPattern(), combineBitcastvxi1(), combineConcatVectorOps(), combineConcatVectors(), combineExtInVec(), combineExtractSubvector(), combineFaddFsub(), combineHorizontalPredicateResult(), combineLoopSADPattern(), combineVectorSizedSetCCEquality(), combineX86ShuffleChain(), CopyToFromAsymmetricReg(), createVariablePermute(), EltsFromConsecutiveLoads(), EmitCmp(), emitXBegin(), llvm::X86TTIImpl::enableMemCmpExpansion(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticReductionCost(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), getLoadStoreRegOpcode(), llvm::X86TTIImpl::getMaxInterleaveFactor(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TTIImpl::getRegisterBitWidth(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), InsertBitToMaskVector(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::X86TTIImpl::isLegalNTStore(), isSortedByValueNo(), llvm::X86LegalizerInfo::legalizeIntrinsic(), LowerANY_EXTEND(), lowerBuildVectorAsBroadcast(), LowerEXTEND_VECTOR_INREG(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsBroadcast(), LowerToHorizontalOp(), lowerUINT_TO_FP_vXi32(), lowerV2F64Shuffle(), lowerV4F32Shuffle(), LowerZERO_EXTEND(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchUnaryPermuteShuffle(), matchUnaryShuffle(), llvm::X86TargetLowering::reduceSelectOfFPConstantLoads(), useVectorCast(), X86ChooseCmpOpcode(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 591 of file X86Subtarget.h.
References llvm::AVX2.
Referenced by combineConcatVectorOps(), combineExtractSubvector(), combineShuffleOfConcatUndef(), combineVectorTruncation(), combineX86ShuffleChain(), convertShiftLeftToScale(), createVariablePermute(), EltsFromConsecutiveLoads(), foldVectorXorShiftIntoCmp(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticReductionCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::X86TTIImpl::getShuffleCost(), InsertBitToMaskVector(), llvm::X86TargetLowering::isDesirableToCombineBuildVectorToShuffleTruncate(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalNTLoad(), isLegalToCallImmediateAddr(), llvm::X86TargetLowering::isVectorClearMaskLegal(), llvm::X86TargetLowering::isVectorShiftByScalarCheap(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lower256BitShuffle(), lowerBuildVectorAsBroadcast(), LowerMGATHER(), LowerRotate(), lowerShuffleAsBlend(), lowerShuffleAsBroadcast(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsLanePermuteAndShuffle(), lowerShuffleAsRepeatedMaskAndLanePermute(), lowerShuffleAsTruncBroadcast(), lowerShuffleWithPSHUFB(), lowerShuffleWithUndefHalf(), LowerToHorizontalOp(), lowerV16I16Shuffle(), lowerV2F64Shuffle(), lowerV2I64Shuffle(), lowerV2X128Shuffle(), lowerV32I8Shuffle(), lowerV4F32Shuffle(), lowerV4F64Shuffle(), lowerV4I32Shuffle(), lowerV4I64Shuffle(), lowerV8F32Shuffle(), lowerV8I32Shuffle(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchUnaryPermuteShuffle(), llvm::X86TargetLowering::shouldProduceAndByConstByHoistingConstFromShiftsLHSOfAnd(), and SplitOpsAndApply().
|
inline |
Definition at line 592 of file X86Subtarget.h.
Referenced by canonicalizeBitSelect(), combineBitcast(), combineBitcastvxi1(), combineCastedMaskArithmetic(), combineCompareEqual(), combineExtSetcc(), combineLoad(), combineMaskedLoad(), combineSetCC(), combineStore(), combineToExtendBoolVectorInReg(), combineTruncateWithSat(), combineVectorPack(), combineVectorSignBitsTruncation(), combineX86ShuffleChain(), llvm::X86TargetLowering::convertSelectOfConstantsToMath(), convertShiftLeftToScale(), CopyToFromAsymmetricReg(), createVariablePermute(), EmitAVX512Test(), llvm::X86TTIImpl::enableMemCmpExpansion(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticReductionCost(), getBroadcastOpcode(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86RegisterInfo::getLargestLegalSuperClass(), getLoadStoreRegOpcode(), llvm::X86TTIImpl::getMaskedMemoryOpCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::X86TTIImpl::getNumberOfRegisters(), llvm::X86TargetLowering::getNumRegistersForCallingConv(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getPreferredVectorAction(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TTIImpl::getRegisterBitWidth(), llvm::X86TargetLowering::getRegisterTypeForCallingConv(), llvm::X86RegisterInfo::getReservedRegs(), llvm::X86TargetLowering::getSetCCResultType(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::X86TTIImpl::getUserCost(), llvm::X86TargetLowering::getVectorTypeBreakdownForCallingConv(), llvm::X86TTIImpl::isLegalMaskedExpandLoad(), llvm::X86TTIImpl::isLegalMaskedGather(), llvm::X86TTIImpl::isLegalMaskedScatter(), isLegalToCallImmediateAddr(), llvm::X86TargetLowering::isLoadBitCastBeneficial(), isSortedByValueNo(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lower1BitShuffle(), lower512BitShuffle(), LowerBITCAST(), LowerEXTEND_VECTOR_INREG(), LowerLoad(), LowerMGATHER(), LowerMLOAD(), LowerMSCATTER(), LowerMSTORE(), LowerMULH(), LowerRotate(), LowerShift(), lowerShuffleWithUndefHalf(), LowerStore(), LowerTruncateVecI1(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vec(), lowerUINT_TO_FP_vXi32(), lowerV8F32Shuffle(), lowerV8I32Shuffle(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchUnaryPermuteShuffle(), matchUnaryShuffle(), llvm::X86TargetLowering::ReplaceNodeResults(), SupportedVectorShiftWithImm(), SupportedVectorVarShift(), useVectorCast(), X86ChooseCmpOpcode(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 691 of file X86Subtarget.h.
|
inline |
Definition at line 693 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 622 of file X86Subtarget.h.
Referenced by foldMaskedShiftToBEXTR(), llvm::X86TargetLowering::hasAndNotCompare(), llvm::X86TargetLowering::isCheapToSpeculateCttz(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 623 of file X86Subtarget.h.
Referenced by hasBZHI().
|
inline |
Definition at line 672 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::canMacroFuseCmp(), and shouldScheduleAdjacent().
|
inline |
Definition at line 687 of file X86Subtarget.h.
Referenced by llvm::X86FrameLowering::assignCalleeSavedSpillSlots(), combineBitcastvxi1(), combineScalarAndWithMaskSetcc(), combineSetCC(), combineStore(), combineTruncateWithSat(), combineVectorSizedSetCCEquality(), combineX86ShuffleChain(), CopyToFromAsymmetricReg(), createVariablePermute(), EmitAVX512Test(), ExtractBitFromMaskVector(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getInterleavedMemoryOpCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), getLoadStoreRegOpcode(), getMaskNode(), llvm::X86TargetLowering::getNumRegistersForCallingConv(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getPreferredVectorAction(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TargetLowering::getRegisterTypeForCallingConv(), llvm::X86TargetLowering::getSetCCResultType(), llvm::X86TTIImpl::getShuffleCost(), getv64i1Argument(), llvm::X86TargetLowering::getVectorTypeBreakdownForCallingConv(), getZeroVector(), llvm::X86TTIImpl::isLegalMaskedLoad(), llvm::X86TargetLowering::isVectorShiftByScalarCheap(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lower1BitShuffle(), LowerBITCAST(), LowerBITREVERSE(), LowerMLOAD(), LowerMSTORE(), LowerMULH(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsByteRotate(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleWithPSHUFB(), lowerShuffleWithVPMOV(), LowerSIGN_EXTEND_Mask(), LowerTruncateVecI1(), lowerV16I16Shuffle(), lowerV16I32Shuffle(), lowerV32I16Shuffle(), lowerV64I8Shuffle(), LowerVectorCTLZ(), LowerVectorCTPOP(), LowerZERO_EXTEND_Mask(), matchBinaryShuffle(), matchShuffleAsShift(), Passv64i1ArgInRegs(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), SupportedVectorShiftWithImm(), SupportedVectorVarShift(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 682 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getIntrinsicInstrCost(), lowerBuildVectorAsBroadcast(), LowerVectorCTLZ(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 642 of file X86Subtarget.h.
|
inline |
Definition at line 695 of file X86Subtarget.h.
|
inline |
Definition at line 696 of file X86Subtarget.h.
|
inline |
Definition at line 641 of file X86Subtarget.h.
|
inline |
Definition at line 583 of file X86Subtarget.h.
References is64Bit().
Referenced by EmitCmp(), enableEarlyIfConversion(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 654 of file X86Subtarget.h.
References is64Bit().
Referenced by LowerRotate(), llvm::X86TargetLowering::ReplaceNodeResults(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 579 of file X86Subtarget.h.
Referenced by LowerRotate(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 686 of file X86Subtarget.h.
Referenced by combineBitcast(), combineSIntToFP(), EmitAVX512Test(), ExtractBitFromMaskVector(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCastInstrCost(), insert1BitVector(), llvm::X86TargetLowering::isLoadBitCastBeneficial(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lower1BitShuffle(), lower1BitShuffleAsKSHIFTR(), LowerCONCAT_VECTORSvXi1(), LowerEXTRACT_SUBVECTOR(), LowerI64IntToFP_AVX512DQ(), lowerINT_TO_FP_vXi64(), LowerLoad(), LowerMUL(), LowerSIGN_EXTEND_Mask(), LowerStore(), LowerTruncateVecI1(), llvm::X86TargetLowering::ReplaceNodeResults(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 704 of file X86Subtarget.h.
|
inline |
Definition at line 685 of file X86Subtarget.h.
|
inline |
Definition at line 673 of file X86Subtarget.h.
Referenced by emitConstantSizeRepmov().
|
inline |
Definition at line 619 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 667 of file X86Subtarget.h.
Referenced by foldMaskedShiftToBEXTR().
|
inline |
Definition at line 662 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::isLegalMaskedGather(), and isLegalToCallImmediateAddr().
|
inline |
Definition at line 668 of file X86Subtarget.h.
Referenced by combineReductionToHorizontal(), and shouldUseHorizontalOp().
|
inline |
Definition at line 665 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::isCtlzFast().
|
inline |
Definition at line 663 of file X86Subtarget.h.
Referenced by EmitCmp().
|
inline |
Definition at line 669 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::shouldFoldConstantShiftPairToMask().
|
inline |
Definition at line 666 of file X86Subtarget.h.
|
inline |
Definition at line 658 of file X86Subtarget.h.
Referenced by combineX86ShuffleChain(), and lowerShuffleWithUndefHalf().
|
inline |
Definition at line 664 of file X86Subtarget.h.
Referenced by EmitCmp().
|
inline |
Definition at line 670 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::shouldFoldConstantShiftPairToMask().
|
inline |
Definition at line 611 of file X86Subtarget.h.
|
inline |
Definition at line 612 of file X86Subtarget.h.
|
inline |
Definition at line 620 of file X86Subtarget.h.
|
inline |
Definition at line 601 of file X86Subtarget.h.
|
inline |
Definition at line 608 of file X86Subtarget.h.
|
inline |
Definition at line 626 of file X86Subtarget.h.
|
inline |
Definition at line 593 of file X86Subtarget.h.
Referenced by combineConcatVectorOps(), combineHorizontalPredicateResult(), combineLoad(), combineLogicBlendIntoPBLENDV(), combineSignExtendInReg(), convertShiftLeftToScale(), EltsFromConsecutiveLoads(), getPMOVMSKB(), LowerABS(), LowerAVXExtend(), LowerBITREVERSE(), lowerBuildVectorAsBroadcast(), LowerEXTEND_VECTOR_INREG(), LowerMUL(), LowerMULH(), LowerScalarImmediateShift(), LowerShift(), LowerSIGN_EXTEND(), LowerTruncateVecI1(), LowerVectorCTLZ(), LowerVectorCTPOP(), matchBinaryShuffle(), matchUnaryShuffle(), SupportedVectorShiftWithImm(), SupportedVectorVarShift(), truncateVectorWithPACK(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 703 of file X86Subtarget.h.
|
inline |
Definition at line 639 of file X86Subtarget.h.
Referenced by EmitCmp().
|
inline |
Definition at line 616 of file X86Subtarget.h.
|
inline |
Definition at line 621 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TargetLowering::isCheapToSpeculateCtlz(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 657 of file X86Subtarget.h.
Referenced by hasPartialRegUpdate().
|
inline |
Definition at line 671 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::canMacroFuseCmp(), and shouldScheduleAdjacent().
|
inline |
Use mfence if we have SSE2 or we're on x86-64 (even if we asked for no-sse2).
There isn't any reason to disable it if the target processor supports it.
Definition at line 750 of file X86Subtarget.h.
References is64Bit().
Referenced by LowerATOMIC_FENCE(), and LowerRotate().
|
inline |
Definition at line 595 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 617 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 644 of file X86Subtarget.h.
|
inline |
Definition at line 643 of file X86Subtarget.h.
|
inline |
Definition at line 640 of file X86Subtarget.h.
|
inline |
Definition at line 580 of file X86Subtarget.h.
|
inline |
Definition at line 606 of file X86Subtarget.h.
|
inline |
Definition at line 700 of file X86Subtarget.h.
|
inline |
Definition at line 684 of file X86Subtarget.h.
|
inline |
Definition at line 689 of file X86Subtarget.h.
|
inline |
Definition at line 598 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getPopcntSupport(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 656 of file X86Subtarget.h.
Referenced by hasPartialRegUpdate().
|
inline |
Definition at line 631 of file X86Subtarget.h.
|
inline |
Definition at line 630 of file X86Subtarget.h.
|
inline |
Definition at line 645 of file X86Subtarget.h.
|
inline |
Definition at line 698 of file X86Subtarget.h.
|
inline |
Definition at line 618 of file X86Subtarget.h.
|
inline |
Definition at line 638 of file X86Subtarget.h.
|
inline |
Definition at line 627 of file X86Subtarget.h.
|
inline |
Definition at line 701 of file X86Subtarget.h.
|
inline |
Definition at line 629 of file X86Subtarget.h.
|
inline |
Definition at line 694 of file X86Subtarget.h.
|
inline |
Definition at line 674 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 675 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 584 of file X86Subtarget.h.
Referenced by combineAnd(), combineBitcast(), combineFAndFNotToFAndn(), combineFMinNumFMaxNum(), combineOr(), combineSetCC(), combineXor(), convertIntLogicToFPLogic(), createMMXBuildVector(), EmitCmp(), get64BitArgumentXMMs(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TargetLowering::getByValTypeAlignment(), llvm::X86RegisterInfo::getCalleeSavedRegs(), llvm::X86RegisterInfo::getCallPreservedMask(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), getMOVL(), llvm::X86TTIImpl::getNumberOfRegisters(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TTIImpl::getRegisterBitWidth(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), llvm::X86TargetLowering::hasAndNot(), llvm::X86TTIImpl::isLegalNTLoad(), llvm::X86TTIImpl::isLegalNTStore(), isSortedByValueNo(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lowerRegToMasks(), LowerStore(), llvm::X86TargetLowering::LowerXConstraint(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), Passv64i1ArgInRegs(), X86ChooseCmpOpcode(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 585 of file X86Subtarget.h.
Referenced by combineAnd(), combineBasicSADPattern(), combineBitcast(), combineBitcastvxi1(), combineCompareEqual(), combineExtractWithShuffle(), combineFAndFNotToFAndn(), combineFMinNumFMaxNum(), combineHorizontalPredicateResult(), combineLogicBlendIntoPBLENDV(), combineLoopMAddPattern(), combineLoopSADPattern(), combineMOVMSK(), combineMulToPMADDWD(), combineMulToPMULDQ(), combineOr(), combinePMULH(), combineReductionToHorizontal(), combineSetCC(), combineStore(), combineSubToSubus(), combineToExtendBoolVectorInReg(), combineTruncateWithSat(), combineVectorSignBitsTruncation(), combineVectorSizedSetCCEquality(), combineVectorTruncation(), combineX86ShuffleChain(), combineXor(), llvm::X86InstrInfo::commuteInstructionImpl(), convertIntLogicToFPLogic(), detectAVGPattern(), EmitCmp(), llvm::X86TTIImpl::enableMemCmpExpansion(), llvm::X86InstrInfo::findCommutedOpIndices(), foldVectorXorShiftIntoCmp(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticReductionCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::X86TargetLowering::getOptimalMemOpType(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::getSingleConstraintMatchWeight(), getZeroVector(), llvm::X86TargetLowering::hasAndNot(), InsertBitToMaskVector(), isSortedByValueNo(), llvm::X86LegalizerInfo::legalizeIntrinsic(), LowerBITCAST(), LowerBuildVectorAsInsert(), LowerEXTEND_VECTOR_INREG(), LowerMUL(), LowerMULH(), lowerRegToMasks(), LowerRotate(), LowerShift(), LowerStore(), lowerV4F32Shuffle(), lowerX86FPLogicOp(), llvm::X86TargetLowering::LowerXConstraint(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchPMADDWD(), matchPMADDWD_2(), matchUnaryPermuteShuffle(), matchUnaryShuffle(), materializeVectorConstant(), Passv64i1ArgInRegs(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), SplitOpsAndApply(), SupportedVectorShiftWithImm(), truncateVectorWithPACK(), useVectorCast(), X86ChooseCmpOpcode(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 586 of file X86Subtarget.h.
Referenced by combineFaddFsub(), combineReductionToHorizontal(), isAddSubOrSubAdd(), lowerAddSubToHorizontalOp(), LowerBuildVectorv4x32(), lowerShuffleAsBroadcast(), LowerToHorizontalOp(), LowerTruncateVecI1(), LowerUINT_TO_FP_i64(), lowerV4F32Shuffle(), and matchUnaryShuffle().
|
inline |
Definition at line 588 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::allowsMisalignedMemoryAccesses(), combineExtractWithShuffle(), combineHorizontalMinMaxResult(), combineLogicBlendIntoPBLENDV(), combineLoopMAddPattern(), combineMulToPMADDWD(), combineMulToPMULDQ(), combineReductionToHorizontal(), combineTruncateWithSat(), combineVectorSignBitsTruncation(), combineVectorSizedSetCCEquality(), combineVectorTruncation(), llvm::X86InstrInfo::commuteInstructionImpl(), convertShiftLeftToScale(), createVariablePermute(), ExtractBitFromMaskVector(), llvm::X86InstrInfo::findCommutedOpIndices(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCastInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), llvm::X86TTIImpl::getShuffleCost(), getTargetVShiftNode(), InsertBitToMaskVector(), llvm::X86LegalizerInfo::legalizeIntrinsic(), LowerABS(), LowerBuildVectorAsInsert(), LowerBuildVectorv16i8(), LowerBuildVectorv4x32(), LowerBuildVectorv8i16(), LowerMUL(), LowerMULH(), LowerRotate(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsSpecificZeroOrAnyExtend(), LowerTruncateVecI1(), lowerUINT_TO_FP_vXi32(), lowerV16I8Shuffle(), lowerV2F64Shuffle(), lowerV2I64Shuffle(), lowerV4F32Shuffle(), lowerV4I32Shuffle(), lowerV8I16Shuffle(), LowerVectorAllZeroTest(), matchBinaryPermuteShuffle(), matchBinaryShuffle(), matchShuffleWithPACK(), matchShuffleWithUNPCK(), matchUnaryShuffle(), reduceVMULWidth(), llvm::X86TargetLowering::ReplaceNodeResults(), truncateVectorWithPACK(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 589 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getMinMaxReductionCost(), isLegalToCallImmediateAddr(), and LowerScalarImmediateShift().
|
inline |
Definition at line 594 of file X86Subtarget.h.
Referenced by combineStore(), combineX86ShuffleChain(), llvm::X86TTIImpl::isLegalNTStore(), isLegalToCallImmediateAddr(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerV16I8Shuffle(), and lowerV8I16Shuffle().
|
inline |
Definition at line 632 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 653 of file X86Subtarget.h.
|
inline |
Definition at line 587 of file X86Subtarget.h.
Referenced by combineAdd(), combineReductionToHorizontal(), combineSub(), combineSubToSubus(), combineVectorTruncation(), combineX86ShuffleChain(), createVariablePermute(), detectPMADDUBSW(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getShuffleCost(), lowerAddSubToHorizontalOp(), LowerBITREVERSE(), lowerShuffleAsByteRotate(), lowerShuffleAsByteRotateAndPermute(), lowerShuffleAsByteShiftMask(), lowerShuffleAsSpecificZeroOrAnyExtend(), lowerShuffleWithPSHUFB(), LowerToHorizontalOp(), lowerV16I8Shuffle(), lowerV2I64Shuffle(), lowerV4I32Shuffle(), lowerV8I16Shuffle(), LowerVectorCTLZ(), LowerVectorCTPOP(), matchBinaryPermuteShuffle(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 615 of file X86Subtarget.h.
Referenced by foldMaskedShiftToBEXTR().
|
inline |
Definition at line 600 of file X86Subtarget.h.
|
inline |
Definition at line 624 of file X86Subtarget.h.
Referenced by combineX86ShuffleChain(), createVariablePermute(), llvm::X86TTIImpl::getShuffleCost(), lowerV16I8Shuffle(), lowerV32I8Shuffle(), and lowerV64I8Shuffle().
|
inline |
Definition at line 625 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::isLegalMaskedExpandLoad(), LowerFunnelShift(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 688 of file X86Subtarget.h.
Referenced by canonicalizeBitSelect(), combineExtractSubvector(), combineHorizontalPredicateResult(), combineScalarAndWithMaskSetcc(), combineTruncateWithSat(), combineVectorPack(), combineVectorSizedSetCCEquality(), combineX86ShuffleChain(), createVariablePermute(), getBroadcastOpcode(), llvm::X86TTIImpl::getGatherScatterOpCost(), llvm::X86RegisterInfo::getLargestLegalSuperClass(), getLoadStoreRegOpcode(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TargetLowering::getSetCCResultType(), isLegalMaskCompare(), isSortedByValueNo(), llvm::X86LegalizerInfo::legalizeIntrinsic(), lower1BitShuffle(), lowerBuildVectorAsBroadcast(), LowerI64IntToFP_AVX512DQ(), lowerINT_TO_FP_vXi64(), LowerMGATHER(), LowerMLOAD(), LowerMSCATTER(), LowerMSTORE(), LowerShift(), lowerShuffleAsBlend(), lowerShuffleAsRotate(), lowerShuffleWithVPMOV(), LowerSIGN_EXTEND_Mask(), LowerTruncateVecI1(), lowerUINT_TO_FP_v2i32(), lowerUINT_TO_FP_vXi32(), lowerV16I16Shuffle(), lowerV16I8Shuffle(), lowerV2I64Shuffle(), lowerV2X128Shuffle(), lowerV32I8Shuffle(), lowerV4F64Shuffle(), lowerV4I32Shuffle(), lowerV4I64Shuffle(), lowerV8F32Shuffle(), lowerV8I32Shuffle(), LowerZERO_EXTEND_Mask(), llvm::X86TargetLowering::ReplaceNodeResults(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 690 of file X86Subtarget.h.
|
inline |
Definition at line 692 of file X86Subtarget.h.
|
inline |
Definition at line 607 of file X86Subtarget.h.
|
inline |
Definition at line 683 of file X86Subtarget.h.
Referenced by LowerVectorCTPOP(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 699 of file X86Subtarget.h.
|
inline |
Definition at line 697 of file X86Subtarget.h.
|
inline |
Definition at line 578 of file X86Subtarget.h.
Referenced by combineSIntToFP(), llvm::X86TargetLowering::getOptimalMemOpType(), lowerRegToMasks(), LowerRotate(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 614 of file X86Subtarget.h.
Referenced by canonicalizeBitSelect(), combineX86ShuffleChain(), createVariablePermute(), llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TTIImpl::getShuffleCost(), llvm::X86TargetLowering::isVectorShiftByScalarCheap(), LowerBITREVERSE(), LowerBuildVectorv4x32(), LowerRotate(), LowerScalarImmediateShift(), LowerScalarVariableShift(), LowerShift(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 602 of file X86Subtarget.h.
|
inline |
Definition at line 604 of file X86Subtarget.h.
|
inline |
Definition at line 603 of file X86Subtarget.h.
|
inline |
Definition at line 605 of file X86Subtarget.h.
|
inline |
Definition at line 661 of file X86Subtarget.h.
Referenced by callHasRegMask().
|
inline |
Definition at line 559 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::getRegForInlineAsmConstraint().
|
inline |
Definition at line 555 of file X86Subtarget.h.
Referenced by createPHIsForCMOVsInSinkBB(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), getMaskNode(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), getv64i1Argument(), lowerBuildVectorAsBroadcast(), Passv64i1ArgInRegs(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::X86FrameLowering::restoreWin32EHStackPointers(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Is this x86_64? (disregarding specific ABI / programming model)
Definition at line 551 of file X86Subtarget.h.
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86TargetLowering::canMergeStoresTo(), classifyGlobalFunctionReference(), classifyGlobalReference(), llvm::X86InstrInfo::classifyLEAReg(), classifyLocalReference(), combineAnd(), combineCompareEqual(), combineSIntToFP(), combineStore(), computeBytesPoppedByCalleeForSRet(), convertTailJumpOpcode(), llvm::X86InstrInfo::convertToThreeAddress(), createPHIsForCMOVsInSinkBB(), EmitCmp(), emitLockedStackOp(), llvm::X86TargetLowering::emitStackGuardXorFP(), llvm::X86TTIImpl::enableMemCmpExpansion(), expandIntrinsicWChainHelper(), ExpandMOVImmSExti8(), llvm::X86TargetLowering::findRepresentativeClass(), get64BitArgumentGPRs(), get64BitArgumentXMMs(), llvm::X86TargetLowering::getByValTypeAlignment(), llvm::X86TTIImpl::getIntrinsicInstrCost(), llvm::X86TargetLowering::getIRStackGuard(), getLoadStoreRegOpcode(), getMOVL(), llvm::X86TTIImpl::getNumberOfRegisters(), llvm::X86TargetLowering::getOptimalMemOpType(), getOptimalRepmovsType(), llvm::X86TargetLowering::getPICJumpTableRelocBase(), llvm::X86TargetLowering::getRegForInlineAsmConstraint(), llvm::X86TTIImpl::getRegisterBitWidth(), getRetOpcode(), getRetpolineSymbol(), llvm::X86TargetLowering::getSafeStackPointerLocation(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::X86TargetLowering::getStackProbeSymbolName(), hasBZHI(), llvm::X86FrameLowering::inlineStackProbe(), insert1BitVector(), IsCallReturnTwice(), llvm::X86InstrInfo::isCoalescableExtInstr(), llvm::X86TargetLowering::isIntDivCheap(), llvm::X86TargetLowering::isLegalAddressingMode(), isSortedByValueNo(), llvm::X86TargetLowering::isZExtFree(), llvm::X86LegalizerInfo::legalizeIntrinsic(), LowerADJUST_TRAMPOLINE(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), LowerBITCAST(), llvm::X86CallLowering::lowerCall(), LowerCMP_SWAP(), LowerFSINCOS(), LowerI64IntToFP_AVX512DQ(), lowerINT_TO_FP_vXi64(), LowerRotate(), lowerShuffleAsBitMask(), lowerShuffleAsBroadcast(), LowerStore(), LowerToTLSExecModel(), LowerTruncateVecI1(), lowerUINT_TO_FP_vec(), LowerVACOPY(), llvm::X86TargetLowering::markLibCallAttributes(), MatchingStackOffset(), llvm::X86TargetLowering::needsFixedCatchObjects(), Passv64i1ArgInRegs(), printAsmMRegister(), llvm::X86FrameLowering::processFunctionBeforeFrameFinalized(), recoverFramePointer(), removeRedundantBlockingStores(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::X86TargetLowering::shouldFoldMaskToVariableShiftPair(), SimplifyShortMoveForm(), llvm::X86FrameLowering::spillCalleeSavedRegisters(), llvm::X86TargetLowering::supportSwiftError(), llvm::X86TargetLowering::useLoadStackGuardNode(), llvm::X86FrameLowering::X86FrameLowering(), X86Subtarget(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
TODO: to be removed later and replaced with suitable properties.
Definition at line 742 of file X86Subtarget.h.
Referenced by EmitCmp(), llvm::X86TTIImpl::enableInterleavedAccessVectorization(), llvm::X86TTIImpl::getMaxInterleaveFactor(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 811 of file X86Subtarget.h.
References llvm::CallingConv::C, llvm::CallingConv::Fast, llvm::CallingConv::Intel_OCL_BI, llvm::CallingConv::Swift, llvm::CallingConv::Tail, llvm::CallingConv::Win64, llvm::CallingConv::X86_64_SysV, llvm::CallingConv::X86_FastCall, llvm::CallingConv::X86_StdCall, llvm::CallingConv::X86_ThisCall, and llvm::CallingConv::X86_VectorCall.
Referenced by emitXBegin(), get64BitArgumentGPRs(), get64BitArgumentXMMs(), getMOVL(), llvm::X86FrameLowering::has128ByteRedZone(), isSortedByValueNo(), llvm::X86CallLowering::lowerCall(), LowerVACOPY(), and MatchingStackOffset().
| bool X86Subtarget::isLegalToCallImmediateAddr | ( | ) | const |
Return true if the subtarget allows calls to immediate address.
Definition at line 220 of file X86Subtarget.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::dbgs(), llvm::X86AS::FS, llvm::TargetMachine::getRelocationModel(), hasAVX2(), hasAVX512(), hasFastGather(), hasSSE42(), hasSSE4A(), HasX86_64, isTargetDarwin(), isTargetELF(), isTargetKFreeBSD(), isTargetLinux(), isTargetSolaris(), isTargetWin32(), IsUAMem16Slow, LLVM_DEBUG, llvm_unreachable, ParseSubtargetFeatures(), Prefer128Bit, Prefer256Bit, llvm::report_fatal_error(), stackAlignment, llvm::Reloc::Static, TM, X863DNowLevel, and X86SSELevel.
|
inline |
Definition at line 796 of file X86Subtarget.h.
References llvm::Triple::isOSWindows().
Referenced by classifyGlobalReference(), llvm::X86TargetLowering::getStackProbeSymbolName(), llvm::X86FrameLowering::inlineStackProbe(), LowerToTLSExecModel(), llvm::X86FrameLowering::restoreCalleeSavedRegisters(), llvm::X86TargetLowering::shouldExpandShift(), and llvm::X86FrameLowering::spillCalleeSavedRegisters().
|
inline |
Definition at line 802 of file X86Subtarget.h.
References llvm::PICStyles::GOT.
Referenced by llvm::X86TargetLowering::getJumpTableEncoding(), getMOVL(), llvm::X86InstrInfo::getSerializableDirectMachineOperandTargetFlags(), llvm::X86TargetLowering::LowerAsmOperandForConstraint(), and llvm::X86TargetLowering::LowerCustomJumpTableEntry().
|
inline |
Definition at line 803 of file X86Subtarget.h.
References llvm::PICStyles::RIPRel.
Referenced by llvm::X86TargetLowering::getPICJumpTableRelocBaseExpr(), LowerEXTRACT_SUBVECTOR(), LowerToTLSExecModel(), and llvm::X86AsmPrinter::PrintAsmOperand().
|
inline |
Definition at line 805 of file X86Subtarget.h.
References llvm::PICStyles::StubPIC.
Referenced by llvm::X86TargetLowering::LowerAsmOperandForConstraint().
|
inline |
Definition at line 648 of file X86Subtarget.h.
Referenced by combineMulToPMADDWD().
|
inline |
Definition at line 647 of file X86Subtarget.h.
Referenced by reduceVMULWidth().
|
inline |
Definition at line 809 of file X86Subtarget.h.
References llvm::TargetMachine::isPositionIndependent().
Referenced by classifyGlobalReference(), classifyLocalReference(), and X86Subtarget().
|
inline |
Definition at line 646 of file X86Subtarget.h.
Referenced by combineOrShiftToFunnelShift(), and LowerFunnelShift().
|
inline |
Definition at line 743 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getArithmeticInstrCost(), llvm::X86TTIImpl::getArithmeticReductionCost(), llvm::X86TTIImpl::getCmpSelInstrCost(), llvm::X86TTIImpl::getIntrinsicInstrCost(), and llvm::X86TTIImpl::getVectorInstrCost().
|
inline |
Is this x86_64 with the ILP32 programming model (x32 ABI)?
Definition at line 564 of file X86Subtarget.h.
References llvm::Triple::getEnvironment(), llvm::Triple::GNUX32, and llvm::Triple::isOSNaCl().
Referenced by llvm::X86FrameLowering::determineCalleeSaves(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), getLeaOP(), getMOVL(), llvm::X86RegisterInfo::getPtrSizedFrameRegister(), llvm::X86RegisterInfo::getPtrSizedStackRegister(), and Passv64i1ArgInRegs().
|
inline |
Is this x86_64 with the LP64 programming model (standard AMD64, no x32)?
Definition at line 570 of file X86Subtarget.h.
References llvm::Triple::getEnvironment(), llvm::Triple::GNUX32, and llvm::Triple::isOSNaCl().
Referenced by createPHIsForCMOVsInSinkBB(), emitRepmovs(), llvm::X86TargetLowering::getExceptionPointerRegister(), llvm::X86TargetLowering::getExceptionSelectorRegister(), llvm::X86RegisterInfo::getPointerRegClass(), getRetpolineSymbol(), llvm::X86TargetLowering::reduceSelectOfFPConstantLoads(), and llvm::X86FrameLowering::X86FrameLowering().
|
inline |
Definition at line 767 of file X86Subtarget.h.
References llvm::Triple::isAndroid().
Referenced by llvm::X86TargetLowering::getSafeStackPointerLocation().
|
inline |
Definition at line 761 of file X86Subtarget.h.
References llvm::Triple::isOSBinFormatCOFF().
Referenced by classifyGlobalFunctionReference(), classifyGlobalReference(), classifyLocalReference(), llvm::X86AsmPrinter::runOnMachineFunction(), and X86Subtarget().
|
inline |
Definition at line 794 of file X86Subtarget.h.
References llvm::Triple::isOSCygMing().
Referenced by llvm::X86TargetLowering::getStackProbeSymbolName(), isSortedByValueNo(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 754 of file X86Subtarget.h.
References llvm::Triple::isOSDarwin().
Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), classifyGlobalReference(), classifyLocalReference(), createPHIsForCMOVsInSinkBB(), isLegalToCallImmediateAddr(), LowerFSINCOS(), LowerToTLSExecModel(), X86Subtarget(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 756 of file X86Subtarget.h.
References llvm::Triple::isOSDragonFly().
Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks().
|
inline |
Definition at line 760 of file X86Subtarget.h.
References llvm::Triple::isOSBinFormatELF().
Referenced by classifyGlobalFunctionReference(), classifyGlobalReference(), classifyLocalReference(), isLegalToCallImmediateAddr(), LowerToTLSExecModel(), X86Subtarget(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 755 of file X86Subtarget.h.
References llvm::Triple::isOSFreeBSD().
Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks().
|
inline |
Definition at line 772 of file X86Subtarget.h.
References llvm::Triple::isOSFuchsia().
Referenced by llvm::X86TargetLowering::getIRStackGuard(), and llvm::X86TargetLowering::getSafeStackPointerLocation().
|
inline |
Definition at line 766 of file X86Subtarget.h.
References llvm::Triple::isOSGlibc().
|
inline |
Definition at line 765 of file X86Subtarget.h.
References llvm::Triple::isOSKFreeBSD().
Referenced by isLegalToCallImmediateAddr().
|
inline |
Definition at line 764 of file X86Subtarget.h.
References llvm::Triple::isOSLinux().
Referenced by llvm::X86FrameLowering::adjustForHiPEPrologue(), llvm::X86FrameLowering::adjustForSegmentedStacks(), isLegalToCallImmediateAddr(), and llvm::X86CallLowering::lowerCall().
|
inline |
Definition at line 762 of file X86Subtarget.h.
References llvm::Triple::isOSBinFormatMachO().
Referenced by llvm::X86TargetLowering::getStackProbeSymbolName(), llvm::X86TargetLowering::useLoadStackGuardNode(), and llvm::X86TargetLowering::useStackGuardXorFP().
|
inline |
Definition at line 771 of file X86Subtarget.h.
References llvm::Triple::isOSIAMCU().
Referenced by computeBytesPoppedByCalleeForSRet(), getMOVL(), and isSortedByValueNo().
|
inline |
Definition at line 768 of file X86Subtarget.h.
References llvm::Triple::isOSNaCl().
|
inline |
Definition at line 769 of file X86Subtarget.h.
References is64Bit().
|
inline |
Definition at line 770 of file X86Subtarget.h.
References is64Bit().
Referenced by createPHIsForCMOVsInSinkBB(), getRetpolineSymbol(), and llvm::X86FrameLowering::X86FrameLowering().
|
inline |
Definition at line 758 of file X86Subtarget.h.
References llvm::Triple::isPS4CPU().
|
inline |
Definition at line 757 of file X86Subtarget.h.
References llvm::Triple::isOSSolaris().
Referenced by isLegalToCallImmediateAddr().
|
inline |
|
inline |
Definition at line 798 of file X86Subtarget.h.
Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), llvm::X86InstrInfo::canMakeTailCallConditional(), llvm::X86FrameLowering::canUseAsEpilogue(), llvm::X86FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::inlineStackProbe(), isCallInstruction(), LowerMULH(), llvm::X86TargetLowering::needsFixedCatchObjects(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 778 of file X86Subtarget.h.
References llvm::Triple::isWindowsCoreCLREnvironment().
Referenced by llvm::X86FrameLowering::emitStackProbe(), and llvm::X86FrameLowering::inlineStackProbe().
|
inline |
Definition at line 782 of file X86Subtarget.h.
References llvm::Triple::isWindowsCygwinEnvironment().
|
inline |
Definition at line 786 of file X86Subtarget.h.
References llvm::Triple::isWindowsGNUEnvironment().
Referenced by LowerToTLSExecModel().
|
inline |
Definition at line 790 of file X86Subtarget.h.
References llvm::Triple::isWindowsItaniumEnvironment().
Referenced by llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 774 of file X86Subtarget.h.
References llvm::Triple::isWindowsMSVCEnvironment().
Referenced by llvm::X86FrameLowering::restoreWin32EHStackPointers(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 649 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::allowsMisalignedMemoryAccesses(), and llvm::X86TargetLowering::getOptimalMemOpType().
|
inline |
Definition at line 650 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::allowsMisalignedMemoryAccesses(), and llvm::X86TTIImpl::getMemoryOpCost().
|
inlineoverride |
Definition at line 737 of file X86Subtarget.h.
References is64Bit().
|
inline |
Definition at line 678 of file X86Subtarget.h.
Referenced by isLEA().
|
inline |
Definition at line 676 of file X86Subtarget.h.
Referenced by llvm::createX86PadShortFunctions().
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Definition of function is auto generated by tblgen.
Referenced by isLegalToCallImmediateAddr().
|
inline |
Definition at line 710 of file X86Subtarget.h.
Referenced by combineVectorSizedSetCCEquality().
|
inline |
Definition at line 576 of file X86Subtarget.h.
Referenced by X86Subtarget().
|
inline |
Definition at line 680 of file X86Subtarget.h.
Referenced by isLEA().
|
inline |
Definition at line 681 of file X86Subtarget.h.
Referenced by isLEA().
|
inline |
Definition at line 679 of file X86Subtarget.h.
Referenced by combineMul(), and isLEA().
|
inline |
Definition at line 677 of file X86Subtarget.h.
|
inline |
Definition at line 702 of file X86Subtarget.h.
Referenced by findUncondBrI().
|
inlineoverride |
Definition at line 745 of file X86Subtarget.h.
|
inline |
Definition at line 729 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::areFunctionArgsABICompatible(), combineTruncateWithSat(), combineVectorSignBitsTruncation(), combineVectorSizedSetCCEquality(), EmitCmp(), llvm::X86TargetLowering::getNumRegistersForCallingConv(), llvm::X86TargetLowering::getRegisterTypeForCallingConv(), llvm::X86TargetLowering::getVectorTypeBreakdownForCallingConv(), isSortedByValueNo(), LowerTruncateVecI1(), SplitOpsAndApply(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 733 of file X86Subtarget.h.
Referenced by combineBasicSADPattern(), combineLoopSADPattern(), combineSubToSubus(), lower1BitShuffle(), SplitOpsAndApply(), and llvm::X86TargetLowering::X86TargetLowering().
|
inline |
Definition at line 711 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::getArithmeticInstrCost(), and llvm::X86TTIImpl::getIntrinsicInstrCost().
|
inline |
Definition at line 655 of file X86Subtarget.h.
Referenced by llvm::X86FrameLowering::emitSPUpdate(), and isLEA().
|
inline |
Definition at line 709 of file X86Subtarget.h.
Referenced by getRetpolineSymbol().
|
inline |
Definition at line 706 of file X86Subtarget.h.
Referenced by llvm::X86TargetLowering::areJTsAllowed().
|
inline |
Definition at line 705 of file X86Subtarget.h.
Referenced by llvm::X86FrameLowering::adjustForSegmentedStacks(), and llvm::X86FrameLowering::inlineStackProbe().
|
inline |
Definition at line 744 of file X86Subtarget.h.
Referenced by combineFMinNumFMaxNum(), combineSIntToFP(), combineStore(), get64BitArgumentXMMs(), isSortedByValueNo(), LowerRotate(), llvm::X86TargetLowering::ReplaceNodeResults(), llvm::X86TargetLowering::useSoftFloat(), and llvm::X86TargetLowering::X86TargetLowering().
|
protected |
GlobalISel related APIs.
Definition at line 458 of file X86Subtarget.h.
Referenced by getCallLowering(), and X86Subtarget().
Deprecated flag for MPX instructions.
Definition at line 366 of file X86Subtarget.h.
Deprecated flag, query UseRetpolineIndirectCalls and UseRetpolineIndirectBranches instead.
Definition at line 418 of file X86Subtarget.h.
Processor has ADX instructions.
Definition at line 183 of file X86Subtarget.h.
Target has AES instructions.
Definition at line 109 of file X86Subtarget.h.
Processor has AVX-512 bfloat16 floating-point extensions.
Definition at line 354 of file X86Subtarget.h.
Processor has AVX-512 Bit Algorithms instructions.
Definition at line 360 of file X86Subtarget.h.
Processor has BMI1 instructions.
Definition at line 165 of file X86Subtarget.h.
Processor has BMI2 instructions.
Definition at line 168 of file X86Subtarget.h.
True if the processor supports branch fusion.
Definition at line 298 of file X86Subtarget.h.
Processor has AVX-512 Byte and Word instructions.
Definition at line 342 of file X86Subtarget.h.
Processor has AVX-512 Conflict Detection Instructions.
Definition at line 333 of file X86Subtarget.h.
Processor has Cache Line Demote instruction.
Definition at line 204 of file X86Subtarget.h.
Processor supports Flush Cache Line instruction.
Definition at line 379 of file X86Subtarget.h.
Processor supports Cache Line Write Back instruction.
Definition at line 382 of file X86Subtarget.h.
Processor has Cache Line Zero instruction.
Definition at line 201 of file X86Subtarget.h.
True if this processor has conditional move instructions (generally pentium pro+).
Definition at line 97 of file X86Subtarget.h.
True if this processor has the CMPXCHG16B instruction; this is true for most x86-64 chips, but not the first AMD chips.
Definition at line 240 of file X86Subtarget.h.
True if the processor supports CMPXCHG8B.
Definition at line 89 of file X86Subtarget.h.
Processor has AVX-512 Doubleword and Quadword instructions.
Definition at line 339 of file X86Subtarget.h.
Processor supports ENQCMD instructions.
Definition at line 357 of file X86Subtarget.h.
Processor has AVX-512 Exponential and Reciprocal Instructions.
Definition at line 330 of file X86Subtarget.h.
True if the processor has enhanced REP MOVSB/STOSB.
Definition at line 301 of file X86Subtarget.h.
Processor has 16-bit floating point conversion instructions.
Definition at line 156 of file X86Subtarget.h.
True if there is no performance penalty for writing NOPs with up to 11 bytes.
Definition at line 262 of file X86Subtarget.h.
True if there is no performance penalty for writing NOPs with up to 15 bytes.
Definition at line 266 of file X86Subtarget.h.
Processor has a single uop BEXTR implementation.
Definition at line 397 of file X86Subtarget.h.
True if gather is reasonably fast.
This is true for Skylake client and all AVX-512 CPUs.
Definition at line 270 of file X86Subtarget.h.
Try harder to combine to horizontal vector ops if they are fast.
Definition at line 400 of file X86Subtarget.h.
True if LZCNT instruction is fast.
Definition at line 289 of file X86Subtarget.h.
True if hardware SQRTSS instruction is at least as fast (latency) as RSQRTSS followed by a Newton-Raphson iteration.
Definition at line 274 of file X86Subtarget.h.
Prefer a left/right scalar logical shifts pair over a shift+and pair.
Definition at line 403 of file X86Subtarget.h.
True if SHLD based rotate is fast.
Definition at line 292 of file X86Subtarget.h.
True if its preferable to combine to a single shuffle using a variable mask over multiple fixed shuffles.
Definition at line 254 of file X86Subtarget.h.
True if hardware SQRTPS/VSQRTPS instructions are at least as fast (throughput) as RSQRTPS/VRSQRTPS followed by a Newton-Raphson iteration.
Definition at line 278 of file X86Subtarget.h.
Prefer a left/right vector logical shifts pair over a shift+and pair.
Definition at line 406 of file X86Subtarget.h.
Target has 3-operand fused multiply-add.
Definition at line 135 of file X86Subtarget.h.
Target has 4-operand fused multiply-add.
Definition at line 138 of file X86Subtarget.h.
Processor has FS/GS base insturctions.
Definition at line 159 of file X86Subtarget.h.
Target has FXSAVE/FXRESTOR instructions.
Definition at line 113 of file X86Subtarget.h.
Target has Galois Field Arithmetic instructions.
Definition at line 132 of file X86Subtarget.h.
Processor has Integer Fused Multiply Add.
Definition at line 177 of file X86Subtarget.h.
Processor supports Invalidate Process-Context Identifier.
Definition at line 373 of file X86Subtarget.h.
Processor has LAHF/SAHF instructions.
Definition at line 195 of file X86Subtarget.h.
Target has LWP instructions.
Definition at line 147 of file X86Subtarget.h.
Processor has LZCNT instruction.
Definition at line 162 of file X86Subtarget.h.
True if LZCNT/TZCNT instructions have a false dependency on the destination register.
Definition at line 250 of file X86Subtarget.h.
True if the processor supports macrofusion.
Definition at line 295 of file X86Subtarget.h.
True if the processor has the MOVBE instruction.
Definition at line 150 of file X86Subtarget.h.
Processor has MOVDIR64B instruction (direct store 64 bytes).
Definition at line 210 of file X86Subtarget.h.
Processor has MOVDIRI instruction (direct store integer).
Definition at line 207 of file X86Subtarget.h.
Processor has MONITORX/MWAITX instructions.
Definition at line 198 of file X86Subtarget.h.
True if this processor has NOPL instruction (generally pentium pro+).
Definition at line 93 of file X86Subtarget.h.
Target has carry-less multiplication.
Definition at line 128 of file X86Subtarget.h.
Processor supports PCONFIG instruction.
Definition at line 394 of file X86Subtarget.h.
Processor has AVX-512 PreFetch Instructions.
Definition at line 327 of file X86Subtarget.h.
Processor has PKU extenstions.
Definition at line 348 of file X86Subtarget.h.
True if the processor supports POPCNT.
Definition at line 103 of file X86Subtarget.h.
True if POPCNT instruction has a false dependency on the destination register.
Definition at line 247 of file X86Subtarget.h.
Processor has Prefetch with intent to Write instruction.
Definition at line 216 of file X86Subtarget.h.
Processor has PRFCHW instructions.
Definition at line 189 of file X86Subtarget.h.
Processor has ptwrite instruction.
Definition at line 213 of file X86Subtarget.h.
Processor support RDPID instruction.
Definition at line 388 of file X86Subtarget.h.
True if the processor has the RDRAND instruction.
Definition at line 153 of file X86Subtarget.h.
Processor has RDSEED instructions.
Definition at line 192 of file X86Subtarget.h.
Processor has RTM instructions.
Definition at line 180 of file X86Subtarget.h.
Processor has Software Guard Extensions.
Definition at line 376 of file X86Subtarget.h.
Processor has SHA instructions.
Definition at line 186 of file X86Subtarget.h.
Processor supports CET SHSTK - Control-Flow Enforcement Technology using Shadow Stack.
Definition at line 370 of file X86Subtarget.h.
True if 8-bit divisions are significantly faster than 32-bit divisions and should be used when possible.
Definition at line 282 of file X86Subtarget.h.
True if 32-bit divides are significantly faster than 64-bit divisions and should be used when possible.
Definition at line 286 of file X86Subtarget.h.
True if the processor supports SSE4A instructions.
Definition at line 106 of file X86Subtarget.h.
True if SSE operations can have unaligned memory operands.
This may require setting a configuration bit in the processor.
Definition at line 236 of file X86Subtarget.h.
Target has TBM instructions.
Definition at line 144 of file X86Subtarget.h.
Definition at line 110 of file X86Subtarget.h.
Processor has VBMI instructions.
Definition at line 171 of file X86Subtarget.h.
Processor has VBMI2 instructions.
Definition at line 174 of file X86Subtarget.h.
Processor has AVX-512 Vector Length eXtenstions.
Definition at line 345 of file X86Subtarget.h.
Processor has AVX-512 Vector Neural Network Instructions.
Definition at line 351 of file X86Subtarget.h.
Processor has AVX-512 vp2intersect instructions.
Definition at line 363 of file X86Subtarget.h.
Definition at line 129 of file X86Subtarget.h.
Processor has AVX-512 population count Instructions.
Definition at line 336 of file X86Subtarget.h.
Processor supports WaitPKG instructions.
Definition at line 391 of file X86Subtarget.h.
Processor supports Write Back No Invalidate instruction.
Definition at line 385 of file X86Subtarget.h.
True if the processor supports X86-64 instructions.
Definition at line 100 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
True if the processor supports X87 instructions.
Definition at line 86 of file X86Subtarget.h.
Target has XOP instructions.
Definition at line 141 of file X86Subtarget.h.
Target has XSAVE instructions.
Definition at line 116 of file X86Subtarget.h.
Target has XSAVEC instructions.
Definition at line 122 of file X86Subtarget.h.
Target has XSAVEOPT instructions.
Definition at line 119 of file X86Subtarget.h.
Target has XSAVES instructions.
Definition at line 125 of file X86Subtarget.h.
True if vzeroupper instructions should be inserted after code that uses ymm or zmm registers.
Definition at line 258 of file X86Subtarget.h.
|
protected |
Definition at line 461 of file X86Subtarget.h.
Referenced by getInstructionSelector(), and X86Subtarget().
True if the PMADDWD instruction is slow compared to PMULLD.
Definition at line 226 of file X86Subtarget.h.
True if the PMULLD instruction is slow compared to PMULLW/PMULHW and.
Definition at line 223 of file X86Subtarget.h.
True if SHLD instructions are slow.
Definition at line 219 of file X86Subtarget.h.
True if unaligned memory accesses of 16-bytes are slow.
Definition at line 229 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
True if unaligned memory accesses of 32-bytes are slow.
Definition at line 232 of file X86Subtarget.h.
True if the LEA instruction inputs have to be ready at address generation (AG) time.
Definition at line 313 of file X86Subtarget.h.
|
protected |
Definition at line 459 of file X86Subtarget.h.
|
protected |
Max.
memset / memcpy size that is turned into rep/movs, rep/stos ops.
Definition at line 437 of file X86Subtarget.h.
True if the short functions should be padded to prevent a stall when returning too early.
Definition at line 305 of file X86Subtarget.h.
|
protected |
Which PIC style to use.
Definition at line 75 of file X86Subtarget.h.
Indicates target prefers 128 bit instructions.
Definition at line 440 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
Indicates target prefers 256 bit instructions.
Definition at line 443 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
Indicates target prefers AVX512 mask registers.
Definition at line 446 of file X86Subtarget.h.
|
protected |
Definition at line 460 of file X86Subtarget.h.
Referenced by getRegBankInfo(), and X86Subtarget().
True if the LEA instruction has all three source operands: base, index, and offset or if the LEA instruction uses base and index registers where the base is EBP, RBP,or R13.
Definition at line 321 of file X86Subtarget.h.
True if INC and DEC instructions are slow when writing to flags.
Definition at line 324 of file X86Subtarget.h.
True if the LEA instruction with certain arguments is slow.
Definition at line 316 of file X86Subtarget.h.
True if two memory operand instructions should use a temporary register instead.
Definition at line 309 of file X86Subtarget.h.
The minimum alignment known to hold of the stack frame on entry to the function and which must be maintained by every function.
Definition at line 432 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
|
protected |
What processor and OS we're targeting.
Definition at line 455 of file X86Subtarget.h.
Threeway branch is profitable in this subtarget.
Definition at line 449 of file X86Subtarget.h.
|
protected |
Definition at line 77 of file X86Subtarget.h.
Referenced by classifyGlobalFunctionReference(), classifyGlobalReference(), classifyLocalReference(), and isLegalToCallImmediateAddr().
Use alias analysis during code generation.
Definition at line 428 of file X86Subtarget.h.
Use Goldmont specific floating point div/sqrt costs.
Definition at line 452 of file X86Subtarget.h.
True if the LEA instruction should be used for adjusting the stack pointer.
This is an optimization for Intel Atom processors.
Definition at line 244 of file X86Subtarget.h.
When using a retpoline thunk, call an externally provided thunk rather than emitting one inside the compiler.
Definition at line 422 of file X86Subtarget.h.
Use a retpoline thunk or remove any indirect branch to block speculative execution.
Definition at line 414 of file X86Subtarget.h.
Use a retpoline thunk rather than indirect calls to block speculative execution.
Definition at line 410 of file X86Subtarget.h.
Use software floating point for code generation.
Definition at line 425 of file X86Subtarget.h.
|
protected |
MMX, 3DNow, 3DNow Athlon, or none supported.
Definition at line 83 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
|
protected |
X86 processor family: Intel Atom, and others.
Definition at line 72 of file X86Subtarget.h.
|
protected |
SSE1, SSE2, SSE3, SSSE3, SSE41, SSE42, or none supported.
Definition at line 80 of file X86Subtarget.h.
Referenced by isLegalToCallImmediateAddr().
1.8.13