[clang] [CIR] Coerce record returns from memory like CreateCoercedLoad (PR #227482)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 15:52:34 PDT 2026
================
@@ -295,6 +295,87 @@ static uint64_t coercionByteSize(mlir::Type ty, const mlir::DataLayout &dl) {
return dl.getTypeSize(ty);
}
+/// \p ty's size rounded up to its ABI alignment.
+static uint64_t getAllocSize(mlir::Type ty, const mlir::DataLayout &dl) {
----------------
andykaylor wrote:
`CIRDataLayout::getTypeAllocSize()` already does this. Can we use that?
https://github.com/llvm/llvm-project/pull/227482
More information about the cfe-commits
mailing list