llvm::MFPropsModifier

RAII helper that updates MachineFunctionProperties around a pass run.

Synopsis

Declared in <llvm/CodeGen/MachinePassManager.h>

template<typename PassT>
class MFPropsModifier;

Description

Define an MFPropsModifier in PassT::run to set MachineFunctionProperties properly.

Member Functions

NameDescription
MFPropsModifier [constructor]Begin updating MachineFunctionProperties for pass P_ on MF_.
~MFPropsModifier [destructor]Restore set properties on the machine function when the modifier ends.

Deduction Guides

NameDescription
MFPropsModifier<PassT> Deduction guide that suppresses unused-parameter warnings for MFPropsModifier.