[mlir] Fix build on Windows on Arm
authorDiana Picus <diana.picus@linaro.org>
Wed, 22 Sep 2021 07:07:33 +0000 (09:07 +0200)
committerDiana Picus <diana.picus@linaro.org>
Thu, 23 Sep 2021 07:04:28 +0000 (09:04 +0200)
commitb7050c791d8951c0a099bf162f9ab3a696611b7d
tree4570b4b647ad4dfe672f28cd66db10f520c93ad4
parente7b169a8ae99b0cef1e5262f18b35e0abcc69ef8
[mlir] Fix build on Windows on Arm

clang-cl errors out while handling the templated version of tgfmt. This
patch works around the issue by explicitly choosing the non-templated
version of tgfmt, which takes an ArrayRef<std::string>.

More details in this thread:
https://lists.llvm.org/pipermail/cfe-dev/2021-September/068936.html

Thanks @Mehdi Amini for suggesting the fix :)

Differential Revision: https://reviews.llvm.org/D110223
mlir/tools/mlir-tblgen/RewriterGen.cpp