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

Artem Belevich via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 11:27:03 PDT 2025


================
@@ -125,6 +125,12 @@ class LLVM_LIBRARY_VISIBILITY NVPTXAsmPrinter : public AsmPrinter {
       return curpos;
     }
 
+    void addByte(uint8_t Byte) {
+      assert((curpos + 1) <= size);
+      buffer[curpos] = Byte;
+      curpos++;
+    }
+
     unsigned addZeros(int Num) {
       assert((curpos + Num) <= size);
       for (int i = 0; i < Num; ++i) {
----------------
Artem-B wrote:

Nice. I'd also rearrange the functions in their dependency order: addByte, addZeros, addBytes, but that's a really minor nit. 

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


More information about the llvm-commits mailing list