diff options
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIRParser.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRParser/MIRParser.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp index 6e63f1c..a57bda5 100644 --- a/llvm/lib/CodeGen/MIRParser/MIRParser.cpp +++ b/llvm/lib/CodeGen/MIRParser/MIRParser.cpp @@ -434,7 +434,7 @@ bool MIRParserImpl::computeFunctionProperties( MF.setHasInlineAsm(HasInlineAsm); if (HasTiedOps && AllTiedOpsRewritten) - Properties.set(MachineFunctionProperties::Property::TiedOpsRewritten); + Properties.setTiedOpsRewritten(); if (ComputedPropertyHelper(YamlMF.IsSSA, isSSA(MF), MachineFunctionProperties::Property::IsSSA)) { @@ -556,21 +556,19 @@ MIRParserImpl::initializeMachineFunction(const yaml::MachineFunction &YamlMF, MF.setHasEHFunclets(YamlMF.HasEHFunclets); MF.setIsOutlined(YamlMF.IsOutlined); + MachineFunctionProperties &Props = MF.getProperties(); if (YamlMF.Legalized) - MF.getProperties().set(MachineFunctionProperties::Property::Legalized); + Props.setLegalized(); if (YamlMF.RegBankSelected) - MF.getProperties().set( - MachineFunctionProperties::Property::RegBankSelected); + Props.setRegBankSelected(); if (YamlMF.Selected) - MF.getProperties().set(MachineFunctionProperties::Property::Selected); + Props.setSelected(); if (YamlMF.FailedISel) - MF.getProperties().set(MachineFunctionProperties::Property::FailedISel); + Props.setFailedISel(); if (YamlMF.FailsVerification) - MF.getProperties().set( - MachineFunctionProperties::Property::FailsVerification); + Props.setFailsVerification(); if (YamlMF.TracksDebugUserValues) - MF.getProperties().set( - MachineFunctionProperties::Property::TracksDebugUserValues); + Props.setTracksDebugUserValues(); PerFunctionMIParsingState PFS(MF, SM, IRSlots, *Target); if (parseRegisterInfo(PFS, YamlMF)) |