Skip to content

Commit b871a9f

Browse files
trbauerigcbot
authored andcommitted
IGA minor JSON fix
Fixes case for send messages where AddrType is INVALID (e.g. gateway EOT)
1 parent 8de77f8 commit b871a9f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

visa/iga/IGAJSON.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ indirect register used and may include `Rgn` (region) objects for regions used.
130130
Sources may include `Vt` and `Wi` if those fields are present
131131
(in some formats these are implicit fields).
132132

133-
Send instructions have additional operands
134-
* `AD` address
135-
* `DA` data
136-
* `IM` immediate will be used for immediate send descriptors
137-
133+
Send instructions have additional operand kinds:
134+
* `AD` address: an address type (possibly with surface info), an offset, payload size
135+
* `DA` data: a register an payload, and
136+
* `IM` immediate: for immediate send descriptors.
137+
The `-Xprint-ldst` option might impact operand layout.

visa/iga/IGALibrary/Frontend/FormatterJSON.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ class JSONFormatter: public BasicFormatter
700700
void emitAddrSurfInfo(const Instruction &i, const MessageInfo &mi) {
701701
emit("{\"type\":");
702702
switch (mi.addrType) {
703+
case AddrType::INVALID: emit("\"invalid\""); break;
703704
case AddrType::FLAT: emit("\"flat\""); break;
704705
case AddrType::BTI: emit("\"bti\""); break;
705706
case AddrType::BSS: emit("\"bss\""); break;

0 commit comments

Comments
 (0)