-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathandersen.hpp
50 lines (39 loc) · 1.22 KB
/
andersen.hpp
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef ANDERSEN_HPP_
#define ANDERSEN_HPP_
#include "llvm/Analysis/CallGraph.h"
#include <llvm/ADT/APInt.h>
#include <llvm/ADT/DepthFirstIterator.h>
#include <llvm/Analysis/AliasAnalysis.h>
#include <llvm/IR/Argument.h>
#include <llvm/IR/BasicBlock.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/DerivedTypes.h>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/Operator.h>
#include <llvm/IR/SymbolTableListTraits.h>
#include <algorithm>
#include <functional>
#include <iostream>
#include <llvm/Support/Casting.h>
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/Value.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"
#include <set>
#include <unordered_map>
namespace llvm {
class AndersenAAResult : public llvm::AAResultBase<AndersenAAResult> {
private:
friend llvm::AAResultBase<AndersenAAResult>;
llvm::AliasResult andersenAlias(const llvm::Value *, const llvm::Value *);
public:
AndersenAAResult(const llvm::Module &);
llvm::AliasResult alias(const llvm::MemoryLocation &,
const llvm::MemoryLocation &);
bool pointsToConstantMemory(const llvm::MemoryLocation &, bool);
};
};
#endif