[llvm] [NFC][CodeGen] Add helper function to check SubReg validity (PR #181489)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 18 06:54:49 PST 2026


================
@@ -735,6 +735,10 @@ class LLVM_ABI TargetRegisterInfo : public MCRegisterInfo {
     return nullptr;
   }
 
+  /// Returns true if sub-register \p Idx can be used with register class \p RC.
----------------
arsenm wrote:

The comment in the function definition is more useful and belongs here 

https://github.com/llvm/llvm-project/pull/181489


More information about the llvm-commits mailing list