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.
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.
Related: #64232
According to GCC docs
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.