[llvm] [NVPTX] Basic support for fp128 as a storage type (PR #136006)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 13:36:52 PDT 2025


================
@@ -1716,6 +1715,7 @@ void NVPTXAsmPrinter::bufferAggregateConstant(const Constant *CPV,
     if (CPV->getNumOperands()) {
       StructType *ST = cast<StructType>(CPV->getType());
       for (unsigned i = 0, e = CPV->getNumOperands(); i != e; ++i) {
+        int Bytes;
         if (i == (e - 1))
           Bytes = DL.getStructLayout(ST)->getElementOffset(0) +
                   DL.getTypeAllocSize(ST) -
----------------
AlexMaclean wrote:

I've switched over to this implementation.

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


More information about the llvm-commits mailing list