[all-commits] [llvm/llvm-project] 41a643: [mlir] Add getNumThreads to MLIRContext

Jeff Niu via All-commits all-commits at lists.llvm.org
Thu Dec 23 18:03:07 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41a64338cc842cc3ef45d68a4ef8f09c143d9969
  Author: Mogball <jeffniu22 at gmail.com>
  Date:   2021-12-24 (Fri, 24 Dec 2021)

  Changed paths:
    M mlir/include/mlir/IR/MLIRContext.h
    M mlir/lib/IR/MLIRContext.cpp
    M mlir/lib/Transforms/Inliner.cpp
    M mlir/test/Transforms/inlining.mlir

  Log Message:
  [mlir] Add getNumThreads to MLIRContext

Querying threads directly from the thread pool fails if there is no thread pool or if multithreading is not enabled. Returns 1 by default.

Reviewed By: mehdi_amini

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

More information about the All-commits mailing list