LLVM 22.0.0git
HexagonVectorPrint.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "hexagon-vector-print"

Functions

static bool isVecReg (unsigned Reg)
static std::string getStringReg (unsigned R)
static void addAsmInstr (MachineBasicBlock *MBB, unsigned Reg, MachineBasicBlock::instr_iterator I, const DebugLoc &DL, const HexagonInstrInfo *QII, MachineFunction &Fn)
static bool getInstrVecReg (const MachineInstr &MI, unsigned &Reg)
 INITIALIZE_PASS (HexagonVectorPrint, "hexagon-vector-print", "Hexagon VectorPrint pass", false, false) FunctionPass *llvm

Variables

static cl::opt< boolTraceHexVectorStoresOnly ("trace-hex-vector-stores-only", cl::Hidden, cl::desc("Enables tracing of vector stores"))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hexagon-vector-print"

Definition at line 38 of file HexagonVectorPrint.cpp.

Function Documentation

◆ addAsmInstr()

◆ getInstrVecReg()

bool getInstrVecReg ( const MachineInstr & MI,
unsigned & Reg )
static

Definition at line 100 of file HexagonVectorPrint.cpp.

References isVecReg(), MI, Reg, and TraceHexVectorStoresOnly.

◆ getStringReg()

std::string getStringReg ( unsigned R)
static

Definition at line 72 of file HexagonVectorPrint.cpp.

References llvm_unreachable.

Referenced by addAsmInstr().

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( HexagonVectorPrint ,
"hexagon-vector-print" ,
"Hexagon VectorPrint pass" ,
false ,
false  )

Definition at line 196 of file HexagonVectorPrint.cpp.

References llvm::createHexagonVectorPrint().

◆ isVecReg()

bool isVecReg ( unsigned Reg)
static

Definition at line 65 of file HexagonVectorPrint.cpp.

References Reg.

Referenced by getInstrVecReg().

Variable Documentation

◆ TraceHexVectorStoresOnly

cl::opt< bool > TraceHexVectorStoresOnly("trace-hex-vector-stores-only", cl::Hidden, cl::desc("Enables tracing of vector stores")) ( "trace-hex-vector-stores-only" ,
cl::Hidden ,
cl::desc("Enables tracing of vector stores")  )
static

Referenced by getInstrVecReg().