[Mlir-commits] [mlir] f89b7a9 - [mlir] reword error message on unloaded dialect (#67980)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 3 02:28:37 PDT 2023


Author: Oleksandr "Alex" Zinenko
Date: 2023-10-03T11:28:32+02:00
New Revision: f89b7a9ee205acbd6c180cc56ea5a74f8602d269

URL: https://github.com/llvm/llvm-project/commit/f89b7a9ee205acbd6c180cc56ea5a74f8602d269
DIFF: https://github.com/llvm/llvm-project/commit/f89b7a9ee205acbd6c180cc56ea5a74f8602d269.diff

LOG: [mlir] reword error message on unloaded dialect (#67980)

The previous message was confusing as it mentioned "registration" but
isn't in fact related to dialect registration. Use other words instead.

Added: 
    

Modified: 
    mlir/include/mlir/IR/Builders.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/Builders.h b/mlir/include/mlir/IR/Builders.h
index 3eca8bd12f43364..5e54d4ea49e8251 100644
--- a/mlir/include/mlir/IR/Builders.h
+++ b/mlir/include/mlir/IR/Builders.h
@@ -477,8 +477,8 @@ class OpBuilder : public Builder {
     if (LLVM_UNLIKELY(!opName)) {
       llvm::report_fatal_error(
           "Building op `" + OpT::getOperationName() +
-          "` but it isn't registered in this MLIRContext: the dialect may not "
-          "be loaded or this operation isn't registered by the dialect. See "
+          "` but it isn't known in this MLIRContext: the dialect may not "
+          "be loaded or this operation hasn't been added by the dialect. See "
           "also https://mlir.llvm.org/getting_started/Faq/"
           "#registered-loaded-dependent-whats-up-with-dialects-management");
     }


        


More information about the Mlir-commits mailing list