diff options
| author | River Riddle <riverriddle@google.com> | 2019-04-04 16:24:10 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-04-05 07:42:29 -0700 |
| commit | c4a5386e481b6c857df83ed0f6bf1150d2a498c4 (patch) | |
| tree | d1afda7c57a4a89ceda014ef6e3880a4c4d8f54c /mlir/lib/Transforms | |
| parent | 64f10da5eeee7cd228559eac161a9e879e910495 (diff) | |
| download | bcm5719-llvm-c4a5386e481b6c857df83ed0f6bf1150d2a498c4.tar.gz bcm5719-llvm-c4a5386e481b6c857df83ed0f6bf1150d2a498c4.zip | |
NFC: Replace usages of iterator_range<operand_iterator> with operand_range.
--
PiperOrigin-RevId: 242031201
Diffstat (limited to 'mlir/lib/Transforms')
| -rw-r--r-- | mlir/lib/Transforms/DialectConversion.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/DialectConversion.cpp b/mlir/lib/Transforms/DialectConversion.cpp index 49fb9373d1f..587b7d866f5 100644 --- a/mlir/lib/Transforms/DialectConversion.cpp +++ b/mlir/lib/Transforms/DialectConversion.cpp @@ -49,8 +49,7 @@ private: // Utility that looks up a list of value in the value remapping table. Returns // an empty vector if one of the values is not mapped yet. - SmallVector<Value *, 4> lookupValues( - const llvm::iterator_range<Operation::operand_iterator> &operands); + SmallVector<Value *, 4> lookupValues(Operation::operand_range operands); // Converts the given function to the dialect using hooks defined in // `dialectConversion`. Returns the converted function or `nullptr` on error. @@ -106,8 +105,8 @@ private: } // end namespace impl } // end namespace mlir -SmallVector<Value *, 4> impl::FunctionConversion::lookupValues( - const llvm::iterator_range<Operation::operand_iterator> &operands) { +SmallVector<Value *, 4> +impl::FunctionConversion::lookupValues(Operation::operand_range operands) { SmallVector<Value *, 4> remapped; remapped.reserve(llvm::size(operands)); for (Value *operand : operands) { |

