[all-commits] [llvm/llvm-project] c84270: [CIR] Streamline creation of mlir::IntegerAttrs us...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Thu May 29 03:38:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c842705c61a073eb7fe649dd6c43ab16b49ec4aa
https://github.com/llvm/llvm-project/commit/c842705c61a073eb7fe649dd6c43ab16b49ec4aa
Author: Henrich Lauko <xlauko at mail.muni.cz>
Date: 2025-05-29 (Thu, 29 May 2025)
Changed paths:
M clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h
M clang/lib/CIR/CodeGen/CIRGenBuilder.h
M clang/lib/CIR/CodeGen/CIRGenModule.h
M clang/lib/CIR/Dialect/IR/CIRAttrs.cpp
M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
M clang/unittests/CIR/PointerLikeTest.cpp
Log Message:
-----------
[CIR] Streamline creation of mlir::IntegerAttrs using mlir::Builder (#141830)
- Uses getI<bitwidth>IntegerAttr builder method instead of explicit attribute and its type creation.
- Adds few helper functions `getAlignmentAttr` to build alignment representing mlir::IntegerAttr.
- Removes duplicit type parameters, that are inferred from mlir::IntegerAttr.
This mirrors incubator changes from https://github.com/llvm/clangir/pull/1645#event-17840237927
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list