Source/Packages

Accelerator.SM90.InstructionEncoding

packages/hardware/architectures/nvidia-sm90/src/Accelerator/SM90/InstructionEncoding.alpha

500 lines73 declarations29.3 KiBSHA-256 6893fe9ca611

def · lines 198–218

sm90EncodeLoadGlobal

Full file
198def sm90EncodeLoadGlobal =
199  (lambda unrestricted guard : (family SM86InstructionGuard) .
200  (lambda unrestricted width : (family SM90GlobalLoadWidth) .
201  (lambda unrestricted allocation : (family SM90LoadAllocation) .
202  (lambda unrestricted destination : (family SM86Register) .
203  (lambda unrestricted address : (family SM86Register) .
204  (lambda unrestricted offset : Nat .
205  (lambda unrestricted control : (family SM86Control) .
206    (sm90Require (sm90RegisterGroupAdmitted 2 address) (constructor SM90EncodingRefusal SM90RefusalAddressUnaligned)
207    (sm90Require (sm90RegisterGroupAdmitted (sm90LoadRegisters width) destination) (constructor SM90EncodingRefusal SM90RefusalDataUnaligned)
208    (sm90Require (nat-less-than offset sm90GlobalOffsetLimit) (constructor SM90EncodingRefusal SM90RefusalGlobalOffsetOutOfRange)
209    (sm90Require (sm90ControlFits control) (constructor SM90EncodingRefusal SM90RefusalControlOutOfRange)
210      (sm90Emit
211        (nat-add (sm90HeaderLow sm90OpcodeLoadGlobal guard)
212        (nat-add (sm90Put (sm90RegisterNumber destination) sm90DestinationPlace)
213        (nat-add (sm90Put (sm90RegisterNumber address) sm90SourcePlace)
214        (nat-add (sm90Put sm90UniformZero sm90SecondSourcePlace)
215          (sm90Put offset sm90GlobalOffsetPlace)))))
216        (nat-add (sm90HeaderHigh control)
217          (nat-add (nat-add sm90LoadGlobalFixed (sm90LoadAllocationBits allocation)) (nat-add (sm90Put (sm90LoadSize width) sm90SizePlace)
218            (sm90Put (sm90LoadStrength width) sm90StrengthPlace))))))))))))))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.