[all-commits] [llvm/llvm-project] d4026a: [CIR] Streamline creation of mlir::IntegerAttrs us...

Henrich Lauko via All-commits all-commits at lists.llvm.org
Thu May 29 03:26:27 PDT 2025


  Branch: refs/heads/users/xlauko/cir-integer-attr-builders
  Home:   https://github.com/llvm/llvm-project
  Commit: d4026ae9fabe8ee8a5d76a69ba5f89a7f1a7c3ff
      https://github.com/llvm/llvm-project/commit/d4026ae9fabe8ee8a5d76a69ba5f89a7f1a7c3ff
  Author: xlauko <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

- 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


  Commit: ac27f4b77a64325604b56b897eaa98ef824f1ce4
      https://github.com/llvm/llvm-project/commit/ac27f4b77a64325604b56b897eaa98ef824f1ce4
  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

  Log Message:
  -----------
  Update clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h

Co-authored-by: Andy Kaylor <akaylor at nvidia.com>


  Commit: 41b6128a060de0a1b7d9aca0aa69734b7cc263e4
      https://github.com/llvm/llvm-project/commit/41b6128a060de0a1b7d9aca0aa69734b7cc263e4
  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

  Log Message:
  -----------
  Update clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h

Co-authored-by: Erich Keane <ekeane at nvidia.com>


Compare: https://github.com/llvm/llvm-project/compare/d1647c40a782...41b6128a060d

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