[all-commits] [llvm/llvm-project] 7b1d6a: [mlir][IR] Support op interfaces in `HasParent` trait

Matthias Springer via All-commits all-commits at lists.llvm.org
Wed May 8 06:41:47 PDT 2024


  Branch: refs/heads/users/matthias-springer/has_parent_interface
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b1d6a75b9f048e85b8b752218999eb39bf14d22
      https://github.com/llvm/llvm-project/commit/7b1d6a75b9f048e85b8b752218999eb39bf14d22
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-05-08 (Wed, 08 May 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/IR/OpDefinition.h
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/invalid.mlir
    M mlir/tools/mlir-tblgen/OpInterfacesGen.cpp

  Log Message:
  -----------
  [mlir][IR] Support op interfaces in `HasParent` trait

This commit adds support for op interfaces to `HasParent`: an op interface can now be specified as a parent.

To produce useful error messages, a new helper function `getInterfaceName` is generated for every op interface. This is similar to `getOperationName`, which is generated for operations.

This commit addresses a TODO in `TensorOps.td`.



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