[clang] [CIR] Add constant record ILE support (PR #155663)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 27 16:13:51 PDT 2025
================
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset(
computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices);
}
+static mlir::Type getAttributeType(mlir::Attribute attr) {
+ return mlir::cast<mlir::TypedAttr>(attr).getType();
+}
+
+cir::RecordType clang::CIRGen::CIRGenBuilderTy::getCompleteRecordType(
+ mlir::ArrayAttr fields, bool packed, bool padded, llvm::StringRef name,
+ const clang::RecordDecl *ast) {
----------------
andykaylor wrote:
It's probably better to leave the `ast` parameter out until we fill in support for AST decls. That's going to require a lot of changes.
https://github.com/llvm/llvm-project/pull/155663
More information about the cfe-commits
mailing list