2010-10-07 17:55:47 +00:00
|
|
|
//===-- Utils.cpp - TransformUtils Infrastructure -------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
|
|
|
|
// This file defines the common initialization infrastructure for the
|
|
|
|
|
// TransformUtils library.
|
|
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
|
|
#include "llvm-c/Initialization.h"
|
2017-06-06 11:49:48 +00:00
|
|
|
#include "llvm/InitializePasses.h"
|
2014-01-07 11:48:04 +00:00
|
|
|
#include "llvm/PassRegistry.h"
|
2010-10-07 17:55:47 +00:00
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
|
|
/// initializeTransformUtils - Initialize all passes in the TransformUtils
|
|
|
|
|
/// library.
|
|
|
|
|
void llvm::initializeTransformUtils(PassRegistry &Registry) {
|
2016-06-15 21:51:30 +00:00
|
|
|
initializeAddDiscriminatorsLegacyPassPass(Registry);
|
2010-10-07 17:55:47 +00:00
|
|
|
initializeBreakCriticalEdgesPass(Registry);
|
|
|
|
|
initializeInstNamerPass(Registry);
|
2016-06-09 19:44:46 +00:00
|
|
|
initializeLCSSAWrapperPassPass(Registry);
|
2016-10-18 21:36:27 +00:00
|
|
|
initializeLibCallsShrinkWrapLegacyPassPass(Registry);
|
2010-10-07 17:55:47 +00:00
|
|
|
initializeLoopSimplifyPass(Registry);
|
2016-08-12 17:28:27 +00:00
|
|
|
initializeLowerInvokeLegacyPassPass(Registry);
|
2010-10-07 17:55:47 +00:00
|
|
|
initializeLowerSwitchPass(Registry);
|
2016-09-16 16:56:30 +00:00
|
|
|
initializeNameAnonGlobalLegacyPassPass(Registry);
|
2016-06-14 03:22:22 +00:00
|
|
|
initializePromoteLegacyPassPass(Registry);
|
2016-10-25 18:44:13 +00:00
|
|
|
initializeStripNonLineTableDebugInfoPass(Registry);
|
2010-10-07 17:55:47 +00:00
|
|
|
initializeUnifyFunctionExitNodesPass(Registry);
|
2010-12-20 20:54:37 +00:00
|
|
|
initializeInstSimplifierPass(Registry);
|
2012-09-11 02:46:18 +00:00
|
|
|
initializeMetaRenamerPass(Registry);
|
2016-10-21 18:43:16 +00:00
|
|
|
initializeStripGCRelocatesPass(Registry);
|
2017-02-07 21:10:46 +00:00
|
|
|
initializePredicateInfoPrinterLegacyPassPass(Registry);
|
2010-10-07 17:55:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// LLVMInitializeTransformUtils - C binding for initializeTransformUtilsPasses.
|
|
|
|
|
void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) {
|
|
|
|
|
initializeTransformUtils(*unwrap(R));
|
|
|
|
|
}
|