Spatial
Simple Static Analysis in LLVM
InstInfo.h
Go to the documentation of this file.
1#ifndef INSTINFO_H
2#define INSTINFO_H
3
4#include "llvm/ADT/BitVector.h"
5
6namespace spatial {
7
9
10class InstInfo {
11private:
12 llvm::BitVector Info;
13 // Length = 4
14 // Call, Phi, Skip, Read-write-memory
15 unsigned int Length;
16
17public:
18 InstInfo();
19 void setCallInst();
20 void setPhiInst();
21 void setSkipInst();
22 void setRWMemInst();
23 bool isCallInst();
24 bool isPhiInst();
25 bool isSkipInst();
26 bool isRWMem();
27};
28} // namespace spatial
29
30#endif
Definition: InstInfo.h:10
bool isSkipInst()
isSkipInst - Returns true if the instruction is to be skipped
Definition: InstInfo.cpp:28
void setRWMemInst()
setRWmemInst - set true for instructions that read or write from memory
Definition: InstInfo.cpp:19
void setPhiInst()
setPhiInst - set phi bit true
Definition: InstInfo.cpp:13
bool isPhiInst()
isPhiInst - Returns the phi bit
Definition: InstInfo.cpp:25
bool isRWMem()
isRWMem - Returns true if the instruction touches memory
Definition: InstInfo.cpp:31
void setCallInst()
setCallInst - set call bit true
Definition: InstInfo.cpp:10
bool isCallInst()
isCallInst - returns true if the call bit is set to true
Definition: InstInfo.cpp:22
void setSkipInst()
setSkipInst - set skip bit true
Definition: InstInfo.cpp:16
InstInfo()
Definition: InstInfo.cpp:4
Definition: PointsToBenchmark.cpp:19
InfoType
Definition: InstInfo.h:8
@ Skip
Definition: InstInfo.h:8
@ Call
Definition: InstInfo.h:8
@ Phi
Definition: InstInfo.h:8
@ RWMem
Definition: InstInfo.h:8