Skip to content

Commit c3367db

Browse files
committed
Add some comments to PassMode
1 parent a93dace commit c3367db

File tree

1 file changed

+6
-0
lines changed
  • compiler/rustc_target/src/abi/call

1 file changed

+6
-0
lines changed

compiler/rustc_target/src/abi/call/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,16 @@ mod x86_win64;
2727
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
2828
pub enum PassMode {
2929
/// Ignore the argument.
30+
///
31+
/// The argument is either uninhabited or a ZST.
3032
Ignore,
3133
/// Pass the argument directly.
34+
///
35+
/// The argument has a layout abi of `Scalar` or `Vector`.
3236
Direct(ArgAttributes),
3337
/// Pass a pair's elements directly in two arguments.
38+
///
39+
/// The argument has a layout abi of `ScalarPair`.
3440
Pair(ArgAttributes, ArgAttributes),
3541
/// Pass the argument after casting it, to either
3642
/// a single uniform or a pair of registers.

0 commit comments

Comments
 (0)