LLVM 20.0.0git
Functions | Variables
MachineRegisterInfo.cpp File Reference
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/IR/Function.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>

Go to the source code of this file.

Functions

static const TargetRegisterClassconstrainRegClass (MachineRegisterInfo &MRI, Register Reg, const TargetRegisterClass *OldRC, const TargetRegisterClass *RC, unsigned MinNumRegs)
 
static const FunctiongetCalledFunction (const MachineInstr &MI)
 
static bool isNoReturnDef (const MachineOperand &MO)
 

Variables

static cl::opt< boolEnableSubRegLiveness ("enable-subreg-liveness", cl::Hidden, cl::init(true), cl::desc("Enable subregister liveness tracking."))
 

Function Documentation

◆ constrainRegClass()

static const TargetRegisterClass * constrainRegClass ( MachineRegisterInfo MRI,
Register  Reg,
const TargetRegisterClass OldRC,
const TargetRegisterClass RC,
unsigned  MinNumRegs 
)
static

Definition at line 69 of file MachineRegisterInfo.cpp.

References llvm::TargetRegisterClass::getNumRegs(), and MRI.

◆ getCalledFunction()

static const Function * getCalledFunction ( const MachineInstr MI)
static

Definition at line 554 of file MachineRegisterInfo.cpp.

References MI.

◆ isNoReturnDef()

static bool isNoReturnDef ( const MachineOperand MO)
static

Variable Documentation

◆ EnableSubRegLiveness

cl::opt< bool > EnableSubRegLiveness("enable-subreg-liveness", cl::Hidden, cl::init(true), cl::desc("Enable subregister liveness tracking.")) ( "enable-subreg-liveness"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Enable subregister liveness tracking.")   
)
static