LLVM 20.0.0git
|
Classes | |
class | X86MCInstrAnalysis |
MCSubtargetInfo * llvm::X86_MC::createX86MCSubtargetInfo | ( | const Triple & | TT, |
StringRef | CPU, | ||
StringRef | FS | ||
) |
Create a X86 MCSubtargetInfo instance.
This is exposed so Asm parser, etc. do not need to go through TargetRegistry.
Definition at line 389 of file X86MCTargetDesc.cpp.
References assert(), llvm::StringRef::empty(), llvm::StringRef::npos, and ParseX86Triple().
Referenced by LLVMInitializeX86TargetMC().
void llvm::X86_MC::emitInstruction | ( | MCObjectStreamer & | S, |
const MCInst & | Inst, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1552 of file X86AsmBackend.cpp.
References llvm::MCObjectStreamer::getAssembler(), and llvm::MCAssembler::getBackend().
void llvm::X86_MC::emitPrefix | ( | MCCodeEmitter & | MCE, |
const MCInst & | MI, | ||
SmallVectorImpl< char > & | CB, | ||
const MCSubtargetInfo & | STI | ||
) |
Definition at line 1546 of file X86MCCodeEmitter.cpp.
References emitPrefix(), and MI.
Referenced by emitPrefix().
|
static |
Definition at line 612 of file X86MCTargetDesc.cpp.
References llvm::ArrayRef< T >::data(), End, llvm::support::endian::read32le(), and llvm::ArrayRef< T >::size().
Referenced by llvm::X86_MC::X86MCInstrAnalysis::findPltEntries().
|
static |
Definition at line 585 of file X86MCTargetDesc.cpp.
References llvm::ArrayRef< T >::data(), End, llvm::support::endian::read32le(), and llvm::ArrayRef< T >::size().
Referenced by llvm::X86_MC::X86MCInstrAnalysis::findPltEntries().
Definition at line 60 of file X86MCTargetDesc.cpp.
References llvm::DWARFFlavour::X86_32_DarwinEH, llvm::DWARFFlavour::X86_32_Generic, llvm::Triple::x86_64, and llvm::DWARFFlavour::X86_64.
Referenced by createX86MCRegisterInfo().
Returns true if this instruction has a LOCK prefix.
Definition at line 72 of file X86MCTargetDesc.cpp.
References llvm::X86::IP_HAS_LOCK, and MI.
void llvm::X86_MC::initLLVMToSEHAndCVRegMapping | ( | MCRegisterInfo * | MRI | ) |
Definition at line 167 of file X86MCTargetDesc.cpp.
Referenced by createX86MCRegisterInfo(), and llvm::X86RegisterInfo::X86RegisterInfo().
bool llvm::X86_MC::is16BitMemOperand | ( | const MCInst & | MI, |
unsigned | Op, | ||
const MCSubtargetInfo & | STI | ||
) |
Op | operand # of the memory operand. |
Definition at line 85 of file X86MCTargetDesc.cpp.
References llvm::X86::AddrBaseReg, llvm::X86::AddrIndexReg, llvm::sampleprof::Base, llvm::MCSubtargetInfo::hasFeature(), isMemOperand(), and MI.
Referenced by needsAddressSizeOverride().
Op | operand # of the memory operand. |
Definition at line 96 of file X86MCTargetDesc.cpp.
References llvm::X86::AddrBaseReg, llvm::X86::AddrIndexReg, assert(), llvm::sampleprof::Base, isMemOperand(), and MI.
Referenced by needsAddressSizeOverride().
Op | operand # of the memory operand. |
Definition at line 109 of file X86MCTargetDesc.cpp.
References isMemOperand(), and MI.
Referenced by needsAddressSizeOverride().
bool llvm::X86_MC::needsAddressSizeOverride | ( | const MCInst & | MI, |
const MCSubtargetInfo & | STI, | ||
int | MemoryOperand, | ||
uint64_t | TSFlags | ||
) |
Returns true if this instruction needs an Address-Size override prefix.
Definition at line 114 of file X86MCTargetDesc.cpp.
References llvm::X86II::AdSize16, llvm::X86II::AdSize32, llvm::X86II::AdSizeMask, assert(), llvm::X86II::FormMask, llvm::MCSubtargetInfo::hasFeature(), is16BitMemOperand(), is32BitMemOperand(), is64BitMemOperand(), MI, llvm::X86II::RawFrmDst, llvm::X86II::RawFrmDstSrc, and llvm::X86II::RawFrmSrc.
Referenced by llvm::X86InstPrinterCommon::printInstFlags().
Definition at line 46 of file X86MCTargetDesc.cpp.
References llvm::Triple::CODE16.
Referenced by createX86MCSubtargetInfo().