Skip to content

Commit 5708b1a

Browse files
committed
Auto merge of #27016 - alexcrichton:inline-asm-docs, r=steveklabnik
Hot off the press, we've now got some nice documentation to link to in LLVM officially!
2 parents 137a699 + 07132b4 commit 5708b1a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/doc/trpl/inline-assembly.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn main() {
103103
If you would like to use real operands in this position, however,
104104
you are required to put curly braces `{}` around the register that
105105
you want, and you are required to put the specific size of the
106-
operand. This is useful for very low level programming, where
106+
operand. This is useful for very low level programming, where
107107
which register you use is important:
108108

109109
```rust
@@ -166,3 +166,12 @@ unsafe {
166166
println!("eax is currently {}", result);
167167
# }
168168
```
169+
170+
## More Information
171+
172+
The current implementation of the `asm!` macro is a direct binding to [LLVM's
173+
inline assembler expressions][llvm-docs], so be sure to check out [their
174+
documentation as well][llvm-docs] for more information about clobbers,
175+
constraints, etc.
176+
177+
[llvm-docs]: http://llvm.org/docs/LangRef.html#inline-assembler-expressions

0 commit comments

Comments
 (0)