LLVM  8.0.1
Utils.cpp
Go to the documentation of this file.
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/Transforms/Utils.h"
16 #include "llvm-c/Initialization.h"
19 #include "llvm/InitializePasses.h"
20 #include "llvm/PassRegistry.h"
21 
22 using namespace llvm;
23 
24 /// initializeTransformUtils - Initialize all passes in the TransformUtils
25 /// library.
30  initializeInstNamerPass(Registry);
35  initializeLowerSwitchPass(Registry);
40  initializeMetaRenamerPass(Registry);
43 }
44 
45 /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
48 }
49 
51  unwrap(PM)->add(createLowerSwitchPass());
52 }
53 
56 }
57 
void initializeLCSSAWrapperPassPass(PassRegistry &)
This class represents lattice values for constants.
Definition: AllocatorList.h:24
FunctionPass * createLowerSwitchPass()
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:45
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Types.h:131
void initializeBreakCriticalEdgesPass(PassRegistry &)
void initializeAddDiscriminatorsLegacyPassPass(PassRegistry &)
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:195
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM)
See llvm::createPromoteMemoryToRegisterPass function.
Definition: Utils.cpp:54
void initializeLowerInvokeLegacyPassPass(PassRegistry &)
void initializePredicateInfoPrinterLegacyPassPass(PassRegistry &)
void initializeUnifyFunctionExitNodesPass(PassRegistry &)
void initializeLibCallsShrinkWrapLegacyPassPass(PassRegistry &)
FunctionPass * createPromoteMemoryToRegisterPass()
Definition: Mem2Reg.cpp:114
void initializeNameAnonGlobalLegacyPassPass(PassRegistry &)
void initializeStripGCRelocatesPass(PassRegistry &)
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R)
LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
Definition: Utils.cpp:46
void initializeTransformUtils(PassRegistry &)
Initialize all passes linked into the TransformUtils library.
Definition: Utils.cpp:26
void initializeCanonicalizeAliasesLegacyPassPass(PassRegistry &)
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:128
void initializePromoteLegacyPassPass(PassRegistry &)
void initializeInstNamerPass(PassRegistry &)
void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM)
See llvm::createLowerSwitchPass function.
Definition: Utils.cpp:50
void initializeLoopSimplifyPass(PassRegistry &)
void initializeLowerSwitchPass(PassRegistry &)
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:39
void initializeMetaRenamerPass(PassRegistry &)
void initializeStripNonLineTableDebugInfoPass(PassRegistry &)