LLVM  14.0.0git
Utils.cpp
Go to the documentation of this file.
1 //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
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 defines the common initialization infrastructure for the
10 // TransformUtils library.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "llvm/Transforms/Utils.h"
15 #include "llvm-c/Initialization.h"
18 #include "llvm/InitializePasses.h"
19 #include "llvm/PassRegistry.h"
20 
21 using namespace llvm;
22 
23 /// initializeTransformUtils - Initialize all passes in the TransformUtils
24 /// library.
48 }
49 
50 /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
53 }
54 
56  unwrap(PM)->add(createLowerSwitchPass());
57 }
58 
61 }
62 
65 }
llvm
---------------------— PointerInfo ------------------------------------—
Definition: AllocatorList.h:23
LLVMPassRegistryRef
struct LLVMOpaquePassRegistry * LLVMPassRegistryRef
Definition: Types.h:130
llvm::initializeUnifyFunctionExitNodesLegacyPassPass
void initializeUnifyFunctionExitNodesLegacyPassPass(PassRegistry &)
llvm::initializeLowerSwitchLegacyPassPass
void initializeLowerSwitchLegacyPassPass(PassRegistry &)
LegacyPassManager.h
PassRegistry.h
llvm::initializeUnifyLoopExitsLegacyPassPass
void initializeUnifyLoopExitsLegacyPassPass(PassRegistry &)
LLVMAddPromoteMemoryToRegisterPass
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM)
See llvm::createPromoteMemoryToRegisterPass function.
Definition: Utils.cpp:59
llvm::initializeAssumeBuilderPassLegacyPassPass
void initializeAssumeBuilderPassLegacyPassPass(PassRegistry &)
llvm::initializeMetaRenamerPass
void initializeMetaRenamerPass(PassRegistry &)
LLVMInitializeTransformUtils
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R)
LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
Definition: Utils.cpp:51
llvm::PassRegistry
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:38
llvm::unwrap
Attribute unwrap(LLVMAttributeRef Attr)
Definition: Attributes.h:256
llvm::initializeFixIrreduciblePass
void initializeFixIrreduciblePass(PassRegistry &)
llvm::initializeTransformUtils
void initializeTransformUtils(PassRegistry &)
Initialize all passes linked into the TransformUtils library.
Definition: Utils.cpp:25
llvm::initializeCanonicalizeFreezeInLoopsPass
void initializeCanonicalizeFreezeInLoopsPass(PassRegistry &)
Utils.h
llvm::createLowerSwitchPass
FunctionPass * createLowerSwitchPass()
Definition: LowerSwitch.cpp:580
llvm::initializeAssumeSimplifyPassLegacyPassPass
void initializeAssumeSimplifyPassLegacyPassPass(PassRegistry &)
llvm::initializePromoteLegacyPassPass
void initializePromoteLegacyPassPass(PassRegistry &)
llvm::initializeStripGCRelocatesLegacyPass
void initializeStripGCRelocatesLegacyPass(PassRegistry &)
llvm::initializeLCSSAWrapperPassPass
void initializeLCSSAWrapperPassPass(PassRegistry &)
Utils.h
LLVMPassManagerRef
struct LLVMOpaquePassManager * LLVMPassManagerRef
Definition: Types.h:127
llvm::initializePredicateInfoPrinterLegacyPassPass
void initializePredicateInfoPrinterLegacyPassPass(PassRegistry &)
LLVMAddAddDiscriminatorsPass
void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM)
See llvm::createAddDiscriminatorsPass function.
Definition: Utils.cpp:63
llvm::initializeNameAnonGlobalLegacyPassPass
void initializeNameAnonGlobalLegacyPassPass(PassRegistry &)
llvm::initializeLibCallsShrinkWrapLegacyPassPass
void initializeLibCallsShrinkWrapLegacyPassPass(PassRegistry &)
LLVMAddLowerSwitchPass
void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM)
See llvm::createLowerSwitchPass function.
Definition: Utils.cpp:55
llvm::initializeCanonicalizeAliasesLegacyPassPass
void initializeCanonicalizeAliasesLegacyPassPass(PassRegistry &)
llvm::createPromoteMemoryToRegisterPass
FunctionPass * createPromoteMemoryToRegisterPass()
Definition: Mem2Reg.cpp:114
llvm::createAddDiscriminatorsPass
FunctionPass * createAddDiscriminatorsPass()
Definition: AddDiscriminators.cpp:111
llvm::Registry
A global registry used in conjunction with static constructors to make pluggable components (like tar...
Definition: Registry.h:44
llvm::initializeInjectTLIMappingsLegacyPass
void initializeInjectTLIMappingsLegacyPass(PassRegistry &)
llvm::initializeInstNamerPass
void initializeInstNamerPass(PassRegistry &)
llvm::initializeBreakCriticalEdgesPass
void initializeBreakCriticalEdgesPass(PassRegistry &)
InitializePasses.h
llvm::initializeLowerInvokeLegacyPassPass
void initializeLowerInvokeLegacyPassPass(PassRegistry &)
llvm::initializeStripNonLineTableDebugLegacyPassPass
void initializeStripNonLineTableDebugLegacyPassPass(PassRegistry &)
llvm::initializeAddDiscriminatorsLegacyPassPass
void initializeAddDiscriminatorsLegacyPassPass(PassRegistry &)
Initialization.h
llvm::initializeLoopSimplifyPass
void initializeLoopSimplifyPass(PassRegistry &)