mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
s/clearAnalysis/initializeAnalysisInfo/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
419f0e95d6
commit
cbfd29d0da
@ -123,9 +123,8 @@ public:
|
|||||||
/// AvailableAnalysis appropriately if ProcessAnalysis is true.
|
/// AvailableAnalysis appropriately if ProcessAnalysis is true.
|
||||||
void addPassToManager (Pass *P, bool ProcessAnalysis = true);
|
void addPassToManager (Pass *P, bool ProcessAnalysis = true);
|
||||||
|
|
||||||
/// Clear analysis vectors RequiredAnalysis and AvailableAnalysis.
|
// Initialize available analysis information.
|
||||||
/// This is used before running passes managed by the manager.
|
void initializeAnalysisInfo() {
|
||||||
void clearAnalysis() {
|
|
||||||
RequiredAnalysis.clear();
|
RequiredAnalysis.clear();
|
||||||
AvailableAnalysis.clear();
|
AvailableAnalysis.clear();
|
||||||
LastUser.clear();
|
LastUser.clear();
|
||||||
@ -455,7 +454,7 @@ bool
|
|||||||
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
BasicBlockPassManager_New::runOnFunction(Function &F) {
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
clearAnalysis();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
|
||||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||||
@ -568,7 +567,7 @@ FunctionPassManagerImpl_New::addPass(Pass *P) {
|
|||||||
bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
clearAnalysis();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||||
@ -590,7 +589,7 @@ bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
|||||||
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
|
bool FunctionPassManagerImpl_New::runOnFunction(Function &F) {
|
||||||
|
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
clearAnalysis();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||||
e = passVectorEnd(); itr != e; ++itr) {
|
e = passVectorEnd(); itr != e; ++itr) {
|
||||||
@ -696,7 +695,7 @@ ModulePassManager_New::addPass(Pass *P) {
|
|||||||
bool
|
bool
|
||||||
ModulePassManager_New::runOnModule(Module &M) {
|
ModulePassManager_New::runOnModule(Module &M) {
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
clearAnalysis();
|
initializeAnalysisInfo();
|
||||||
|
|
||||||
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
for (std::vector<Pass *>::iterator itr = passVectorBegin(),
|
||||||
e = passVectorEnd(); itr != e; ++itr) {
|
e = passVectorEnd(); itr != e; ++itr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user