LLVM 24.0.0git
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)
StringRef getTripleName () const
void * getDisInfo () const
int getTagType () const
LLVMOpInfoCallback getGetOpInfo () const
LLVMSymbolLookupCallback getSymbolLookupCallback () const
const Target * getTarget () const
const MCDisassembler * getDisAsm () const
const MCAsmInfo * getAsmInfo () const
const MCInstrInfo * getInstrInfo () const
const MCRegisterInfo * getRegisterInfo () const
const MCSubtargetInfo * getSubtargetInfo () const
MCInstPrinter * getIP ()
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 CommentsToEmit, CommentStream, and llvm::move().

Member Function Documentation

◆ addOptions()

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

Definition at line 117 of file Disassembler.h.

References uint64_t.

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.

◆ 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 emitLatency(), 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 uint64_t.

Referenced by LLVMDisasmInstruction().

◆ getRegisterInfo()

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

Definition at line 112 of file Disassembler.h.

References llvm::MCRegisterInfo::get().

Referenced by LLVMSetDisasmOptions().

◆ getSubtargetInfo()

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

Definition at line 113 of file Disassembler.h.

Referenced by emitLatency(), 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()

StringRef 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(), and LLVMDisasmContext().

◆ CommentStream

raw_svector_ostream llvm::LLVMDisasmContext::CommentStream

Definition at line 83 of file Disassembler.h.

Referenced by emitLatency(), LLVMDisasmContext(), and LLVMSetDisasmOptions().


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