Skip to content

Commit 1c76958

Browse files
authored
[NVPTX] Add unreachable for TMA Inst Printer (#117850)
This patch adds the llvm_reachable() for TMA reduction opcode printer method, outside the switch. We had this inside the default-case leading to the warning below (and hence was removed): error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default] Signed-off-by: Durgadoss R <[email protected]>
1 parent fb37659 commit 1c76958

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXInstPrinter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,4 +450,6 @@ void NVPTXInstPrinter::printTmaReductionMode(const MCInst *MI, int OpNum,
450450
O << ".xor";
451451
return;
452452
}
453+
llvm_unreachable(
454+
"Invalid Reduction Op in printCpAsyncBulkTensorReductionMode");
453455
}

0 commit comments

Comments
 (0)