|
LLVM 24.0.0git
|
#include "Target/X86/X86Subtarget.h"
Definition at line 58 of file X86Subtarget.h.
| X86Subtarget::X86Subtarget | ( | const Triple & | TT, |
| StringRef | CPU, | ||
| StringRef | TuneCPU, | ||
| 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 313 of file X86Subtarget.cpp.
References llvm::createX86InstructionSelector(), getCLOpts(), getRegisterInfo(), getStackAlignment(), getTargetLowering(), llvm::PICStyles::GOT, is64Bit(), isPositionIndependent(), isTargetCOFF(), isTargetDarwin(), isTargetELF(), llvm::CodeModel::Large, llvm::None, llvm::PICStyles::None, llvm::PICStyles::RIPRel, setPICStyle(), and llvm::PICStyles::StubPIC.
|
overridedefault |
|
inline |
Avoid use of mfence forfence seq_cst, and instead use lock or.
Definition at line 299 of file X86Subtarget.h.
References is64Bit().
|
inline |
Definition at line 252 of file X86Subtarget.h.
References canExtendTo512DQ().
|
inline |
Definition at line 249 of file X86Subtarget.h.
References getPreferVectorWidth(), and hasAVX512().
Referenced by canExtendTo512BW(), and useAVX512Regs().
|
inline |
Definition at line 208 of file X86Subtarget.h.
References hasSSE1(), and is64Bit().
Referenced by enableEarlyIfConversion().
|
inline |
Definition at line 202 of file X86Subtarget.h.
References is64Bit().
|
inline |
Definition at line 201 of file X86Subtarget.h.
|
inline |
Definition at line 231 of file X86Subtarget.h.
References is64Bit().
Classify a blockaddress reference for the current subtarget according to how we should reference it in a non-pcrel context.
Definition at line 55 of file X86Subtarget.cpp.
References classifyLocalReference().
|
override |
Definition at line 182 of file X86Subtarget.cpp.
References classifyGlobalFunctionReference(), and llvm::GlobalValue::getParent().
| unsigned char X86Subtarget::classifyGlobalFunctionReference | ( | const GlobalValue * | GV, |
| const Module & | M ) const |
Classify a global function reference for the current subtarget.
Definition at line 187 of file X86Subtarget.cpp.
References llvm::dyn_cast_or_null(), F, llvm::GlobalValue::hasDLLImportStorageClass(), 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::Reloc::Static, and llvm::CallingConv::X86_RegCall.
Referenced by classifyGlobalFunctionReference().
| 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 62 of file X86Subtarget.cpp.
References classifyGlobalReference(), and llvm::GlobalValue::getParent().
| unsigned char X86Subtarget::classifyGlobalReference | ( | const GlobalValue * | GV, |
| const Module & | M ) const |
Definition at line 120 of file X86Subtarget.cpp.
References classifyLocalReference(), llvm::GlobalValue::getAbsoluteSymbolRange(), llvm::GlobalValue::hasDLLImportStorageClass(), is64Bit(), llvm::isa(), 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_GOTPCREL_NORELAX, llvm::X86II::MO_NO_FLAG, and llvm::Reloc::Static.
Referenced by classifyGlobalReference(), and X86SelectAddress().
| 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 67 of file X86Subtarget.cpp.
References assert(), llvm::GlobalValue::hasCommonLinkage(), is64Bit(), llvm::isa(), llvm::GlobalValue::isDeclarationForLinker(), isPositionIndependent(), isTargetCOFF(), isTargetDarwin(), isTargetELF(), llvm::CodeModel::Large, llvm::X86II::MO_DARWIN_NONLAZY_PIC_BASE, llvm::X86II::MO_GOTOFF, llvm::X86II::MO_GOTPCREL_NORELAX, llvm::X86II::MO_NO_FLAG, llvm::X86II::MO_PIC_BASE_OFFSET, and llvm::CodeModel::Tiny.
Referenced by classifyBlockAddressReference(), classifyGlobalReference(), and X86SelectAddress().
|
override |
Definition at line 366 of file X86Subtarget.cpp.
References canUseCMOV().
|
inlineoverride |
If we are using indirect thunks, we need to expand indirectbr to avoid it lowering to an actual indirect jump.
Definition at line 441 of file X86Subtarget.h.
References useIndirectThunkBranches().
|
inlineoverride |
Enable the MachineScheduler pass for all X86 subtargets.
Definition at line 446 of file X86Subtarget.h.
|
inlineoverride |
Definition at line 453 of file X86Subtarget.h.
|
override |
Methods used by Global ISel.
Definition at line 350 of file X86Subtarget.cpp.
|
inline |
Definition at line 131 of file X86Subtarget.h.
Referenced by llvm::X86RegisterInfo::hasBasePointer(), and X86Subtarget().
|
inlineoverride |
Definition at line 139 of file X86Subtarget.h.
|
inlineoverride |
Definition at line 137 of file X86Subtarget.h.
Referenced by argumentStackSlotRebase(), getRegisterInfo(), initGlobalBaseReg(), llvm::X86CallLowering::lowerCall(), ReplaceTLSBaseAddrCall(), SetRegister(), UpdatedOnX86AvoidTrailingCallPass(), llvm::X86LegalizerInfo::X86LegalizerInfo(), and X86SelectAddress().
|
override |
Definition at line 354 of file X86Subtarget.cpp.
|
override |
Definition at line 358 of file X86Subtarget.cpp.
|
inline |
Returns the maximum memset / memcpy size that still makes it profitable to inline the call.
Definition at line 161 of file X86Subtarget.h.
|
inline |
Definition at line 198 of file X86Subtarget.h.
|
override |
Definition at line 370 of file X86Subtarget.cpp.
References llvm::createX86MacroFusionDAGMutation().
|
inline |
Definition at line 242 of file X86Subtarget.h.
Referenced by canExtendTo512DQ(), and useLight256BitInstructions().
|
override |
Definition at line 362 of file X86Subtarget.cpp.
|
inlineoverride |
Definition at line 147 of file X86Subtarget.h.
References getInstrInfo(), and llvm::X86InstrInfo::getRegisterInfo().
Referenced by argumentStackSlotRebase(), getBroadcastOpcode(), getLoadStoreRegOpcode(), llvm::X86CallLowering::lowerCall(), and X86Subtarget().
|
inline |
Definition at line 243 of file X86Subtarget.h.
|
inlineoverride |
Definition at line 143 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 157 of file X86Subtarget.h.
Referenced by X86Subtarget().
|
inlineoverride |
Definition at line 133 of file X86Subtarget.h.
Referenced by X86Subtarget().
Definition at line 301 of file X86Subtarget.h.
Referenced by swiftAsyncContextIsDynamicallySet().
|
inline |
Definition at line 152 of file X86Subtarget.h.
|
inline |
Definition at line 151 of file X86Subtarget.h.
|
inline |
Definition at line 219 of file X86Subtarget.h.
|
inline |
Definition at line 215 of file X86Subtarget.h.
Referenced by getLoadStoreRegOpcode().
|
inline |
Definition at line 216 of file X86Subtarget.h.
Referenced by hasInt256().
|
inline |
Definition at line 217 of file X86Subtarget.h.
Referenced by canExtendTo512DQ(), getBroadcastOpcode(), getLoadStoreRegOpcode(), llvm::X86RegisterInfo::getReservedRegs(), and useAVX512Regs().
|
inline |
Definition at line 284 of file X86Subtarget.h.
References is64Bit().
|
inline |
Use clflush 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 291 of file X86Subtarget.h.
|
inline |
Definition at line 218 of file X86Subtarget.h.
References hasAVX2().
|
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 296 of file X86Subtarget.h.
|
inline |
Definition at line 256 of file X86Subtarget.h.
Referenced by hasNoDomainDelayBlend(), hasNoDomainDelayMov(), and hasNoDomainDelayShuffle().
|
inline |
Definition at line 260 of file X86Subtarget.h.
References hasNoDomainDelay().
|
inline |
Definition at line 257 of file X86Subtarget.h.
References hasNoDomainDelay().
|
inline |
Definition at line 263 of file X86Subtarget.h.
References hasNoDomainDelay().
|
inline |
Definition at line 221 of file X86Subtarget.h.
|
inline |
Definition at line 209 of file X86Subtarget.h.
Referenced by canUseCMOV(), and hasSSEPrefetch().
|
inline |
Definition at line 210 of file X86Subtarget.h.
Referenced by hasCLFLUSH(), and hasMFence().
|
inline |
Definition at line 211 of file X86Subtarget.h.
|
inline |
Definition at line 213 of file X86Subtarget.h.
|
inline |
Definition at line 214 of file X86Subtarget.h.
|
inline |
Definition at line 226 of file X86Subtarget.h.
References hasSSE1().
|
inline |
Definition at line 212 of file X86Subtarget.h.
|
inline |
Definition at line 176 of file X86Subtarget.h.
|
inline |
Definition at line 367 of file X86Subtarget.h.
References llvm::CallingConv::C, CC, llvm::CallingConv::Fast, llvm::CallingConv::Intel_OCL_BI, isTargetUEFI64(), isTargetWin64(), llvm::CallingConv::Swift, llvm::CallingConv::SwiftTail, 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 llvm::X86CallLowering::lowerCall().
| bool X86Subtarget::isLegalToCallImmediateAddr | ( | ) | const |
Return true if the subtarget allows calls to immediate address.
Definition at line 236 of file X86Subtarget.cpp.
References isPositionIndependent(), isTargetELF(), isTargetWin32(), and llvm::Reloc::Static.
|
inline |
Definition at line 322 of file X86Subtarget.h.
Referenced by llvm::X86RegisterInfo::getReservedRegs().
|
inline |
Definition at line 348 of file X86Subtarget.h.
Referenced by classifyGlobalReference(), isTargetWin32(), and isTargetWin64().
|
inline |
Definition at line 350 of file X86Subtarget.h.
|
inline |
Definition at line 358 of file X86Subtarget.h.
References llvm::PICStyles::GOT.
Referenced by initGlobalBaseReg().
|
inline |
Definition at line 359 of file X86Subtarget.h.
References llvm::PICStyles::RIPRel.
Referenced by X86SelectAddress().
|
inline |
Definition at line 361 of file X86Subtarget.h.
References llvm::PICStyles::StubPIC.
| bool X86Subtarget::isPositionIndependent | ( | ) | const |
Definition at line 375 of file X86Subtarget.cpp.
Referenced by classifyGlobalReference(), classifyLocalReference(), isLegalToCallImmediateAddr(), and X86Subtarget().
Definition at line 173 of file X86Subtarget.h.
References llvm::Register::id().
|
inline |
Is this x86_64 with the ILP32 programming model (x32 ABI)?
Definition at line 193 of file X86Subtarget.h.
Referenced by argumentStackSlotRebase(), and getLeaOP().
|
inline |
Is this x86_64 with the LP64 programming model (standard AMD64, no x32)?
Definition at line 196 of file X86Subtarget.h.
|
inline |
Definition at line 318 of file X86Subtarget.h.
|
inline |
Definition at line 310 of file X86Subtarget.h.
Referenced by classifyGlobalFunctionReference(), classifyGlobalReference(), classifyLocalReference(), and X86Subtarget().
|
inline |
Definition at line 344 of file X86Subtarget.h.
|
inline |
Definition at line 303 of file X86Subtarget.h.
Referenced by classifyGlobalReference(), classifyLocalReference(), and X86Subtarget().
|
inline |
Definition at line 305 of file X86Subtarget.h.
|
inline |
Definition at line 309 of file X86Subtarget.h.
Referenced by argumentStackSlotRebase(), classifyGlobalFunctionReference(), classifyGlobalReference(), classifyLocalReference(), isLegalToCallImmediateAddr(), and X86Subtarget().
|
inline |
Definition at line 304 of file X86Subtarget.h.
|
inline |
Definition at line 320 of file X86Subtarget.h.
|
inline |
Definition at line 316 of file X86Subtarget.h.
|
inline |
Definition at line 315 of file X86Subtarget.h.
|
inline |
Definition at line 314 of file X86Subtarget.h.
|
inline |
Definition at line 313 of file X86Subtarget.h.
Referenced by argumentStackSlotRebase(), and llvm::X86CallLowering::lowerCall().
|
inline |
Definition at line 311 of file X86Subtarget.h.
|
inline |
Definition at line 319 of file X86Subtarget.h.
|
inline |
Definition at line 317 of file X86Subtarget.h.
|
inline |
Definition at line 307 of file X86Subtarget.h.
|
inline |
Definition at line 306 of file X86Subtarget.h.
|
inline |
Definition at line 352 of file X86Subtarget.h.
References isUEFI().
Referenced by isCallingConvWin64().
|
inline |
Definition at line 356 of file X86Subtarget.h.
References isOSWindows().
Referenced by isLegalToCallImmediateAddr().
|
inline |
Definition at line 354 of file X86Subtarget.h.
References isOSWindows().
Referenced by isCallingConvWin64(), and UpdatedOnX86AvoidTrailingCallPass().
|
inline |
Definition at line 328 of file X86Subtarget.h.
|
inline |
Definition at line 332 of file X86Subtarget.h.
|
inline |
Definition at line 336 of file X86Subtarget.h.
|
inline |
Definition at line 340 of file X86Subtarget.h.
|
inline |
Definition at line 324 of file X86Subtarget.h.
|
inline |
Definition at line 346 of file X86Subtarget.h.
Referenced by isTargetUEFI64().
|
inlineoverride |
Definition at line 286 of file X86Subtarget.h.
References is64Bit().
ParseSubtargetFeatures - Parses features string setting specified subtarget options.
Definition of function is auto generated by tblgen.
|
inline |
Definition at line 199 of file X86Subtarget.h.
Referenced by X86Subtarget().
|
inline |
Return whether FrameLowering should always set the "extended frame present" bit in FP, or set it based on a symbol in the runtime.
Definition at line 417 of file X86Subtarget.h.
References llvm::Triple::Darwin, getTargetTriple(), llvm::Triple::IOS, llvm::Triple::MacOSX, llvm::Triple::TvOS, and llvm::Triple::WatchOS.
|
inline |
Definition at line 220 of file X86Subtarget.h.
Referenced by llvm::X86TTIImpl::useFastCCForInternalCall().
|
inline |
Definition at line 269 of file X86Subtarget.h.
References canExtendTo512DQ(), and hasAVX512().
Referenced by llvm::X86TTIImpl::areInlineCompatible(), and useBWIRegs().
|
inline |
Definition at line 277 of file X86Subtarget.h.
References useAVX512Regs().
|
inline |
Definition at line 238 of file X86Subtarget.h.
Referenced by enableIndirectBrExpand().
|
inline |
Definition at line 235 of file X86Subtarget.h.
|
inline |
Definition at line 273 of file X86Subtarget.h.
References getPreferVectorWidth().