Path: blob/main/contrib/llvm-project/llvm/tools/opt/opt.cpp
35231 views
//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Optimizations may be specified an arbitrary number of times on the command9// line, They are run in the order specified.10//11//===----------------------------------------------------------------------===//1213#include "llvm/ADT/ArrayRef.h"14#include <functional>1516namespace llvm {17class PassBuilder;18}1920extern "C" int optMain(int argc, char **argv,21llvm::ArrayRef<std::function<void(llvm::PassBuilder &)>>22PassBuilderCallbacks);2324int main(int argc, char **argv) { return optMain(argc, argv, {}); }252627