Issue 64239
Summary Allow reserving CPU registers at block level
Labels new issue
Assignees
Reporter KOLANICH
    Related: #64232

[According to GCC docs](https://gcc.gnu.org/onlinedocs/gcc/extensions-to-the-c-language-family/how-to-use-inline-assembly-language-in-c-code.html#local-register-variables)

```c++
register uint64_t a asm ("%rax");
```

syntax doesn't reserve a register, it just allows to pass info to and from `asm` blocks.

It'd be nice to have some syntax allowing to guide a compiler into avoiding cloberring a register for anything else, and restore it before the places it is used if any places where the compiler couldn't proove it is unused had happenned.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to