LLVM API Documentation

Utils.cpp
Go to the documentation of this file.
00001 //===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file defines the common initialization infrastructure for the
00011 // TransformUtils library.
00012 //
00013 //===----------------------------------------------------------------------===//
00014 
00015 #include "llvm/InitializePasses.h"
00016 #include "llvm-c/Initialization.h"
00017 #include "llvm/PassRegistry.h"
00018 
00019 using namespace llvm;
00020 
00021 /// initializeTransformUtils - Initialize all passes in the TransformUtils
00022 /// library.
00023 void llvm::initializeTransformUtils(PassRegistry &Registry) {
00024   initializeAddDiscriminatorsPass(Registry);
00025   initializeBreakCriticalEdgesPass(Registry);
00026   initializeInstNamerPass(Registry);
00027   initializeLCSSAPass(Registry);
00028   initializeLoopSimplifyPass(Registry);
00029   initializeLowerInvokePass(Registry);
00030   initializeLowerSwitchPass(Registry);
00031   initializePromotePassPass(Registry);
00032   initializeUnifyFunctionExitNodesPass(Registry);
00033   initializeInstSimplifierPass(Registry);
00034   initializeMetaRenamerPass(Registry);
00035 }
00036 
00037 /// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
00038 void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
00039   initializeTransformUtils(*unwrap(R));
00040 }