LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::LLVMDisasmContext Class Reference

#include "MC/MCDisassembler/Disassembler.h"

Public Member Functions

 LLVMDisasmContext (std::string TripleName, void *DisInfo, int TagType, LLVMOpInfoCallback GetOpInfo, LLVMSymbolLookupCallback SymbolLookUp, const Target *TheTarget, std::unique_ptr< const MCAsmInfo > &&MAI, std::unique_ptr< const MCRegisterInfo > &&MRI, std::unique_ptr< const MCSubtargetInfo > &&MSI, std::unique_ptr< const MCInstrInfo > &&MII, std::unique_ptr< const llvm::MCContext > &&Ctx, std::unique_ptr< const MCDisassembler > &&DisAsm, std::unique_ptr< MCInstPrinter > &&IP)
 
const std::string & getTripleName () const
 
void * getDisInfo () const
 
int getTagType () const
 
LLVMOpInfoCallback getGetOpInfo () const
 
LLVMSymbolLookupCallback getSymbolLookupCallback () const
 
const TargetgetTarget () const
 
const MCDisassemblergetDisAsm () const
 
const MCAsmInfogetAsmInfo () const
 
const MCInstrInfogetInstrInfo () const
 
const MCRegisterInfogetRegisterInfo () const
 
const MCSubtargetInfogetSubtargetInfo () const
 
MCInstPrintergetIP ()
 
void setIP (MCInstPrinter *NewIP)
 
uint64_t getOptions () const
 
void addOptions (uint64_t Options)
 
StringRef getCPU () const
 
void setCPU (const char *CPU)
 

Public Attributes

SmallString< 128 > CommentsToEmit
 
raw_svector_ostream CommentStream
 

Detailed Description

Definition at line 38 of file Disassembler.h.

Constructor & Destructor Documentation

◆ LLVMDisasmContext()

llvm::LLVMDisasmContext::LLVMDisasmContext ( std::string  TripleName,
void *  DisInfo,
int  TagType,
LLVMOpInfoCallback  GetOpInfo,
LLVMSymbolLookupCallback  SymbolLookUp,
const Target TheTarget,
std::unique_ptr< const MCAsmInfo > &&  MAI,
std::unique_ptr< const MCRegisterInfo > &&  MRI,
std::unique_ptr< const MCSubtargetInfo > &&  MSI,
std::unique_ptr< const MCInstrInfo > &&  MII,
std::unique_ptr< const llvm::MCContext > &&  Ctx,
std::unique_ptr< const MCDisassembler > &&  DisAsm,
std::unique_ptr< MCInstPrinter > &&  IP 
)
inline

Definition at line 85 of file Disassembler.h.

References MRI, and Options.

Member Function Documentation

◆ addOptions()

void llvm::LLVMDisasmContext::addOptions ( uint64_t  Options)
inline

Definition at line 117 of file Disassembler.h.

References Options.

Referenced by LLVMSetDisasmOptions().

◆ getAsmInfo()

const MCAsmInfo * llvm::LLVMDisasmContext::getAsmInfo ( ) const
inline

Definition at line 110 of file Disassembler.h.

Referenced by emitComments(), and LLVMSetDisasmOptions().

◆ getCPU()

StringRef llvm::LLVMDisasmContext::getCPU ( ) const
inline

Definition at line 118 of file Disassembler.h.

Referenced by getItineraryLatency().

◆ getDisAsm()

const MCDisassembler * llvm::LLVMDisasmContext::getDisAsm ( ) const
inline

Definition at line 109 of file Disassembler.h.

Referenced by LLVMDisasmInstruction().

◆ getDisInfo()

void * llvm::LLVMDisasmContext::getDisInfo ( ) const
inline

Definition at line 102 of file Disassembler.h.

◆ getGetOpInfo()

LLVMOpInfoCallback llvm::LLVMDisasmContext::getGetOpInfo ( ) const
inline

Definition at line 104 of file Disassembler.h.

◆ getInstrInfo()

const MCInstrInfo * llvm::LLVMDisasmContext::getInstrInfo ( ) const
inline

Definition at line 111 of file Disassembler.h.

References llvm::MCInstrInfo::get().

Referenced by getItineraryLatency(), getLatency(), and LLVMSetDisasmOptions().

◆ getIP()

MCInstPrinter * llvm::LLVMDisasmContext::getIP ( )
inline

Definition at line 114 of file Disassembler.h.

Referenced by LLVMDisasmInstruction(), and LLVMSetDisasmOptions().

◆ getOptions()

uint64_t llvm::LLVMDisasmContext::getOptions ( ) const
inline

Definition at line 116 of file Disassembler.h.

References Options.

Referenced by LLVMDisasmInstruction().

◆ getRegisterInfo()

const MCRegisterInfo * llvm::LLVMDisasmContext::getRegisterInfo ( ) const
inline

Definition at line 112 of file Disassembler.h.

References MRI.

Referenced by LLVMSetDisasmOptions().

◆ getSubtargetInfo()

const MCSubtargetInfo * llvm::LLVMDisasmContext::getSubtargetInfo ( ) const
inline

Definition at line 113 of file Disassembler.h.

Referenced by getItineraryLatency(), getLatency(), and LLVMDisasmInstruction().

◆ getSymbolLookupCallback()

LLVMSymbolLookupCallback llvm::LLVMDisasmContext::getSymbolLookupCallback ( ) const
inline

Definition at line 105 of file Disassembler.h.

◆ getTagType()

int llvm::LLVMDisasmContext::getTagType ( ) const
inline

Definition at line 103 of file Disassembler.h.

◆ getTarget()

const Target * llvm::LLVMDisasmContext::getTarget ( ) const
inline

Definition at line 108 of file Disassembler.h.

Referenced by LLVMSetDisasmOptions().

◆ getTripleName()

const std::string & llvm::LLVMDisasmContext::getTripleName ( ) const
inline

Definition at line 101 of file Disassembler.h.

Referenced by LLVMSetDisasmOptions().

◆ setCPU()

void llvm::LLVMDisasmContext::setCPU ( const char CPU)
inline

Definition at line 119 of file Disassembler.h.

Referenced by LLVMCreateDisasmCPUFeatures().

◆ setIP()

void llvm::LLVMDisasmContext::setIP ( MCInstPrinter NewIP)
inline

Definition at line 115 of file Disassembler.h.

Referenced by LLVMSetDisasmOptions().

Member Data Documentation

◆ CommentsToEmit

SmallString<128> llvm::LLVMDisasmContext::CommentsToEmit

Definition at line 82 of file Disassembler.h.

Referenced by emitComments().

◆ CommentStream

raw_svector_ostream llvm::LLVMDisasmContext::CommentStream

Definition at line 83 of file Disassembler.h.

Referenced by emitLatency(), and LLVMSetDisasmOptions().


The documentation for this class was generated from the following file: