[all-commits] [llvm/llvm-project] a58132: [CIR] Streamline creation of mlir::IntegerAttrs us...
Henrich Lauko via All-commits
all-commits at lists.llvm.org
Wed May 28 12:26:18 PDT 2025
Branch: refs/heads/users/xlauko/cir-integer-attr-builders
Home: https://github.com/llvm/llvm-project
Commit: a58132702ff7b996d805172144ae1f261495c624
https://github.com/llvm/llvm-project/commit/a58132702ff7b996d805172144ae1f261495c624
Author: xlauko <xlauko at mail.muni.cz>
Date: 2025-05-28 (Wed, 28 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
- 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