Skip to content

Commit 9bf15f5

Browse files
committed
Document lower_intrinsics intrinsics
1 parent 12c691e commit 9bf15f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/doc/unstable-book/src/language-features/intrinsics.md

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ fn foo() -> u32 {
2424
}
2525
```
2626

27+
## Intrinsics lowered to MIR instructions
28+
29+
Various intrinsics have native MIR operations that they correspond to. Instead of requiring
30+
backends to implement both the intrinsic and the MIR operation, the `lower_intrinsics` pass
31+
will convert the calls to the MIR operation. Backends do not need to know about these intrinsics
32+
at all.
33+
2734
## Intrinsics without fallback logic
2835

2936
These must be implemented by all backends.

0 commit comments

Comments
 (0)