LLVM 19.0.0git
Macros | Functions
RISCVRVVInitUndef.cpp File Reference
#include "RISCV.h"
#include "RISCVSubtarget.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/DetectDeadLanes.h"
#include "llvm/CodeGen/MachineFunctionPass.h"

Go to the source code of this file.


#define DEBUG_TYPE   "riscv-init-undef"
#define RISCV_INIT_UNDEF_NAME   "RISC-V init undef pass"


static unsigned getUndefInitOpcode (unsigned RegClassID)
static bool isEarlyClobberMI (MachineInstr &MI)
static bool findImplictDefMIFromReg (Register Reg, MachineRegisterInfo *MRI)

Macro Definition Documentation


#define DEBUG_TYPE   "riscv-init-undef"

Definition at line 50 of file RISCVRVVInitUndef.cpp.


#define RISCV_INIT_UNDEF_NAME   "RISC-V init undef pass"

Definition at line 51 of file RISCVRVVInitUndef.cpp.

Function Documentation

◆ findImplictDefMIFromReg()

static bool findImplictDefMIFromReg ( Register  Reg,
MachineRegisterInfo MRI 

Definition at line 138 of file RISCVRVVInitUndef.cpp.

References DefMI, and MRI.

◆ getUndefInitOpcode()

static unsigned getUndefInitOpcode ( unsigned  RegClassID)

Definition at line 117 of file RISCVRVVInitUndef.cpp.

References llvm_unreachable.

◆ isEarlyClobberMI()

static bool isEarlyClobberMI ( MachineInstr MI)

Definition at line 132 of file RISCVRVVInitUndef.cpp.

References llvm::any_of(), and MI.