[all-commits] [llvm/llvm-project] 05fb26: [MLIR] Fix assert crash when an unregistered diale...

Uday Bondhugula via All-commits all-commits at lists.llvm.org
Thu Oct 14 03:19:21 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05fb26062c32788c7b320937705fcac772ab21ff
      https://github.com/llvm/llvm-project/commit/05fb26062c32788c7b320937705fcac772ab21ff
  Author: Uday Bondhugula <uday at polymagelabs.com>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M mlir/include/mlir/IR/Operation.h
    M mlir/include/mlir/IR/OperationSupport.h
    M mlir/lib/IR/Operation.cpp
    M mlir/lib/Parser/Parser.cpp
    M mlir/test/IR/invalid-unregistered.mlir

  Log Message:
  -----------
  [MLIR] Fix assert crash when an unregistered dialect op is encountered

Fix assert crash when an unregistered dialect op is encountered during
parsing and `-allow-unregistered-dialect' isn't on. Instead, emit an
error.

While on this, clean up "registered" vs "loaded" on `getDialect()` and
local clang-tidy warnings.

https://llvm.discourse.group/t/assert-behavior-on-unregistered-dialect-ops/4402

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




More information about the All-commits mailing list