diff options
author | Jeff Niu <jeff@modular.com> | 2022-07-14 13:31:47 -0700 |
---|---|---|
committer | Jeff Niu <jeff@modular.com> | 2022-07-14 13:32:13 -0700 |
commit | b7f93c28096fc8503e4d2d80c43ee2c0ccce480f (patch) | |
tree | 31597ae54bf43b89ed139d0d8717073ae38ef024 /mlir/tools/mlir-tblgen/OpFormatGen.cpp | |
parent | edee61b55cf9f2b57d68ef8bcd8b5dcd3296ecab (diff) | |
download | llvm-b7f93c28096fc8503e4d2d80c43ee2c0ccce480f.tar.gz |
[mlir] (NFC) run clang-format on all files
Diffstat (limited to 'mlir/tools/mlir-tblgen/OpFormatGen.cpp')
-rw-r--r-- | mlir/tools/mlir-tblgen/OpFormatGen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlir/tools/mlir-tblgen/OpFormatGen.cpp b/mlir/tools/mlir-tblgen/OpFormatGen.cpp index 54190aac15fa..c3b9ded76e8b 100644 --- a/mlir/tools/mlir-tblgen/OpFormatGen.cpp +++ b/mlir/tools/mlir-tblgen/OpFormatGen.cpp @@ -2147,7 +2147,8 @@ void OperationFormat::genPrinter(Operator &op, OpClass &opClass) { /// Function to find an element within the given range that has the same name as /// 'name'. -template <typename RangeT> static auto findArg(RangeT &&range, StringRef name) { +template <typename RangeT> +static auto findArg(RangeT &&range, StringRef name) { auto it = llvm::find_if(range, [=](auto &arg) { return arg.name == name; }); return it != range.end() ? &*it : nullptr; } |