LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::RegisterOperands Class Reference

List of registers defined and used by a machine instruction. More...

#include "llvm/CodeGen/RegisterPressure.h"

Collaboration diagram for llvm::RegisterOperands:
Collaboration graph
[legend]

Public Member Functions

void collect (const MachineInstr &MI, const TargetRegisterInfo &TRI, const MachineRegisterInfo &MRI, bool TrackLaneMasks, bool IgnoreDead)
 Analyze the given instruction MI and fill in the Uses, Defs and DeadDefs list based on the MachineOperand flags. More...
 
void detectDeadDefs (const MachineInstr &MI, const LiveIntervals &LIS)
 Use liveness information to find dead defs not marked with a dead flag and move them to the DeadDefs vector. More...
 
void adjustLaneLiveness (const LiveIntervals &LIS, const MachineRegisterInfo &MRI, SlotIndex Pos, MachineInstr *AddFlagsMI=nullptr)
 Use liveness information to find out which uses/defs are partially undefined/dead and adjust the RegisterMaskPairs accordingly. More...
 

Public Attributes

SmallVector< RegisterMaskPair, 8 > Uses
 List of virtual registers and register units read by the instruction. More...
 
SmallVector< RegisterMaskPair, 8 > Defs
 List of virtual registers and register units defined by the instruction which are not dead. More...
 
SmallVector< RegisterMaskPair, 8 > DeadDefs
 List of virtual registers and register units defined by the instruction but dead. More...
 

Detailed Description

List of registers defined and used by a machine instruction.

Definition at line 170 of file RegisterPressure.h.

Member Function Documentation

◆ adjustLaneLiveness()

void RegisterOperands::adjustLaneLiveness ( const LiveIntervals LIS,
const MachineRegisterInfo MRI,
SlotIndex  Pos,
MachineInstr AddFlagsMI = nullptr 
)

◆ collect()

void RegisterOperands::collect ( const MachineInstr MI,
const TargetRegisterInfo TRI,
const MachineRegisterInfo MRI,
bool  TrackLaneMasks,
bool  IgnoreDead 
)

◆ detectDeadDefs()

void RegisterOperands::detectDeadDefs ( const MachineInstr MI,
const LiveIntervals LIS 
)

Member Data Documentation

◆ DeadDefs

SmallVector<RegisterMaskPair, 8> llvm::RegisterOperands::DeadDefs

◆ Defs

SmallVector<RegisterMaskPair, 8> llvm::RegisterOperands::Defs

◆ Uses

SmallVector<RegisterMaskPair, 8> llvm::RegisterOperands::Uses

The documentation for this class was generated from the following files: