[llvm] [NVPTX] Basic support for fp128 as a storage type (PR #136006)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 16 16:35:23 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:
<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'><i>[Re: lines +134 to +141]</i></p><!--__GRAPHITE_HTML_TAG_END__-->
This could now be just a loop over `addByte(0)`
<!--__GRAPHITE_HTML_TAG_START__--><p class='graphite__hidden'>See this comment inline on <a href="https://app.graphite.dev/github/pr/llvm/llvm-project/136006?utm_source=unchanged-line-comment">Graphite</a>.</p><!--__GRAPHITE_HTML_TAG_END__-->
https://github.com/llvm/llvm-project/pull/136006
More information about the llvm-commits
mailing list