Spatial
Simple Static Analysis in LLVM
Benchmark.h
Go to the documentation of this file.
1#ifndef BENCHMARK_H
2#define BENCHMARK_H
3
4#include "set"
5#include "string"
6#include "llvm/IR/Argument.h"
7#include "llvm/IR/Function.h"
8#include "llvm/IR/Instructions.h"
9#include "llvm/IR/Type.h"
10#include "llvm/IR/Value.h"
11
12namespace spatial {
13
15protected:
16 std::string Key;
17
18public:
19 BenchmarkRunner(std::string Key) { this->Key = Key; }
20 virtual std::vector<llvm::Value *> extract(llvm::Instruction *Inst) = 0;
21};
22
23} // namespace spatial
24
25#endif
Definition: Benchmark.h:14
virtual std::vector< llvm::Value * > extract(llvm::Instruction *Inst)=0
BenchmarkRunner(std::string Key)
Definition: Benchmark.h:19
std::string Key
Definition: Benchmark.h:16
Definition: PointsToBenchmark.cpp:19