Files
rust/compiler/rustc_mir_transform
Flakebi 039b8bcadc Add address_space and byref to abi PassMode::Indirect
Both will be used by the amdgpu target to implement the `gpu-kernel`
ABI.

`address_space` specifies the address space of an indirect argument.

`AmdgpuKernelArg` translates to LLVM’s byref, which is similar to
on_stack/byval, however, there is no extra copy made, the pointer may
not point to the stack but can point to some other address space, and
the passed argument should not be modified.

byval and byref are mutually exclusive, so change on_stack to an enum
with the new states, Pointer (none), OnStack and AmdgpuKernelArg.
2026-09-23 09:56:28 +02:00
..
2026-08-21 10:33:56 +02:00