summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/Traits.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-12-18 09:28:48 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-18 09:29:20 -0800
commit4562e389a43caa2e30ebf277c12743edafe6a0ac (patch)
tree1901855666adba9be9576e864877fe191e197085 /mlir/lib/Dialect/Traits.cpp
parent24ab8362f2099ed42f2e05f09fb9323ad0c5ab27 (diff)
downloadbcm5719-llvm-4562e389a43caa2e30ebf277c12743edafe6a0ac.tar.gz
bcm5719-llvm-4562e389a43caa2e30ebf277c12743edafe6a0ac.zip
NFC: Remove unnecessary 'llvm::' prefix from uses of llvm symbols declared in `mlir` namespace.
Aside from being cleaner, this also makes the codebase more consistent. PiperOrigin-RevId: 286206974
Diffstat (limited to 'mlir/lib/Dialect/Traits.cpp')
-rw-r--r--mlir/lib/Dialect/Traits.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/lib/Dialect/Traits.cpp b/mlir/lib/Dialect/Traits.cpp
index 9945b6ae4c2..0ac07c2c4f5 100644
--- a/mlir/lib/Dialect/Traits.cpp
+++ b/mlir/lib/Dialect/Traits.cpp
@@ -112,8 +112,7 @@ Type OpTrait::util::getBroadcastedType(Type type1, Type type2) {
// Returns the type kind if the given type is a vector or ranked tensor type.
// Returns llvm::None otherwise.
- auto getCompositeTypeKind =
- [](Type type) -> llvm::Optional<StandardTypes::Kind> {
+ auto getCompositeTypeKind = [](Type type) -> Optional<StandardTypes::Kind> {
if (type.isa<VectorType>() || type.isa<RankedTensorType>())
return static_cast<StandardTypes::Kind>(type.getKind());
return llvm::None;
@@ -122,7 +121,7 @@ Type OpTrait::util::getBroadcastedType(Type type1, Type type2) {
// Make sure the composite type, if has, is consistent.
auto compositeKind1 = getCompositeTypeKind(type1);
auto compositeKind2 = getCompositeTypeKind(type2);
- llvm::Optional<StandardTypes::Kind> resultCompositeKind;
+ Optional<StandardTypes::Kind> resultCompositeKind;
if (compositeKind1 && compositeKind2) {
// Disallow mixing vector and tensor.
OpenPOWER on IntegriCloud