LLVM 18.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.

Macros

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

Functions

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

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "riscv-init-undef"

Definition at line 50 of file RISCVRVVInitUndef.cpp.

◆ RISCV_INIT_UNDEF_NAME

#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 
)
static

Definition at line 140 of file RISCVRVVInitUndef.cpp.

References DefMI, and MRI.

◆ getUndefInitOpcode()

static unsigned getUndefInitOpcode ( unsigned  RegClassID)
static

Definition at line 119 of file RISCVRVVInitUndef.cpp.

References llvm_unreachable.

◆ isEarlyClobberMI()

static bool isEarlyClobberMI ( MachineInstr MI)
static

Definition at line 134 of file RISCVRVVInitUndef.cpp.

References llvm::any_of(), and MI.