ptx-90-parser 0.2.2

Parse NVIDIA PTX 9.0 assembly into a structured AST and explore modules via a CLI.
Documentation
### Description

Get address in the CTA specified by operand b which corresponds to the address
specified by operand a. Instruction type .type indicates the type of the
destination operand d and the source operand a. When space is .shared::cluster,
source a is either a shared memory variable or a register containing a valid
shared memory address and register d contains a shared memory address. When the
optional qualifier .space is not specified, both a and d are registers
containing generic addresses pointing to shared memory. b is a 32-bit integer
operand representing the rank of the target CTA. Destination register d will
hold an address in CTA b corresponding to operand a.

### Syntax

```
mapa{.space}.type          d, a, b;

// Maps shared memory address in register a into CTA b.
mapa.shared::cluster.type  d, a, b;

// Maps shared memory variable into CTA b.
mapa.shared::cluster.type  d, sh, b;

// Maps shared memory variable into CTA b.
mapa.shared::cluster.type  d, sh + imm, b;

// Maps generic address in register a into CTA b.
mapa.type                  d, a, b;

.space = { .shared::cluster }
.type  = { .u32, .u64 }
```

### Examples

```
mapa.shared::cluster.u64 d1, %reg1, cta;
mapa.shared::cluster.u32 d2, sh, 3;
mapa.u64                 d3, %reg2, cta;
```