2010-10-07 20:41:20 +02:00
|
|
|
//===-- CodeGen.cpp -------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file implements the common initialization routines for the
|
|
|
|
// CodeGen library.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/InitializePasses.h"
|
|
|
|
#include "llvm-c/Initialization.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
/// initializeCodeGen - Initialize all passes linked into the CodeGen library.
|
|
|
|
void llvm::initializeCodeGen(PassRegistry &Registry) {
|
|
|
|
initializeCalculateSpillWeightsPass(Registry);
|
|
|
|
initializeDeadMachineInstructionElimPass(Registry);
|
|
|
|
initializeGCModuleInfoPass(Registry);
|
|
|
|
initializeIfConverterPass(Registry);
|
2010-11-30 03:17:10 +01:00
|
|
|
initializeLiveDebugVariablesPass(Registry);
|
2010-10-07 20:41:20 +02:00
|
|
|
initializeLiveIntervalsPass(Registry);
|
|
|
|
initializeLiveStacksPass(Registry);
|
|
|
|
initializeLiveVariablesPass(Registry);
|
|
|
|
initializeMachineCSEPass(Registry);
|
|
|
|
initializeMachineDominatorTreePass(Registry);
|
|
|
|
initializeMachineLICMPass(Registry);
|
|
|
|
initializeMachineLoopInfoPass(Registry);
|
|
|
|
initializeMachineModuleInfoPass(Registry);
|
|
|
|
initializeMachineSinkingPass(Registry);
|
|
|
|
initializeMachineVerifierPassPass(Registry);
|
|
|
|
initializeOptimizePHIsPass(Registry);
|
|
|
|
initializePHIEliminationPass(Registry);
|
|
|
|
initializePeepholeOptimizerPass(Registry);
|
|
|
|
initializeProcessImplicitDefsPass(Registry);
|
|
|
|
initializePEIPass(Registry);
|
|
|
|
initializeRALinScanPass(Registry);
|
2011-06-27 00:34:10 +02:00
|
|
|
initializeRegisterCoalescerPass(Registry);
|
2010-10-07 20:41:20 +02:00
|
|
|
initializeRenderMachineFunctionPass(Registry);
|
|
|
|
initializeSlotIndexesPass(Registry);
|
|
|
|
initializeLoopSplitterPass(Registry);
|
|
|
|
initializeStackProtectorPass(Registry);
|
|
|
|
initializeStackSlotColoringPass(Registry);
|
|
|
|
initializeStrongPHIEliminationPass(Registry);
|
|
|
|
initializeTwoAddressInstructionPassPass(Registry);
|
|
|
|
initializeUnreachableBlockElimPass(Registry);
|
|
|
|
initializeUnreachableMachineBlockElimPass(Registry);
|
|
|
|
initializeVirtRegMapPass(Registry);
|
2010-10-19 19:21:58 +02:00
|
|
|
initializeLowerIntrinsicsPass(Registry);
|
2010-10-07 20:41:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
|
|
|
|
initializeCodeGen(*unwrap(R));
|
|
|
|
}
|