Changes

Summary

  1. [MLIR] Use memref.copy ops in BufferResultsToOutParams pass. (details)
  2. Make the --mlir-disable-threading command line option overrides the C++ API usage (details)
  3. Revert "[flang] Make 'this_image()' an intrinsic function" (details)
Commit 500d4c45ba7f31907a64dead8ddb292649e6ce75 by joker.eph
[MLIR] Use memref.copy ops in BufferResultsToOutParams pass.

Both copy/alloc ops are using memref dialect after this change.

Reviewed By: silvas, mehdi_amini

Differential Revision: https://reviews.llvm.org/D109480
The file was modifiedmlir/lib/Transforms/PassDetail.h
The file was modifiedmlir/lib/Transforms/BufferResultsToOutParams.cpp
The file was modifiedmlir/include/mlir/Transforms/Passes.td
The file was modifiedmlir/test/Transforms/buffer-results-to-out-params.mlir
The file was modifiedmlir/lib/Transforms/CMakeLists.txt
Commit a32300a68f6c94b7b275e3560ed31e9174cec5ad by joker.eph
Make the --mlir-disable-threading command line option overrides the C++ API usage

This seems in-line with the intent and how we build tools around it.
Update the description for the flag accordingly.
Also use an injected thread pool in MLIROptMain, now we will create
threads up-front and reuse them across split buffers.

Differential Revision: https://reviews.llvm.org/D109802
The file was modifiedmlir/include/mlir/IR/MLIRContext.h
The file was modifiedmlir/lib/Support/MlirOptMain.cpp
The file was modifiedmlir/lib/IR/MLIRContext.cpp
Commit 0dc461441eed3b49b36bec889ddf1449b502d17a by joker.eph
Revert "[flang] Make 'this_image()' an intrinsic function"

This reverts commit 81f8ad1769665a569a235b749e0e9e69ce7dc65e.
This seems to break the shared libs build
(linaro-flang-aarch64-sharedlibs bot) with:

  undefined reference to `Fortran::semantics::IsCoarray(Fortran::semantics::Symbol const&)

(from tools/flang/lib/Evaluate/CMakeFiles/obj.FortranEvaluate.dir/tools.cpp.o)

When linking lib/libFortranEvaluate.so.14git
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was modifiedflang/docs/Intrinsics.md
The file was modifiedflang/include/flang/Evaluate/tools.h
The file was modifiedflang/lib/Evaluate/intrinsics.cpp
The file was removedflang/test/Semantics/this_image.f90
The file was modifiedflang/test/Semantics/call10.f90