[llvm] ce73407 - Fix MachineInstr::uses() doc. NFC. (#108950)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 03:51:49 PDT 2024
Author: Stanislav Mekhanoshin
Date: 2024-09-17T03:51:45-07:00
New Revision: ce73407015f38e681159165a4c6267b2379acea7
URL: https://github.com/llvm/llvm-project/commit/ce73407015f38e681159165a4c6267b2379acea7
DIFF: https://github.com/llvm/llvm-project/commit/ce73407015f38e681159165a4c6267b2379acea7.diff
LOG: Fix MachineInstr::uses() doc. NFC. (#108950)
Uses was documented as register uses, which is not true.
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 8d6df1026e53a3..76a7b8662bae66 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -728,7 +728,7 @@ class MachineInstr
return make_range(operands_begin(),
operands_begin() + getNumExplicitDefs());
}
- /// Returns a range that includes all operands that are register uses.
+ /// Returns a range that includes all operands which may be register uses.
/// This may include unrelated operands which are not register uses.
iterator_range<mop_iterator> uses() {
return make_range(operands_begin() + getNumExplicitDefs(), operands_end());
More information about the llvm-commits
mailing list