[all-commits] [llvm/llvm-project] 97fc56: [mlir][capi] Add DialectRegistry to MLIR C-API

Daniel Resnick via All-commits all-commits at lists.llvm.org
Tue Feb 1 12:43:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97fc5682112d019230a3ab23cced3bdf093f6094
      https://github.com/llvm/llvm-project/commit/97fc5682112d019230a3ab23cced3bdf093f6094
  Author: Daniel Resnick <danielzresnick at gmail.com>
  Date:   2022-02-01 (Tue, 01 Feb 2022)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/include/mlir-c/Registration.h
    M mlir/include/mlir/CAPI/IR.h
    M mlir/include/mlir/CAPI/Registration.h
    M mlir/lib/CAPI/IR/DialectHandle.cpp
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/CAPI/ir.c

  Log Message:
  -----------
  [mlir][capi] Add DialectRegistry to MLIR C-API

Exposes mlir::DialectRegistry to the C API as MlirDialectRegistry along with
helper functions. A hook has been added to MlirDialectHandle that inserts
the dialect into a registry.

A future possible change is removing mlirDialectHandleRegisterDialect in
favor of using mlirDialectHandleInsertDialect, which it is now implemented with.

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




More information about the All-commits mailing list