You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/intrinsics/mod.rs
+10-21Lines changed: 10 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
//! Compiler intrinsics.
2
2
//!
3
-
//! The corresponding definitions are in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_llvm/src/intrinsic.rs>.
4
-
//! The corresponding const implementations are in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>.
3
+
//! These are the imports making intrinsics available to Rust code. The actual implementations live in the compiler.
4
+
//! Some of these intrinsics are lowered to MIR in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_mir_transform/src/lower_intrinsics.rs>.
5
+
//! The remaining intrinsics are implemented for the LLVM backend in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_ssa/src/mir/intrinsic.rs>
6
+
//! and <https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_llvm/src/intrinsic.rs>,
7
+
//! and for const evaluation in <https://github.com/rust-lang/rust/blob/master/compiler/rustc_const_eval/src/interpret/intrinsics.rs>.
5
8
//!
6
9
//! # Const intrinsics
7
10
//!
@@ -20,28 +23,14 @@
20
23
//!
21
24
//! The volatile intrinsics provide operations intended to act on I/O
22
25
//! memory, which are guaranteed to not be reordered by the compiler
23
-
//! across other volatile intrinsics. See the LLVM documentation on
0 commit comments