[all-commits] [llvm/llvm-project] 8a7ff7: [mlir] Make MLIRContext::getOrLoadDialect(StringRe...

Fehr Mathieu via All-commits all-commits at lists.llvm.org
Wed Jan 20 16:34:32 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a7ff7301a6ce50f2adf52959c04f37a00c5a631
      https://github.com/llvm/llvm-project/commit/8a7ff7301a6ce50f2adf52959c04f37a00c5a631
  Author: mfehr <mathieu.fehr at gmail.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M mlir/include/mlir/IR/MLIRContext.h

  Log Message:
  -----------
  [mlir] Make MLIRContext::getOrLoadDialect(StringRef, TypeID, ...) public

Having this function in a public scope is helpful to register dialects that are
defined at runtime, and thus that need a runtime-defined TypeID.

Also, a similar function in DialectRegistry, insert(TypeID, StringRef, ...), has
a public scope.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list