[llvm] [NVPTX] Fix segfault with i128 types in arrays (PR #120562)
Valery Chernov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 20 01:23:38 PST 2024
================
@@ -198,6 +198,17 @@ static void ComputePTXValueVTs(const TargetLowering &TLI, const DataLayout &DL,
return;
}
+ // Given an array type, recursively traverse the elements with custom ComputePTXValueVTs.
+ if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
+ Type *EltTy = ATy->getElementType();
+ uint64_t EltSize = DL.getTypeAllocSize(EltTy);
+ for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i) {
----------------
vvchernov wrote:
Done
https://github.com/llvm/llvm-project/pull/120562
More information about the llvm-commits
mailing list