[clang] [llvm] [X86] Support EGPR for inline assembly. (PR #92338)

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 00:16:26 PDT 2024


================
@@ -5418,6 +5418,8 @@ X86:
   operand will get allocated only to RAX -- if two 32-bit operands are needed,
   you're better off splitting it yourself, before passing it to the asm
   statement.
+- ``jR``: An 8, 16, 32, or 64-bit integer EGPR when EGPR feature is on.
+  Otherwise, same as ``R``.
----------------
KanRobert wrote:

I think no
```
- ``r`` or ``l``: An 8, 16, 32, or 64-bit integer register.
- ``R``: An 8, 16, 32, or 64-bit "legacy" integer register -- one which has
  existed since i386, and can be accessed without the REX prefix.
```

`jR` seems weird by the existing conventions. We can change the design before we have the real users.

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


More information about the llvm-commits mailing list