mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Revert r64300 and r64301. These were causing the following errors respectively:
During llvm-gcc bootstrap: Undefined symbols: "llvm::FPPassManager::doFinalization(llvm::Module&)", referenced from: (anonymous namespace)::CGPassManager::doFinalization(llvm::CallGraph&, llvm::Module&) in libLLVMipa.a(CallGraphSCCPass.o) "llvm::FPPassManager::doInitialization(llvm::Module&)", referenced from: (anonymous namespace)::CGPassManager::doInitialization(llvm::CallGraph&, llvm::Module&) in libLLVMipa.a(CallGraphSCCPass.o) ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore.roots/llvmCore~obj/obj-llvm/Release/bin/opt] Error 1 During an LLVM release build: /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/Release/bin/tblgen -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86 -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target -gen-register-desc -o /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Target/X86/Release/X86GenRegisterInfo.inc.tmp /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86/X86.td llvm[3]: Building X86.td instruction names with tblgen /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/Release/bin/tblgen -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86 -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target -gen-instr-enums -o /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Target/X86/Release/X86GenInstrNames.inc.tmp /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86/X86.td llvm[3]: Building X86.td instruction information with tblgen /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/Release/bin/tblgen -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86 -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target -gen-instr-desc -o /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Target/X86/Release/X86GenInstrInfo.inc.tmp /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86/X86.td llvm[3]: Building X86.td assembly writer with tblgen /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/Release/bin/tblgen -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86 -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target -gen-asm-writer -o /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Target/X86/Release/X86GenAsmWriter.inc.tmp /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Target/X86/X86.td llvm[3]: Compiling InstructionCombining.cpp for Release build if /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmgcc42.roots/llvmgcc42~dst/Developer/usr/bin/llvm-g++-4.2 -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/include -I/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Transforms/Scalar -D_DEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O3 -fno-exceptions -Woverloaded-virtual -pedantic -Wall -W -Wwrite-strings -Wno-long-long -Wunused -Wno-unused-parameter -fstrict-aliasing -Wstrict-aliasing -c -MMD -MP -MF "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.d.tmp" -MT "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.lo" -MT "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.o" -MT "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.d" /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvmCore/lib/Transforms/Scalar/InstructionCombining.cpp -o /Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.o ; \ then /bin/mv -f "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Transforms/Scalar/Release/InstructionCombining.d.tmp" "/Volumes/Sandbox/Buildbot/llvm/full-llvm/build/llvm.sh.build/lib/Trans git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64311 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
535e3e8df9
commit
905c7e9a04
@ -40,8 +40,8 @@ public:
|
||||
/// whether any of the passes modifies the module, and if so, return true.
|
||||
bool runOnModule(Module &M);
|
||||
|
||||
bool doInitialization(CallGraph &CG, Module &M);
|
||||
bool doFinalization(CallGraph &CG, Module &M);
|
||||
bool doInitialization(CallGraph &CG);
|
||||
bool doFinalization(CallGraph &CG);
|
||||
|
||||
/// Pass Manager itself does not invalidate any analysis info.
|
||||
void getAnalysisUsage(AnalysisUsage &Info) const {
|
||||
@ -82,7 +82,7 @@ char CGPassManager::ID = 0;
|
||||
/// whether any of the passes modifies the module, and if so, return true.
|
||||
bool CGPassManager::runOnModule(Module &M) {
|
||||
CallGraph &CG = getAnalysis<CallGraph>();
|
||||
bool Changed = doInitialization(CG, M);
|
||||
bool Changed = doInitialization(CG);
|
||||
|
||||
// Walk SCC
|
||||
for (scc_iterator<CallGraph*> I = scc_begin(&CG), E = scc_end(&CG);
|
||||
@ -126,38 +126,28 @@ bool CGPassManager::runOnModule(Module &M) {
|
||||
removeDeadPasses(P, "", ON_CG_MSG);
|
||||
}
|
||||
}
|
||||
Changed |= doFinalization(CG, M);
|
||||
Changed |= doFinalization(CG);
|
||||
return Changed;
|
||||
}
|
||||
|
||||
/// Initialize CG
|
||||
bool CGPassManager::doInitialization(CallGraph &CG, Module &M) {
|
||||
bool CGPassManager::doInitialization(CallGraph &CG) {
|
||||
bool Changed = false;
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
Pass *P = getContainedPass(Index);
|
||||
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P)) {
|
||||
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P))
|
||||
Changed |= CGSP->doInitialization(CG);
|
||||
} else {
|
||||
FPPassManager *FP = dynamic_cast<FPPassManager *>(P);
|
||||
assert (FP && "Invalid CGPassManager member");
|
||||
Changed |= FP->doInitialization(M);
|
||||
}
|
||||
}
|
||||
return Changed;
|
||||
}
|
||||
|
||||
/// Finalize CG
|
||||
bool CGPassManager::doFinalization(CallGraph &CG, Module &M) {
|
||||
bool CGPassManager::doFinalization(CallGraph &CG) {
|
||||
bool Changed = false;
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
Pass *P = getContainedPass(Index);
|
||||
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P)) {
|
||||
if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P))
|
||||
Changed |= CGSP->doFinalization(CG);
|
||||
} else {
|
||||
FPPassManager *FP = dynamic_cast<FPPassManager *>(P);
|
||||
assert (FP && "Invalid CGPassManager member");
|
||||
Changed |= FP->doFinalization(M);
|
||||
}
|
||||
}
|
||||
return Changed;
|
||||
}
|
||||
|
@ -1140,7 +1140,7 @@ BBPassManager::runOnFunction(Function &F) {
|
||||
}
|
||||
|
||||
// Implement doInitialization and doFinalization
|
||||
bool BBPassManager::doInitialization(Module &M) {
|
||||
inline bool BBPassManager::doInitialization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
@ -1151,7 +1151,7 @@ bool BBPassManager::doInitialization(Module &M) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool BBPassManager::doFinalization(Module &M) {
|
||||
inline bool BBPassManager::doFinalization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
@ -1162,7 +1162,7 @@ bool BBPassManager::doFinalization(Module &M) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool BBPassManager::doInitialization(Function &F) {
|
||||
inline bool BBPassManager::doInitialization(Function &F) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
@ -1173,7 +1173,7 @@ bool BBPassManager::doInitialization(Function &F) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool BBPassManager::doFinalization(Function &F) {
|
||||
inline bool BBPassManager::doFinalization(Function &F) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
@ -1242,7 +1242,7 @@ bool FunctionPassManager::doFinalization() {
|
||||
//===----------------------------------------------------------------------===//
|
||||
// FunctionPassManagerImpl implementation
|
||||
//
|
||||
bool FunctionPassManagerImpl::doInitialization(Module &M) {
|
||||
inline bool FunctionPassManagerImpl::doInitialization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index) {
|
||||
@ -1253,7 +1253,7 @@ bool FunctionPassManagerImpl::doInitialization(Module &M) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool FunctionPassManagerImpl::doFinalization(Module &M) {
|
||||
inline bool FunctionPassManagerImpl::doFinalization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedManagers(); ++Index) {
|
||||
@ -1348,7 +1348,7 @@ bool FPPassManager::runOnModule(Module &M) {
|
||||
return Changed |= doFinalization(M);
|
||||
}
|
||||
|
||||
bool FPPassManager::doInitialization(Module &M) {
|
||||
inline bool FPPassManager::doInitialization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
@ -1359,7 +1359,7 @@ bool FPPassManager::doInitialization(Module &M) {
|
||||
return Changed;
|
||||
}
|
||||
|
||||
bool FPPassManager::doFinalization(Module &M) {
|
||||
inline bool FPPassManager::doFinalization(Module &M) {
|
||||
bool Changed = false;
|
||||
|
||||
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
|
||||
|
@ -1,6 +1,7 @@
|
||||
; RUN: llvm-as < %s | opt -std-compile-opts | llvm-dis | grep nocapture | count 2
|
||||
; Check that nocapture attributes are added when run after an SCC pass.
|
||||
; PR3520
|
||||
; XFAIL: *
|
||||
|
||||
define i32 @use(i8* %x) nounwind readonly {
|
||||
entry:
|
||||
|
Loading…
Reference in New Issue
Block a user