Skip to content

Commit c4948cd

Browse files
committed
Comment why we only handle Instructions in emitModule
1 parent e455a8e commit c4948cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mlir/lib/Target/DXSA/BinaryWriter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class Writer {
6969
}
7070

7171
for (auto &op : region.front()) {
72+
// Only handle instructions. Skip operands and indices - they
73+
// are emitted by emitInstruction for instructions that use
74+
// them.
7275
if (auto inst = dyn_cast<dxsa::Instruction>(op)) {
7376
if (failed(emitInstruction(inst))) {
7477
return failure();

0 commit comments

Comments
 (0)