[llvm] 416f3ff - [CodeGen] Remove getPseudoProbeAttribute and addPseudoProbeAttribute (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 29 07:14:44 PDT 2021
Author: Kazu Hirata
Date: 2021-07-29T07:14:37-07:00
New Revision: 416f3ff8038c24ebfe4dd4c1708c4c4fee41a083
URL: https://github.com/llvm/llvm-project/commit/416f3ff8038c24ebfe4dd4c1708c4c4fee41a083
DIFF: https://github.com/llvm/llvm-project/commit/416f3ff8038c24ebfe4dd4c1708c4c4fee41a083.diff
LOG: [CodeGen] Remove getPseudoProbeAttribute and addPseudoProbeAttribute (NFC)
The last uses of these functions were removed on Jun 17, 2021 in
commit bd52495518808bdbf24f4d8e9e20774d6d2e3333.
Added:
Modified:
llvm/include/llvm/CodeGen/MachineInstr.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 757907f6d8879..f76928c241943 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -1859,17 +1859,6 @@ class MachineInstr
}
}
- PseudoProbeAttributes getPseudoProbeAttribute() const {
- assert(isPseudoProbe() && "Must be a pseudo probe instruction");
- return (PseudoProbeAttributes)getOperand(3).getImm();
- }
-
- void addPseudoProbeAttribute(PseudoProbeAttributes Attr) {
- assert(isPseudoProbe() && "Must be a pseudo probe instruction");
- MachineOperand &AttrOperand = getOperand(3);
- AttrOperand.setImm(AttrOperand.getImm() | (uint32_t)Attr);
- }
-
private:
/// If this instruction is embedded into a MachineFunction, return the
/// MachineRegisterInfo object for the current function, otherwise
More information about the llvm-commits
mailing list