LLVM 20.0.0git
Public Member Functions | List of all members
llvm::mca::CodeEmitter Class Reference

A utility class used to compute instruction encodings for a code region. More...

#include "llvm/MCA/CodeEmitter.h"

Public Member Functions

 CodeEmitter (const MCSubtargetInfo &ST, const MCAsmBackend &AB, const MCCodeEmitter &CE, ArrayRef< MCInst > S)
 
StringRef getEncoding (unsigned MCID)
 

Detailed 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.

Definition at line 34 of file CodeEmitter.h.

Constructor & Destructor Documentation

◆ CodeEmitter()

llvm::mca::CodeEmitter::CodeEmitter ( const MCSubtargetInfo ST,
const MCAsmBackend AB,
const MCCodeEmitter CE,
ArrayRef< MCInst S 
)
inline

Definition at line 52 of file CodeEmitter.h.

References llvm::size().

Member Function Documentation

◆ getEncoding()

StringRef llvm::mca::CodeEmitter::getEncoding ( unsigned  MCID)
inline

Definition at line 56 of file CodeEmitter.h.


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