blob: f515df5f0774307ab8e61b88d9729d7ed7780325 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef MAGIC_CTLAZY_CHECKPOINT_PASS_H
#define MAGIC_CTLAZY_CHECKPOINT_PASS_H
#include <magic/magic.h>
#include <magic/MagicPass.h>
#include <magic/support/VariableRefs.h>
using namespace llvm;
namespace llvm {
#define magicCTLazyCheckpointPassLog(M) DEBUG(dbgs() << "MagicCTLazyCheckpointPass: " << M << "\n")
class MagicCTLazyCheckpointPass : public FunctionPass {
public:
static char ID;
MagicCTLazyCheckpointPass();
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
virtual bool runOnFunction(Function &F);
private:
AliasAnalysis *AA;
bool instructionModifiesVar(Module &M, Instruction *inst, GlobalVariable* var);
};
}
#endif
|