Source/Packages

Accelerator.SM90.InstructionEncoding

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

500 lines73 declarations29.3 KiBSHA-256 6893fe9ca611

def · lines 388–397

sm90DecodeCanonical

Full file
--------------------------------------------------------------------------- Decoder Accept `candidate` only when it encodes back to `word`, bit for bit.
388def sm90DecodeCanonical = (lambda unrestricted word : SM90Word .
389  unrestricted candidate : SM90Instruction .
390    eliminate SM90Encoding (lambda unrestricted current : SM90Encoding . SM90Decoding)
391      (sm90EncodeInstruction candidate)
392      (branch SM90Encoded encoded .
393        sm90Choose SM90Decoding (sm90WordEqual encoded word)
394          (constructor SM90Decoding SM90Decoded candidate)
395          (constructor SM90Decoding SM90DecodingRefused SM90RefusalNotCanonical))
396      (branch SM90EncodingRefused reason .
397        constructor SM90Decoding SM90DecodingRefused SM90RefusalNotCanonical))

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.