LLVM 22.0.0git
SPIRVAsmPrinter.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "asm-printer"

Functions

static bool isFuncOrHeaderInstr (const MachineInstr *MI, const SPIRVInstrInfo *TII)
static unsigned encodeVecTypeHint (Type *Ty)
static void addOpsFromMDNode (MDNode *MDN, MCInst &Inst, SPIRV::ModuleAnalysisInfo *MAI)
 INITIALIZE_PASS (SPIRVAsmPrinter, "spirv-asm-printer", "SPIRV Assembly Printer", false, false) extern "C" LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSPIRVAsmPrinter()

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "asm-printer"

Definition at line 43 of file SPIRVAsmPrinter.cpp.

Function Documentation

◆ addOpsFromMDNode()

◆ encodeVecTypeHint()

unsigned encodeVecTypeHint ( Type * Ty)
static

Definition at line 412 of file SPIRVAsmPrinter.cpp.

References llvm::dyn_cast(), encodeVecTypeHint(), llvm_unreachable, and Size.

Referenced by encodeVecTypeHint().

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SPIRVAsmPrinter ,
"spirv-asm-printer" ,
"SPIRV Assembly Printer" ,
false ,
false  )

◆ isFuncOrHeaderInstr()

bool isFuncOrHeaderInstr ( const MachineInstr * MI,
const SPIRVInstrInfo * TII )
static

Definition at line 260 of file SPIRVAsmPrinter.cpp.

References MI, and TII.