-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathopt.cpp
25 lines (21 loc) · 919 Bytes
/
opt.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Optimizations may be specified an arbitrary number of times on the command
// line, They are run in the order specified.
//
//===----------------------------------------------------------------------===//
#include "llvm/ADT/ArrayRef.h"
#include <functional>
namespace llvm {
class PassBuilder;
}
extern "C" int optMain(int argc, char **argv,
llvm::ArrayRef<std::function<void(llvm::PassBuilder &)>>
PassBuilderCallbacks);
int main(int argc, char **argv) { return optMain(argc, argv, {}); }