Geoffrey Martin-Noble | 552d3f8 | 2021-05-25 17:56:09 -0700 | [diff] [blame] | 1 | // Copyright 2020 The IREE Authors |
Marius Brehler | 406fead | 2020-03-03 11:05:28 -0800 | [diff] [blame] | 2 | // |
Geoffrey Martin-Noble | 552d3f8 | 2021-05-25 17:56:09 -0700 | [diff] [blame] | 3 | // Licensed under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Marius Brehler | 406fead | 2020-03-03 11:05:28 -0800 | [diff] [blame] | 6 | |
| 7 | // Main entry function for iree-opt and derived binaries. |
| 8 | // |
Geoffrey Martin-Noble | e4b95e0 | 2020-11-04 20:33:16 -0800 | [diff] [blame] | 9 | // Based on mlir-opt but registers the passes and dialects we care about. |
Marius Brehler | 406fead | 2020-03-03 11:05:28 -0800 | [diff] [blame] | 10 | |
Stella Laurenzo | 309dc5b | 2023-02-22 23:07:43 -0800 | [diff] [blame] | 11 | #include "iree/compiler/tool_entry_points_api.h" |
Marius Brehler | 406fead | 2020-03-03 11:05:28 -0800 | [diff] [blame] | 12 | |
Stella Laurenzo | 7ec09ce | 2022-11-24 11:13:52 -0800 | [diff] [blame] | 13 | int main(int argc, char **argv) { return ireeOptRunMain(argc, argv); } |