[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 12:30:22 PDT 2025
================
@@ -1682,29 +1673,37 @@ void NVPTXAsmPrinter::bufferLEByte(const Constant *CPV, int Bytes,
void NVPTXAsmPrinter::bufferAggregateConstant(const Constant *CPV,
AggBuffer *aggBuffer) {
const DataLayout &DL = getDataLayout();
- int Bytes;
- // Integers of arbitrary width
- if (const ConstantInt *CI = dyn_cast<ConstantInt>(CPV)) {
- APInt Val = CI->getValue();
+ auto BufferConstant = [&](APInt Val) {
for (unsigned I = 0, E = DL.getTypeAllocSize(CPV->getType()); I < E; ++I) {
----------------
Artem-B wrote:
We could use `llvm::seq` here.
https://github.com/llvm/llvm-project/pull/136006
More information about the llvm-commits
mailing list