Files
revng-revng/lib/Liveness/LivenessAnalysisPass.cpp
T
Pietro Fezzardi d6a4fcdfb5 Add LivenessAnalysisPass::getLiveIn() method
This method exposes the results of the analysis to the outside world.
2019-01-15 11:00:45 +01:00

21 lines
461 B
C++

//
// This file is distributed under the MIT License. See LICENSE.md for details.
//
// local includes
#include "LivenessAnalysisPass.h"
using namespace llvm;
bool LivenessAnalysisPass::runOnFunction(Function &F) {
LivenessAnalysis::Analysis LA(F);
LA.initialize();
LA.run();
LiveIn = LA.extractLiveIn();
return false;
}
char LivenessAnalysisPass::ID = 0;
static RegisterPass<LivenessAnalysisPass> X("liveness", "Liveness Analysis");