mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add support for passes to announce that they only depend on the CFG of a
function. This is crude but effective llvm-svn: 2505
This commit is contained in:
parent
ca538273d4
commit
bd5095f570
@ -219,6 +219,15 @@ public:
|
||||
return AnalysisID(NextID++, CreatePass<AnalysisType>);
|
||||
}
|
||||
|
||||
// Special Copy Constructor - This is how analysis passes declare that they
|
||||
// only depend on the CFG of the function they are working on, so they are not
|
||||
// invalidated by other passes that do not modify the CFG. This should be
|
||||
// used like this:
|
||||
// AnalysisID DominatorSet::ID(AnalysisID::create<DominatorSet>(), true);
|
||||
//
|
||||
AnalysisID(const AnalysisID &AID, bool DependsOnlyOnCFG = false);
|
||||
|
||||
|
||||
inline Pass *createPass() const { return Constructor(*this); }
|
||||
|
||||
inline bool operator==(const AnalysisID &A) const {
|
||||
|
Loading…
Reference in New Issue
Block a user