[llvm] [X86][MC] Support encoding of EGPR for APX (PR #71909)
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 10 18:16:11 PST 2023
================
@@ -1208,6 +1208,11 @@ namespace X86II {
return RegNo >= X86::ZMM0 && RegNo <= X86::ZMM31;
}
+ /// \returns true if \p RegNo is an apx extended register.
+ inline bool isApxExtendedReg(unsigned RegNo) {
+ return RegNo >= X86::R16 && RegNo <= X86::R31WH;
----------------
KanRobert wrote:
Done.
https://github.com/llvm/llvm-project/pull/71909
More information about the llvm-commits
mailing list