| 1 | //===-- IPO.cpp -----------------------------------------------------------===// |
|---|---|
| 2 | // |
| 3 | // Part of the LLVM Project, 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 |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // This file implements the common infrastructure (including C bindings) for |
| 10 | // libLLVMIPO.a, which implements several transformations over the LLVM |
| 11 | // intermediate representation. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "llvm/InitializePasses.h" |
| 16 | |
| 17 | using namespace llvm; |
| 18 | |
| 19 | void llvm::initializeIPO(PassRegistry &Registry) { |
| 20 | initializeDAEPass(Registry); |
| 21 | initializeDAHPass(Registry); |
| 22 | initializeAlwaysInlinerLegacyPassPass(Registry); |
| 23 | initializeLoopExtractorLegacyPassPass(Registry); |
| 24 | initializeSingleLoopExtractorPass(Registry); |
| 25 | initializeBarrierNoopPass(Registry); |
| 26 | } |
| 27 |