[all-commits] [llvm/llvm-project] 54ecaa: [CIR] Use the modern enum case classes

Henrich Lauko via All-commits all-commits at lists.llvm.org
Tue Sep 8 03:58:27 PDT 2026


  Branch: refs/heads/users/xlauko/cir-enum-15-modern-enum-cases
  Home:   https://github.com/llvm/llvm-project
  Commit: 54ecaa98b96bb77d2c584f904478ef88c6408d18
      https://github.com/llvm/llvm-project/commit/54ecaa98b96bb77d2c584f904478ef88c6408d18
  Author: Henrich Lauko <hlauko at nvidia.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
    M clang/include/clang/CIR/Dialect/IR/CIRCUDAAttrs.td
    M clang/include/clang/CIR/Dialect/IR/CIREnumAttr.td
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/include/clang/CIR/Dialect/IR/CIRTypes.td

  Log Message:
  -----------
  [CIR] Use the modern enum case classes

The `I32EnumAttrCase` family carries an `Attr` half, and an `IntegerAttr`
predicate with it, that a CIR enum has no use for now that the enums derive
from `EnumInfo`. Upstream says of those forms that they "are not needed when
using the newer `EnumCase` form".

Rename all 198 of them to `I32EnumCase`, `I32BitEnumCaseNone`,
`I32BitEnumCaseBit` and `BitEnumCaseGroup`. The group class drops its width
prefix because the modern spelling takes the width from its cases.

NFC, mechanical.



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