[Mlir-commits] [mlir] bf202b8 - [NFC][mlir] Remove llvm:: prefix from SmallVector in parallel pretty printer.
David Truby
llvmlistbot at llvm.org
Tue Sep 22 06:45:53 PDT 2020
Author: David Truby
Date: 2020-09-22T14:45:39+01:00
New Revision: bf202b8ce77caaace45de87314d2263e53f81021
URL: https://github.com/llvm/llvm-project/commit/bf202b8ce77caaace45de87314d2263e53f81021
DIFF: https://github.com/llvm/llvm-project/commit/bf202b8ce77caaace45de87314d2263e53f81021.diff
LOG: [NFC][mlir] Remove llvm:: prefix from SmallVector in parallel pretty printer.
This prefix is unnecessary as SmallVector is re-exported in the mlir namespace.
Differential Revision: https://reviews.llvm.org/D88025
Added:
Modified:
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index ec47177df84c..3298c37a0fa9 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -126,14 +126,14 @@ static ParseResult parseParallelOp(OpAsmParser &parser,
OperationState &result) {
std::pair<OpAsmParser::OperandType, Type> ifCond;
std::pair<OpAsmParser::OperandType, Type> numThreads;
- llvm::SmallVector<OpAsmParser::OperandType, 4> privates;
- llvm::SmallVector<Type, 4> privateTypes;
- llvm::SmallVector<OpAsmParser::OperandType, 4> firstprivates;
- llvm::SmallVector<Type, 4> firstprivateTypes;
- llvm::SmallVector<OpAsmParser::OperandType, 4> shareds;
- llvm::SmallVector<Type, 4> sharedTypes;
- llvm::SmallVector<OpAsmParser::OperandType, 4> copyins;
- llvm::SmallVector<Type, 4> copyinTypes;
+ SmallVector<OpAsmParser::OperandType, 4> privates;
+ SmallVector<Type, 4> privateTypes;
+ SmallVector<OpAsmParser::OperandType, 4> firstprivates;
+ SmallVector<Type, 4> firstprivateTypes;
+ SmallVector<OpAsmParser::OperandType, 4> shareds;
+ SmallVector<Type, 4> sharedTypes;
+ SmallVector<OpAsmParser::OperandType, 4> copyins;
+ SmallVector<Type, 4> copyinTypes;
std::array<int, 6> segments{0, 0, 0, 0, 0, 0};
llvm::StringRef keyword;
bool defaultVal = false;
@@ -264,8 +264,8 @@ static ParseResult parseParallelOp(OpAsmParser &parser,
parser.getBuilder().getI32VectorAttr(segments));
Region *body = result.addRegion();
- llvm::SmallVector<OpAsmParser::OperandType, 4> regionArgs;
- llvm::SmallVector<Type, 4> regionArgTypes;
+ SmallVector<OpAsmParser::OperandType, 4> regionArgs;
+ SmallVector<Type, 4> regionArgTypes;
if (parser.parseRegion(*body, regionArgs, regionArgTypes))
return failure();
return success();
More information about the Mlir-commits
mailing list