[Mlir-commits] [mlir] c73053c - Make python into C++
Benjamin Kramer
llvmlistbot at llvm.org
Wed Jul 5 08:49:36 PDT 2023
Author: Benjamin Kramer
Date: 2023-07-05T17:49:25+02:00
New Revision: c73053c26e6e17d23e10857f86075417e7fa166e
URL: https://github.com/llvm/llvm-project/commit/c73053c26e6e17d23e10857f86075417e7fa166e
DIFF: https://github.com/llvm/llvm-project/commit/c73053c26e6e17d23e10857f86075417e7fa166e.diff
LOG: Make python into C++
`not` is a C++ keyword, but it seems to cause trouble with MSVC
Added:
Modified:
mlir/lib/Interfaces/ViewLikeInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/ViewLikeInterface.cpp b/mlir/lib/Interfaces/ViewLikeInterface.cpp
index 667f66bb99610b..7d350b110ce237 100644
--- a/mlir/lib/Interfaces/ViewLikeInterface.cpp
+++ b/mlir/lib/Interfaces/ViewLikeInterface.cpp
@@ -115,7 +115,7 @@ void mlir::printDynamicIndexList(OpAsmPrinter &printer, Operation *op,
unsigned dynamicValIdx = 0;
unsigned scalableIndexIdx = 0;
llvm::interleaveComma(integers, printer, [&](int64_t integer) {
- if (not scalables.empty() && scalables[scalableIndexIdx])
+ if (!scalables.empty() && scalables[scalableIndexIdx])
printer << "[";
if (ShapedType::isDynamic(integer)) {
printer << values[dynamicValIdx];
More information about the Mlir-commits
mailing list