LLVM 22.0.0git
Functions
NVPTXForwardParams.cpp File Reference
#include "NVPTX.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/Support/ErrorHandling.h"

Go to the source code of this file.

Functions

static bool traverseMoveUse (MachineInstr &U, const MachineRegisterInfo &MRI, SmallVectorImpl< MachineInstr * > &RemoveList, SmallVectorImpl< MachineInstr * > &LoadInsts)
 
static bool eliminateMove (MachineInstr &Mov, const MachineRegisterInfo &MRI, SmallVectorImpl< MachineInstr * > &RemoveList)
 
static bool forwardDeviceParams (MachineFunction &MF)
 
 INITIALIZE_PASS (NVPTXForwardParamsPass, "nvptx-forward-params", "NVPTX Forward Params", false, false) bool NVPTXForwardParamsPass
 

Function Documentation

◆ eliminateMove()

static bool eliminateMove ( MachineInstr Mov,
const MachineRegisterInfo MRI,
SmallVectorImpl< MachineInstr * > &  RemoveList 
)
static

◆ forwardDeviceParams()

static bool forwardDeviceParams ( MachineFunction MF)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( NVPTXForwardParamsPass  ,
"nvptx-forward-params"  ,
"NVPTX Forward Params"  ,
false  ,
false   
)

Definition at line 145 of file NVPTXForwardParams.cpp.

References forwardDeviceParams().

◆ traverseMoveUse()

static bool traverseMoveUse ( MachineInstr U,
const MachineRegisterInfo MRI,
SmallVectorImpl< MachineInstr * > &  RemoveList,
SmallVectorImpl< MachineInstr * > &  LoadInsts 
)
static