[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:23 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) {
----------------
Artem-B wrote:
I'd rename it `ExtendBuffer` and pass aggBuffer explicitly. Makes it easier to see what's going on.
https://github.com/llvm/llvm-project/pull/136006
More information about the llvm-commits
mailing list