From 91bd1156f3b6a1008a4dab24c1545747d965db2f Mon Sep 17 00:00:00 2001 From: Alex Zinenko Date: Tue, 26 Jan 2021 13:30:45 +0100 Subject: [PATCH] [mlir] drop unused statics --- mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp | 3 --- mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp | 8 -------- 2 files changed, 11 deletions(-) diff --git a/mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp b/mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp index 677223df3fd9..215b87cd3437 100644 --- a/mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp +++ b/mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp @@ -24,9 +24,6 @@ using namespace mlir; using namespace mlir::async; -// Prefix for functions outlined from `async.execute` op regions. -static constexpr const char kAsyncFnPrefix[] = "async_execute_fn"; - //===----------------------------------------------------------------------===// // Async Runtime C API declaration. //===----------------------------------------------------------------------===// diff --git a/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp b/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp index f663539628c5..555901595147 100644 --- a/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp +++ b/mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp @@ -204,14 +204,6 @@ public: } }; -// Extract int64_t values from the assumed ArrayAttr of IntegerAttr. -static SmallVector extractFromI64ArrayAttr(Attribute attr) { - return llvm::to_vector<4>( - llvm::map_range(attr.cast(), [](Attribute a) -> int64_t { - return a.cast().getInt(); - })); -} - /// Convert `subtensor %t [offsets][sizes][strides] -> %st` to an alloc + copy /// pattern. /// ```