Spatial
Simple Static Analysis in LLVM
CFGUtils.h
Go to the documentation of this file.
1#ifndef CFGUTILS_H
2#define CFGUTILS_H
3
4#include "vector"
5#include "llvm/IR/Function.h"
6#include "llvm/IR/Instruction.h"
7
8namespace spatial {
9
10void InstNamer(llvm::Function &F);
11bool SkipFunction(llvm::Function &F);
12std::vector<llvm::Instruction *> GetPred(llvm::Instruction *);
13std::vector<llvm::Instruction *> GetSucc(llvm::Instruction *);
14int getPointerOperandIndex(llvm::Instruction *);
15
16} // namespace spatial
17#endif
Definition: PointsToBenchmark.cpp:19
void InstNamer(llvm::Function &F)
InstNamer - sets name to the SSA temporaries.
Definition: CFGUtils.cpp:14
int getPointerOperandIndex(llvm::Instruction *Inst)
Definition: CFGUtils.cpp:55
bool SkipFunction(llvm::Function &F)
Definition: CFGUtils.cpp:19
std::vector< llvm::Instruction * > GetSucc(llvm::Instruction *Inst)
Definition: CFGUtils.cpp:42
std::vector< llvm::Instruction * > GetPred(llvm::Instruction *Inst)
Definition: CFGUtils.cpp:29