mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Add initialization routines for CodeGen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -27,6 +27,7 @@ void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
|
|||||||
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
void LLVMInitializeIPO(LLVMPassRegistryRef R);
|
||||||
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
|
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
|
||||||
void LLVMInitializeIPA(LLVMPassRegistryRef R);
|
void LLVMInitializeIPA(LLVMPassRegistryRef R);
|
||||||
|
void LLVMInitializeCodeGen(LLVMPassRegistryRef R);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,9 @@ void initializeAnalysis(PassRegistry&);
|
|||||||
/// initializeIPA - Initialize all passes linked into the IPA library.
|
/// initializeIPA - Initialize all passes linked into the IPA library.
|
||||||
void initializeIPA(PassRegistry&);
|
void initializeIPA(PassRegistry&);
|
||||||
|
|
||||||
|
/// initializeCodeGen - Initialize all passes linked into the CodeGen library.
|
||||||
|
void initializeCodeGen(PassRegistry&);
|
||||||
|
|
||||||
void initializeAAEvalPass(PassRegistry&);
|
void initializeAAEvalPass(PassRegistry&);
|
||||||
void initializeADCEPass(PassRegistry&);
|
void initializeADCEPass(PassRegistry&);
|
||||||
void initializeAliasAnalysisAnalysisGroup(PassRegistry&);
|
void initializeAliasAnalysisAnalysisGroup(PassRegistry&);
|
||||||
|
@ -4,6 +4,7 @@ add_llvm_library(LLVMCodeGen
|
|||||||
BranchFolding.cpp
|
BranchFolding.cpp
|
||||||
CalcSpillWeights.cpp
|
CalcSpillWeights.cpp
|
||||||
CallingConvLower.cpp
|
CallingConvLower.cpp
|
||||||
|
CodeGen.cpp
|
||||||
CodePlacementOpt.cpp
|
CodePlacementOpt.cpp
|
||||||
CriticalAntiDepBreaker.cpp
|
CriticalAntiDepBreaker.cpp
|
||||||
DeadMachineInstructionElim.cpp
|
DeadMachineInstructionElim.cpp
|
||||||
|
59
lib/CodeGen/CodeGen.cpp
Normal file
59
lib/CodeGen/CodeGen.cpp
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
//===-- 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);
|
||||||
|
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);
|
||||||
|
initializePreAllocSplittingPass(Registry);
|
||||||
|
initializeProcessImplicitDefsPass(Registry);
|
||||||
|
initializePEIPass(Registry);
|
||||||
|
initializeRALinScanPass(Registry);
|
||||||
|
initializeRegisterCoalescerAnalysisGroup(Registry);
|
||||||
|
initializeRenderMachineFunctionPass(Registry);
|
||||||
|
initializeSimpleRegisterCoalescingPass(Registry);
|
||||||
|
initializeSlotIndexesPass(Registry);
|
||||||
|
initializeLoopSplitterPass(Registry);
|
||||||
|
initializeStackProtectorPass(Registry);
|
||||||
|
initializeStackSlotColoringPass(Registry);
|
||||||
|
initializeStrongPHIEliminationPass(Registry);
|
||||||
|
initializeTwoAddressInstructionPassPass(Registry);
|
||||||
|
initializeUnreachableBlockElimPass(Registry);
|
||||||
|
initializeUnreachableMachineBlockElimPass(Registry);
|
||||||
|
initializeVirtRegMapPass(Registry);
|
||||||
|
}
|
||||||
|
|
||||||
|
void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
|
||||||
|
initializeCodeGen(*unwrap(R));
|
||||||
|
}
|
Reference in New Issue
Block a user