mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Add support for finding the dependencies of call and invoke instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@38497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#define LLVM_ANALYSIS_MEMORY_DEPENDENCE_H
|
||||
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include "llvm/ADT/DenseMap.h"
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include <map>
|
||||
@ -34,6 +35,7 @@ class MemoryDependenceAnalysis : public FunctionPass {
|
||||
DenseMap<Instruction*, std::pair<Instruction*, bool> > depGraphLocal;
|
||||
std::multimap<Instruction*, Instruction*> reverseDep;
|
||||
|
||||
Instruction* getCallSiteDependency(CallSite C, bool local = true);
|
||||
public:
|
||||
|
||||
static Instruction* NonLocal;
|
||||
|
Reference in New Issue
Block a user