Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 1 | //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file defines the common initialization infrastructure for the |
| 11 | // TransformUtils library. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | |
| 15 | #include "llvm/InitializePasses.h" |
| 16 | #include "llvm-c/Initialization.h" |
Chandler Carruth | 8a8cd2b | 2014-01-07 11:48:04 +0000 | [diff] [blame] | 17 | #include "llvm/PassRegistry.h" |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 18 | |
| 19 | using namespace llvm; |
| 20 | |
| 21 | /// initializeTransformUtils - Initialize all passes in the TransformUtils |
| 22 | /// library. |
| 23 | void llvm::initializeTransformUtils(PassRegistry &Registry) { |
Xinliang David Li | 1eaecef | 2016-06-15 21:51:30 +0000 | [diff] [blame] | 24 | initializeAddDiscriminatorsLegacyPassPass(Registry); |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 25 | initializeBreakCriticalEdgesPass(Registry); |
| 26 | initializeInstNamerPass(Registry); |
Easwaran Raman | e12c487 | 2016-06-09 19:44:46 +0000 | [diff] [blame] | 27 | initializeLCSSAWrapperPassPass(Registry); |
Rong Xu | 1c0e9b9 | 2016-10-18 21:36:27 +0000 | [diff] [blame] | 28 | initializeLibCallsShrinkWrapLegacyPassPass(Registry); |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 29 | initializeLoopSimplifyPass(Registry); |
Michael Kuperstein | 31b8399 | 2016-08-12 17:28:27 +0000 | [diff] [blame] | 30 | initializeLowerInvokeLegacyPassPass(Registry); |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 31 | initializeLowerSwitchPass(Registry); |
Mehdi Amini | 27d2379 | 2016-09-16 16:56:30 +0000 | [diff] [blame] | 32 | initializeNameAnonGlobalLegacyPassPass(Registry); |
Davide Italiano | cccf4f0 | 2016-06-14 03:22:22 +0000 | [diff] [blame] | 33 | initializePromoteLegacyPassPass(Registry); |
Michael Ilseman | e542804 | 2016-10-25 18:44:13 +0000 | [diff] [blame] | 34 | initializeStripNonLineTableDebugInfoPass(Registry); |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 35 | initializeUnifyFunctionExitNodesPass(Registry); |
Duncan Sands | a436cbe | 2010-12-20 20:54:37 +0000 | [diff] [blame] | 36 | initializeInstSimplifierPass(Registry); |
Alex Rosenberg | 04b43aa | 2012-09-11 02:46:18 +0000 | [diff] [blame] | 37 | initializeMetaRenamerPass(Registry); |
Anna Thomas | 0860259 | 2016-10-21 18:43:16 +0000 | [diff] [blame] | 38 | initializeStripGCRelocatesPass(Registry); |
Daniel Berlin | 439042b | 2017-02-07 21:10:46 +0000 | [diff] [blame] | 39 | initializePredicateInfoPrinterLegacyPassPass(Registry); |
Owen Anderson | 4698c5d | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses. |
| 43 | void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) { |
| 44 | initializeTransformUtils(*unwrap(R)); |
| 45 | } |