[llvm] Fix MachineInstr::uses() doc. NFC. (PR #108950)
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 02:56:56 PDT 2024
https://github.com/rampitec created https://github.com/llvm/llvm-project/pull/108950
Uses was documented as register uses, which is not true.
>From 104cde77b33f8deb710891ea1e4ee8a91c7cb9e0 Mon Sep 17 00:00:00 2001
From: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: Tue, 17 Sep 2024 02:54:49 -0700
Subject: [PATCH] Fix MachineInstr::uses() doc. NFC.
Uses was documented as register uses, which is not true.
---
llvm/include/llvm/CodeGen/MachineInstr.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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