================
@@ -7084,6 +7077,10 @@ def mapxf : Flag<["-"], "mapxf">,
Group<m_x86_Features_Group>;
def mno_apxf : Flag<["-"], "mno-apxf">, Group<m_x86_Features_Group>;
def mapx_inline_asm_use_gpr32 : Flag<["-"], "mapx-inline-asm-use-gpr32">,
Group<m_Group>,
HelpText<"Enable use of GPR32 in inline
assembly for APX">;
+foreach i = {8, 10-15} in
+ def ffixed_r#i : Flag<["-"], "ffixed-r"#i>, Group<m_Group>,
+ HelpText<"Reserve the r"#i#" register (x86_64 only)">;
+
----------------
zhouguangyuan0718 wrote:
As I know, gcc also using same option, reference to:
https://man7.org/linux/man-pages/man1/gcc.1.html.
```
-ffixed-reg
Treat the register named reg as a fixed register; generated
code should never refer to it (except perhaps as a stack
pointer, frame pointer or in some other fixed role).
reg must be the name of a register. The register names
accepted are machine-specific and are defined in the
"REGISTER_NAMES" macro in the machine description macro file.
This flag does not have a negative form, because it specifies
a three-way choice.
```
It's ok for me to change the option name. Just explain the reason I use this
name.
https://github.com/llvm/llvm-project/pull/180242
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits