[Mlir-commits] [mlir] 5a7cd5d - [MLIR][Shape] Fix ambiguous symbol

Frederik Gossen llvmlistbot at llvm.org
Thu Jun 25 02:40:26 PDT 2020


Author: Frederik Gossen
Date: 2020-06-25T09:40:08Z
New Revision: 5a7cd5db3cbab6bae86316e436790d8cf6b5ca64

URL: https://github.com/llvm/llvm-project/commit/5a7cd5db3cbab6bae86316e436790d8cf6b5ca64
DIFF: https://github.com/llvm/llvm-project/commit/5a7cd5db3cbab6bae86316e436790d8cf6b5ca64.diff

LOG: [MLIR][Shape] Fix ambiguous symbol

Added: 
    

Modified: 
    mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp b/mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp
index adf046ef5678..55ebae99af53 100644
--- a/mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp
+++ b/mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp
@@ -95,7 +95,7 @@ ShapeOfOpConverter::matchAndRewrite(ShapeOfOp op, ArrayRef<Value> operands,
 
   // Allocate stack memory.
   auto loc = op.getLoc();
-  auto rankVal = rewriter.create<RankOp>(loc, tensorVal);
+  auto rankVal = rewriter.create<mlir::RankOp>(loc, tensorVal);
   auto i64Ty = rewriter.getI64Type();
   auto memTy = MemRefType::get({ShapedType::kDynamicSize}, i64Ty);
   auto memVal = rewriter.create<AllocaOp>(loc, memTy, ValueRange({rankVal}));


        


More information about the Mlir-commits mailing list