[llvm] [NFC][TableGen] Add accessors for various instruction subclasses (PR #146615)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 09:08:37 PDT 2025
================
@@ -191,19 +182,34 @@ class CodeGenTarget {
return InstrsByEnum;
}
+ // Functions that return various slices of `getInstructionsByEnumValue`.
+ ArrayRef<const CodeGenInstruction *>
----------------
mshockwave wrote:
> is it ok to rename getInstructionsByEnumValue() (too verbose) to getInstructions()
Agree. You can add a comment about the result being ordered by enum values (just like the original `getInstructionsByEnumValue`) if you like.
https://github.com/llvm/llvm-project/pull/146615
More information about the llvm-commits
mailing list