[all-commits] [llvm/llvm-project] 9f7937: [CIR] Separate CIR EnumAttr definitions to be incl...

Henrich Lauko via All-commits all-commits at lists.llvm.org
Tue Jul 15 07:19:18 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f7937401b62d95f2ebe86072d6f277eb9745cd0
      https://github.com/llvm/llvm-project/commit/9f7937401b62d95f2ebe86072d6f277eb9745cd0
  Author: Henrich Lauko <xlauko at mail.muni.cz>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
    A clang/include/clang/CIR/Dialect/IR/CIREnumAttr.td

  Log Message:
  -----------
  [CIR] Separate CIR EnumAttr definitions to be includable without the rest of attributes (#148850)

This change allows enum definition classes to be included in type definitions without creating cyclic dependencies between CIRTypes.td and CIRAttrs.td, since attributes already include CIRTypes.td. In the pull request mentioned below, this is used to define the AddressSpace enum alongside PointerType.

Additionally, this introduces `DefaultValuedEnumParameter`.

This mirrors some parts of incubator change from https://github.com/llvm/clangir/pull/1733



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