Go to the documentation of this file.
30 #ifndef CGRAOMP_UTILS_H
31 #define CGRAOMP_UTILS_H
33 #include "llvm/IR/Function.h"
34 #include "llvm/IR/Instructions.h"
35 #include "llvm/IR/Type.h"
36 #include "llvm/Analysis/LoopInfo.h"
37 #include "llvm/Analysis/LoopAnalysisManager.h"
38 #include "llvm/ADT/SmallVector.h"
39 #include "llvm/ADT/APFloat.h"
55 LoopStandardAnalysisResults
getLSAR(Function &F,
56 FunctionAnalysisManager &AM);
61 void getAllGEP(Loop* L, SmallVector<Instruction*> &List);
76 #endif //CGRAOMP_UTILS_H
LoopStandardAnalysisResults getLSAR(Function &F, FunctionAnalysisManager &AM)
a utility function to obtain analysis results in LoopStandardAnalysisResults
Definition: Utils.cpp:50
void getAllGEP(Loop *L, SmallVector< Instruction * > &List)
Definition: Utils.cpp:79
Definition: OptionPlugin.cpp:128
BranchInst * findBackBranch(Loop *L)
Definition: Utils.cpp:68
int getDataWidth(const Type *T)
Definition: Utils.cpp:137
Definition: AGVerifyPass.hpp:50
std::string getFloatType(const APFloat f)
Definition: Utils.cpp:116
double getFloatValueAsDouble(const APFloat f)
Definition: Utils.cpp:126
void getArrayElementSizes(Type *Ty, SmallVector< int > &sizes, Type *&element_type)
Definition: Utils.cpp:91
int getFloatDataWidth(const APFloat f)
Definition: Utils.cpp:100