From 1fdf02ad5a4ca155017eea22688365a20aab077c Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 22 May 2025 08:07:52 -0700 Subject: [LLVM][CodeGen] Add convenience accessors for MachineFunctionProperties (#140002) Add per-property has/set/reset functions to MachineFunctionProperties. --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp') diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 36e2156..8d94b40 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1837,8 +1837,7 @@ bool TwoAddressInstructionImpl::run() { MRI->leaveSSA(); // This pass will rewrite the tied-def to meet the RegConstraint. - MF->getProperties() - .set(MachineFunctionProperties::Property::TiedOpsRewritten); + MF->getProperties().setTiedOpsRewritten(); TiedOperandMap TiedOperands; for (MachineBasicBlock &MBBI : *MF) { -- cgit v1.1