9#ifndef LLVM_CODEGEN_MACHINEFUNCTIONPROPERTIES_H
10#define LLVM_CODEGEN_MACHINEFUNCTIONPROPERTIES_H
89 return Properties[
static_cast<unsigned>(
P)];
93 Properties.
set(
static_cast<unsigned>(
P));
98 Properties.
reset(
static_cast<unsigned>(
P));
103#define PPACCESSORS(X) \
104 bool has##X() const { return hasProperty(Property::X); } \
105 MachineFunctionProperties &set##X(void) { return set(Property::X); } \
106 MachineFunctionProperties &reset##X(void) { return reset(Property::X); }
136 Properties |= MFP.Properties;
141 Properties &= ~MFP.Properties;
148 return (Properties | ~
V.Properties).all();
Properties which a MachineFunction may have at a given point in time.
MachineFunctionProperties & reset()
Reset all the properties.
MachineFunctionProperties & resetToInitial()
Reset all properties and re-establish baseline invariants.
MachineFunctionProperties & set(const MachineFunctionProperties &MFP)
LLVM_ABI void print(raw_ostream &OS) const
Print the MachineFunctionProperties in human-readable form.
bool verifyRequiredProperties(const MachineFunctionProperties &V) const
MachineFunctionProperties & reset(const MachineFunctionProperties &MFP)
MachineFunctionProperties & set(Property P)
bool hasProperty(Property P) const
MachineFunctionProperties & reset(Property P)
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.