[all-commits] [llvm/llvm-project] f0a8c5: [mlir][irdl] Add `irdl.c_pred`

Fehr Mathieu via All-commits all-commits at lists.llvm.org
Thu Jun 8 03:38:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0a8c5c5cbed8d2afb76da8f2406cd056f170206
      https://github.com/llvm/llvm-project/commit/f0a8c5c5cbed8d2afb76da8f2406cd056f170206
  Author: Mathieu Fehr <mathieu.fehr at gmail.com>
  Date:   2023-06-08 (Thu, 08 Jun 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
    A mlir/test/Dialect/IRDL/cpred.irdl.mlir

  Log Message:
  -----------
  [mlir][irdl] Add `irdl.c_pred`

`irdl.c_pred` is an attribute constraint defined by a C++ predicate.
Contrary to the other constraints, this operation cannot be used in
dialects that are registered at runtime. Its principal use is to
share dialect definitions that are defined in C++ or ODS.

Reviewed By: Mogball

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




More information about the All-commits mailing list