LLVM: lib/Target/SPIRV/MCTargetDesc/SPIRVMCCodeEmitter.cpp File Reference (original) (raw)

#include "[MCTargetDesc/SPIRVMCTargetDesc.h](SPIRVMCTargetDesc%5F8h%5Fsource.html)"
#include "[llvm/MC/MCCodeEmitter.h](MCCodeEmitter%5F8h%5Fsource.html)"
#include "[llvm/MC/MCFixup.h](MCFixup%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInst.h](MCInst%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInstrInfo.h](MCInstrInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSubtargetInfo.h](MCSubtargetInfo%5F8h%5Fsource.html)"
#include "[llvm/Support/EndianStream.h](EndianStream%5F8h%5Fsource.html)"
#include "SPIRVGenMCCodeEmitter.inc"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "spirv-mccodeemitter"
Typedefs
using EndianWriter = support::endian::Writer
Functions
static bool hasType (const MCInst &MI, const MCInstrInfo &MII)
static void emitOperand (const MCOperand &Op, SmallVectorImpl< char > &CB)
static void emitTypedInstrOperands (const MCInst &MI, SmallVectorImpl< char > &CB)
static void emitUntypedInstrOperands (const MCInst &MI, SmallVectorImpl< char > &CB)

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "spirv-mccodeemitter"

Definition at line 23 of file SPIRVMCCodeEmitter.cpp.

Typedef Documentation

EndianWriter

using EndianWriter = support::endian::Writer

Definition at line 57 of file SPIRVMCCodeEmitter.cpp.

Function Documentation

emitOperand()

void emitOperand ( const MCOperand & Op, SmallVectorImpl< char > & CB ) static

Definition at line 75 of file SPIRVMCCodeEmitter.cpp.

References llvm::SPIRV::getIDFromRegister(), llvm::little, llvm_unreachable, and llvm::support::endian::write().

Referenced by emitTypedInstrOperands(), and emitUntypedInstrOperands().

emitTypedInstrOperands()

void emitTypedInstrOperands ( const MCInst & MI, SmallVectorImpl< char > & CB ) static

Definition at line 91 of file SPIRVMCCodeEmitter.cpp.

References AbstractManglingParser< Derived, Alloc >::NumOps, emitOperand(), and MI.

emitUntypedInstrOperands()

void emitUntypedInstrOperands ( const MCInst & MI, SmallVectorImpl< char > & CB ) static

Definition at line 101 of file SPIRVMCCodeEmitter.cpp.

References emitOperand(), and MI.

hasType()

bool hasType ( const MCInst & MI, const MCInstrInfo & MII ) static

Definition at line 62 of file SPIRVMCCodeEmitter.cpp.

References llvm::MCInstrInfo::get(), llvm::MCInstrDesc::getNumDefs(), llvm::MCInstrDesc::getNumOperands(), MI, and llvm::MCInstrDesc::operands().