class CodeEmitter
Declaration
class CodeEmitter { /* full declaration omitted */ };
Description
A utility class used to compute instruction encodings for a code region. It provides a simple API to compute and return instruction encodings as strings. Encodings are cached internally for later usage.
Declared at: llvm/include/llvm/MCA/CodeEmitter.h:39
Method Overview
- public CodeEmitter(const llvm::MCSubtargetInfo & ST, const llvm::MCAsmBackend & AB, const llvm::MCCodeEmitter & CE, ArrayRef<llvm::MCInst> S)
- public llvm::StringRef getEncoding(unsigned int MCID)
Methods
¶CodeEmitter(const llvm::MCSubtargetInfo& ST,
const llvm::MCAsmBackend& AB,
const llvm::MCCodeEmitter& CE,
ArrayRef<llvm::MCInst> S)
CodeEmitter(const llvm::MCSubtargetInfo& ST,
const llvm::MCAsmBackend& AB,
const llvm::MCCodeEmitter& CE,
ArrayRef<llvm::MCInst> S)
Declared at: llvm/include/llvm/MCA/CodeEmitter.h:58
Parameters
- const llvm::MCSubtargetInfo& ST
- const llvm::MCAsmBackend& AB
- const llvm::MCCodeEmitter& CE
- ArrayRef<llvm::MCInst> S
¶llvm::StringRef getEncoding(unsigned int MCID)
llvm::StringRef getEncoding(unsigned int MCID)
Declared at: llvm/include/llvm/MCA/CodeEmitter.h:63
Parameters
- unsigned int MCID