[llvm] 9d6527b - [CodeGen] Add MOTargetFlag4 to MachineMemOperand Flags (#120136)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 06:45:55 PST 2025
Author: Acim Maravic
Date: 2025-01-03T15:45:52+01:00
New Revision: 9d6527bc12547e28b86d180b76fe934a96aa518e
URL: https://github.com/llvm/llvm-project/commit/9d6527bc12547e28b86d180b76fe934a96aa518e
DIFF: https://github.com/llvm/llvm-project/commit/9d6527bc12547e28b86d180b76fe934a96aa518e.diff
LOG: [CodeGen] Add MOTargetFlag4 to MachineMemOperand Flags (#120136)
Added:
Modified:
llvm/include/llvm/CodeGen/MachineMemOperand.h
llvm/lib/CodeGen/MachineOperand.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineMemOperand.h b/llvm/include/llvm/CodeGen/MachineMemOperand.h
index e2343abcc4ac18..2caa3bd30487ac 100644
--- a/llvm/include/llvm/CodeGen/MachineMemOperand.h
+++ b/llvm/include/llvm/CodeGen/MachineMemOperand.h
@@ -152,8 +152,9 @@ class MachineMemOperand {
MOTargetFlag1 = 1u << 6,
MOTargetFlag2 = 1u << 7,
MOTargetFlag3 = 1u << 8,
+ MOTargetFlag4 = 1u << 9,
- LLVM_MARK_AS_BITMASK_ENUM(/* LargestFlag = */ MOTargetFlag3)
+ LLVM_MARK_AS_BITMASK_ENUM(/* LargestFlag = */ MOTargetFlag4)
};
private:
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 3a9bdde28a2e71..5c9ca91e784e9c 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -1170,6 +1170,9 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
if (getFlags() & MachineMemOperand::MOTargetFlag3)
OS << '"' << getTargetMMOFlagName(*TII, MachineMemOperand::MOTargetFlag3)
<< "\" ";
+ if (getFlags() & MachineMemOperand::MOTargetFlag4)
+ OS << '"' << getTargetMMOFlagName(*TII, MachineMemOperand::MOTargetFlag4)
+ << "\" ";
} else {
if (getFlags() & MachineMemOperand::MOTargetFlag1)
OS << "\"MOTargetFlag1\" ";
@@ -1177,6 +1180,8 @@ void MachineMemOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
OS << "\"MOTargetFlag2\" ";
if (getFlags() & MachineMemOperand::MOTargetFlag3)
OS << "\"MOTargetFlag3\" ";
+ if (getFlags() & MachineMemOperand::MOTargetFlag4)
+ OS << "\"MOTargetFlag4\" ";
}
assert((isLoad() || isStore()) &&
More information about the llvm-commits
mailing list