diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2025-05-22 08:07:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 08:07:52 -0700 |
commit | 1fdf02ad5a4ca155017eea22688365a20aab077c (patch) | |
tree | 38da88552269eba7d8e30bfadbbf0c8d60375127 /llvm/lib/CodeGen/GlobalISel/Utils.cpp | |
parent | eee958285bde228df2893f70f879c1af8ec8386c (diff) | |
download | llvm-1fdf02ad5a4ca155017eea22688365a20aab077c.zip llvm-1fdf02ad5a4ca155017eea22688365a20aab077c.tar.gz llvm-1fdf02ad5a4ca155017eea22688365a20aab077c.tar.bz2 |
[LLVM][CodeGen] Add convenience accessors for MachineFunctionProperties (#140002)users/pcc/spr/main.elf-add-branch-to-branch-optimization
Add per-property has<Prop>/set<Prop>/reset<Prop> functions to
MachineFunctionProperties.
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/Utils.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/Utils.cpp b/llvm/lib/CodeGen/GlobalISel/Utils.cpp index 445a716..64af7a5 100644 --- a/llvm/lib/CodeGen/GlobalISel/Utils.cpp +++ b/llvm/lib/CodeGen/GlobalISel/Utils.cpp @@ -259,7 +259,7 @@ void llvm::reportGISelWarning(MachineFunction &MF, const TargetPassConfig &TPC, void llvm::reportGISelFailure(MachineFunction &MF, const TargetPassConfig &TPC, MachineOptimizationRemarkEmitter &MORE, MachineOptimizationRemarkMissed &R) { - MF.getProperties().set(MachineFunctionProperties::Property::FailedISel); + MF.getProperties().setFailedISel(); reportGISelDiagnostic(DS_Error, MF, TPC, MORE, R); } |