[clang] [CIR] Upstream basic support for ArrayType (PR #130502)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 11 14:47:24 PDT 2025


================
@@ -369,6 +369,22 @@ BoolType::getABIAlignment(const ::mlir::DataLayout &dataLayout,
   return 1;
 }
 
+//===----------------------------------------------------------------------===//
+//  Definitions
+//===----------------------------------------------------------------------===//
+
+llvm::TypeSize
+ArrayType::getTypeSizeInBits(const ::mlir::DataLayout &dataLayout,
----------------
AmrDeveloper wrote:

Yes, but it's part of the `DataLayoutTypeInterface` interface so we must implement it, I can test it after merging the sizeof PR https://github.com/llvm/llvm-project/pull/130847

https://github.com/llvm/llvm-project/pull/130502


More information about the cfe-commits mailing list