mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Add method to check to see if two _Instructions_ dominate each other
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include <set>
|
||||
class Instruction;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
@ -95,6 +96,12 @@ public:
|
||||
return getDominators(B).count(A) != 0;
|
||||
}
|
||||
|
||||
// dominates - Return true if A dominates B. This performs the special checks
|
||||
// neccesary if A and B are in the same basic block.
|
||||
//
|
||||
bool dominates(Instruction *A, Instruction *B) const;
|
||||
|
||||
|
||||
// getAnalysisUsage - This obviously provides a dominator set, but it also
|
||||
// uses the UnifyFunctionExitNode pass if building post-dominators
|
||||
//
|
||||
|
Reference in New Issue
Block a user