[llvm] [NVPTX] Lower LLVM masked vector loads and stores to PTX (PR #159387)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 24 15:05:19 PDT 2025
================
@@ -395,6 +395,26 @@ void NVPTXInstPrinter::printMemOperand(const MCInst *MI, int OpNum,
}
}
+void NVPTXInstPrinter::printUsedBytesMaskPragma(const MCInst *MI, int OpNum,
+ raw_ostream &O) {
+ auto &Op = MI->getOperand(OpNum);
+ assert(Op.isImm() && "Invalid operand");
+ uint32_t Imm = (uint32_t)Op.getImm();
+ if (Imm != UINT32_MAX) {
+ O << ".pragma \"used_bytes_mask " << Imm << "\";\n\t";
----------------
Artem-B wrote:
It would be great to print the mask as hex to make the PTX easier to read.
https://github.com/llvm/llvm-project/pull/159387
More information about the llvm-commits
mailing list