1 //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines the common initialization infrastructure for the
11 // TransformUtils library.
13 //===----------------------------------------------------------------------===//
15 #include "llvm/InitializePasses.h"
16 #include "llvm-c/Initialization.h"
20 /// initializeTransformUtils - Initialize all passes in the TransformUtils
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
);
31 initializeInstSimplifierPass(Registry
);
34 /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
35 void LLVMInitializeTransformUtils(LLVMPassRegistryRef R
) {
36 initializeTransformUtils(*unwrap(R
));