LLVM  5.0.0
Public Types | Public Member Functions | List of all members
llvm::MachineFunctionProperties Class Reference

Properties which a MachineFunction may have at a given point in time. More...

#include "llvm/CodeGen/MachineFunction.h"

Public Types

enum  Property : unsigned {
  Property::IsSSA, Property::NoPHIs, Property::TracksLiveness, Property::NoVRegs,
  Property::FailedISel, Property::Legalized, Property::RegBankSelected, Property::Selected,
  Property::LastProperty = Selected
}
 

Public Member Functions

bool hasProperty (Property P) const
 
MachineFunctionProperties & set (Property P)
 
MachineFunctionProperties & reset (Property P)
 
MachineFunctionProperties & reset ()
 Reset all the properties. More...
 
MachineFunctionProperties & set (const MachineFunctionProperties &MFP)
 
MachineFunctionProperties & reset (const MachineFunctionProperties &MFP)
 
bool verifyRequiredProperties (const MachineFunctionProperties &V) const
 
void print (raw_ostream &OS) const
 Print the MachineFunctionProperties in human-readable form. More...
 

Detailed Description

Properties which a MachineFunction may have at a given point in time.

Each of these has checking code in the MachineVerifier, and passes can require that a property be set.

Definition at line 112 of file MachineFunction.h.

Member Enumeration Documentation

Enumerator
IsSSA 
NoPHIs 
TracksLiveness 
NoVRegs 
FailedISel 
Legalized 
RegBankSelected 
Selected 
LastProperty 

Definition at line 148 of file MachineFunction.h.

Member Function Documentation

bool llvm::MachineFunctionProperties::hasProperty ( Property  P) const
inline
void MachineFunctionProperties::print ( raw_ostream &  OS) const

Print the MachineFunctionProperties in human-readable form.

Definition at line 69 of file MachineFunction.cpp.

References I, Separator, and llvm::BitVector::size().

Referenced by llvm::MachineFunction::print().

MachineFunctionProperties& llvm::MachineFunctionProperties::reset ( Property  P)
inline
MachineFunctionProperties& llvm::MachineFunctionProperties::reset ( )
inline

Reset all the properties.

Definition at line 175 of file MachineFunction.h.

References llvm::BitVector::reset().

MachineFunctionProperties& llvm::MachineFunctionProperties::reset ( const MachineFunctionProperties &  MFP)
inline

Definition at line 185 of file MachineFunction.h.

References llvm::BitVector::reset().

MachineFunctionProperties& llvm::MachineFunctionProperties::set ( Property  P)
inline
MachineFunctionProperties& llvm::MachineFunctionProperties::set ( const MachineFunctionProperties &  MFP)
inline

Definition at line 180 of file MachineFunction.h.

bool llvm::MachineFunctionProperties::verifyRequiredProperties ( const MachineFunctionProperties &  V) const
inline

Definition at line 192 of file MachineFunction.h.

References llvm::BitVector::test().


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