[all-commits] [llvm/llvm-project] 0f304e: [mlir] Add asserts when changing various MLIRConte...

River Riddle via All-commits all-commits at lists.llvm.org
Fri Apr 15 21:49:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f304ef0170231b860a249f34e07f50686392253
      https://github.com/llvm/llvm-project/commit/0f304ef0170231b860a249f34e07f50686392253
  Author: River Riddle <riddleriver at gmail.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M mlir/include/mlir/IR/DialectRegistry.h
    M mlir/lib/IR/Dialect.cpp
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Reducer/OptReductionPass.cpp
    M mlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp

  Log Message:
  -----------
  [mlir] Add asserts when changing various MLIRContext configurations

This helps to prevent tsan failures when users inadvertantly mutate the
context in a non-safe way.

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




More information about the All-commits mailing list