[all-commits] [llvm/llvm-project] 3bde23: AMDGPU: Put un-initiaized enumerators together in ...

Changpeng Fang via All-commits all-commits at lists.llvm.org
Fri Jan 20 14:40:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bde23c5e0b2e7b16aa3a514f8c87a55207ec8c0
      https://github.com/llvm/llvm-project/commit/3bde23c5e0b2e7b16aa3a514f8c87a55207ec8c0
  Author: Changpeng Fang <changpeng.fang at amd.com>
  Date:   2023-01-20 (Fri, 20 Jan 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIDefines.h
    A llvm/test/CodeGen/AMDGPU/permlane-op-sel.ll

  Log Message:
  -----------
  AMDGPU: Put un-initiaized enumerators together in an enum definition.

Summary:
  For any enumerator whose definition does not have an initializer,
the associated value is the value of the previous enumerator plus one.
In order to avoid the possibility that two unrelated enumerators to
have the same value, we should try to cluster the uninitialized enumerators
together.

Reviewers: arsenm

Differential Revision
  https://reviews.llvm.org/D141643




More information about the All-commits mailing list