Owen Anderson | 1a3d233 | 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" |
| 17 | |
| 18 | using namespace llvm; |
| 19 | |
| 20 | /// initializeTransformUtils - Initialize all passes in the TransformUtils |
| 21 | /// library. |
| 22 | void llvm::initializeTransformUtils(PassRegistry &Registry) { |
| 23 | initializeBreakCriticalEdgesPass(Registry); |
| 24 | initializeInstNamerPass(Registry); |
| 25 | initializeLCSSAPass(Registry); |
| 26 | initializeLoopSimplifyPass(Registry); |
| 27 | initializeLowerInvokePass(Registry); |
| 28 | initializeLowerSwitchPass(Registry); |
| 29 | initializePromotePassPass(Registry); |
| 30 | initializeUnifyFunctionExitNodesPass(Registry); |
Duncan Sands | 43ff68d | 2010-12-20 20:54:37 +0000 | [diff] [blame] | 31 | initializeInstSimplifierPass(Registry); |
Alex Rosenberg | 95f1ef4 | 2012-09-11 02:46:18 +0000 | [diff] [blame^] | 32 | initializeMetaRenamerPass(Registry); |
Owen Anderson | 1a3d233 | 2010-10-07 17:55:47 +0000 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses. |
| 36 | void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) { |
| 37 | initializeTransformUtils(*unwrap(R)); |
| 38 | } |