[llvm] [SPIR-V] Add support for arbitrary precision integer constants in instruction printer (PR #185306)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 15 13:00:47 PDT 2026


================
@@ -101,6 +116,12 @@ void SPIRVInstPrinter::printOpConstantVarOps(const MCInst *MI,
   O << Imm;
 }
 
+void SPIRVInstPrinter::recordIntType(const MCInst *MI) {
+  unsigned IntTypeRegId = getIDFromRegister(MI->getOperand(0).getReg().id());
----------------
YixingZhang007 wrote:

Thank you! I have updated to use `SmallDenseMap<MCRegister, unsigned> IntTypeBitwidths;`

https://github.com/llvm/llvm-project/pull/185306


More information about the llvm-commits mailing list