Function location [src]
Forms the main linkage for input and output address spaces.
ptr must be a reference to variable or struct field.
Prototype
pub fn location(comptime ptr: anytype, comptime loc: u32) void
Parameters
loc: u32
Source
pub fn location(comptime ptr: anytype, comptime loc: u32) void {
asm volatile (
\\OpDecorate %ptr Location $loc
:
: [ptr] "" (ptr),
[loc] "c" (loc),
);
}