[all-commits] [llvm/llvm-project] cf4f97: [mlir] Add classes to define new TypeIDs at runtime

Fehr Mathieu via All-commits all-commits at lists.llvm.org
Wed Feb 9 14:25:03 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf4f97c8122e70b7b624508c4866c41907400e2b
  Author: Mathieu Fehr <mathieu.fehr at gmail.com>
  Date:   2022-02-09 (Wed, 09 Feb 2022)

  Changed paths:
    M mlir/include/mlir/Support/TypeID.h

  Log Message:
  [mlir] Add classes to define new TypeIDs at runtime

TypeIDAllocator enables the allocation of new TypeIDs at runtime,
that are unique during the lifetime of the allocator.

NonMovableTypeIDOwner is a class used to define a new TypeID for each instance
of a class, using the instance address. This class cannot be copied or moved.

Reviewed By: rriddle

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

More information about the All-commits mailing list