Skip to content

Commit d40eb58

Browse files
committed
Add future possibility of a shorthand notation
1 parent 8cc1d95 commit d40eb58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rfcs/0000-inline-asm.md

+4
Original file line numberDiff line numberDiff line change
@@ -836,3 +836,7 @@ The `global_asm!` macro could be extended to support `imm` and `sym` operands si
836836
## Memory operands
837837

838838
We could support `mem` as an alternative to specifying a register class which would leave the operand in memory and instead produce a memory address when inserted into the asm string. This would allow generating more efficient code by taking advantage of addressing modes instead of using an intermediate register to hold the computed address.
839+
840+
## Shorthand notation for operand names
841+
842+
We should support some sort of shorthand notation for operand names to avoid needing to write `blah = out(reg) blah`? For example, if the expression is just a single identifier, we could implicitly allow that operand to be referred to using that identifier.

0 commit comments

Comments
 (0)