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/MachineFunction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 833b765..607e87a 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -187,8 +187,8 @@ void MachineFunction::handleChangeDesc(MachineInstr &MI, void MachineFunction::init() { // Assume the function starts in SSA form with correct liveness. - Properties.set(MachineFunctionProperties::Property::IsSSA); - Properties.set(MachineFunctionProperties::Property::TracksLiveness); + Properties.setIsSSA(); + Properties.setTracksLiveness(); RegInfo = new (Allocator) MachineRegisterInfo(this); MFInfo = nullptr; -- cgit v1.1