Skip to content
Snippets Groups Projects
Commit 9ed55cf9 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

Changed the type of DimLimits field of DFNode class to std::vector<Value*>.

parent 0c455638
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@
#define LLVM_IR_DFGRAPH_H
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Compiler.h"
namespace llvm {
......@@ -52,23 +52,23 @@ private:
typedef std::vector<DFEdge*> DFEdgeListType;
// Important things that make up a Dataflow Node
IntrinsicInst* II; ///< Associated IntrinsicInst/Value
Function* FuncPointer; ///< Associated Function
DFNode* Parent; ///< Pointer to parent dataflow Node
int NumOfDim; ///< Number of dimensions
std::vector<int> DimLimits; ///< Number of instances in each dimension
DFNodeListType ChildrenList; ///< List of children Dataflow Nodes
DFEdgeListType DFEdgeList; ///< List of Dataflow edges among children
IntrinsicInst* II; ///< Associated IntrinsicInst/Value
Function* FuncPointer; ///< Associated Function
DFNode* Parent; ///< Pointer to parent dataflow Node
int NumOfDim; ///< Number of dimensions
std::vector<Value*> DimLimits; ///< Number of instances in each dimension
DFNodeListType ChildrenList; ///< List of children Dataflow Nodes
DFEdgeListType DFEdgeList; ///< List of Dataflow edges among children
// Functions
DFNode(IntrinsicInst* _II, Function* _FuncPointer, DFNode* _Parent, int _NumOfDim,
std::vector<int> _DimLimits) : II(_II), FuncPointer(_FuncPointer),
std::vector<Value*> _DimLimits) : II(_II), FuncPointer(_FuncPointer),
Parent(_Parent), NumOfDim(_NumOfDim), DimLimits(_DimLimits) {}
public:
static DFNode *Create(IntrinsicInst* II, Function* FuncPointer, DFNode* Parent = NULL,
int NumOfDim = 0, std::vector<int> DimLimits = std::vector<int>()) {
int NumOfDim = 0, std::vector<Value*> DimLimits = std::vector<Value*>()) {
return new DFNode(II, FuncPointer, Parent, NumOfDim, DimLimits);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment