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

Commented out the Creat function as no constructor defined yet.

parent 90ec8080
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
//
// DFNode represents a single VISC Dataflow Node in LLVM.
//
// A Dataflow Node basically consists of
// A Dataflow Node basically consists of
// 1. Pointer to a function describing this dataflow node
// 2. Number of dimensions in which the node is replicated
// 3. Number of instances in each dimension
......@@ -20,8 +20,8 @@
// 6. List of Dataflow Edges among children
//
// DFEdge represents a single VISC Dataflow Edge in LLVM.
//
// A Dataflow Edge basically consists of
//
// A Dataflow Edge basically consists of
// 1. Pointer to the dataflow node that is the source of this edge
// 2. Pointer to the dataflow node that is the destination of this edge
// 3. Pointer to a function that describes which instances of the source
......@@ -41,6 +41,9 @@
#include "llvm/Support/Compiler.h"
namespace llvm {
class DFEdge;
class DFNode : public ilist_node<DFNode> {
private:
......@@ -49,11 +52,11 @@ private:
public:
// DFNode and DFEdge iterators
typedef DFNodeListType::iterator iterator;
typedef DFNodeListType::const_iterator const_iterator;
typedef DFNodeListType::iterator node_iterator;
typedef DFNodeListType::const_iterator const_node_iterator;
typedef DFEdgeListType::iterator iterator;
typedef DFEdgeListType::const_iterator const_iterator;
typedef DFEdgeListType::iterator edge_iterator;
typedef DFEdgeListType::const_iterator const_edge_iterator;
private:
// Important things that make up a Dataflow Node
......@@ -65,10 +68,12 @@ private:
DFEdgeListType DFEdgeList; ///< List of Dataflow edges among children
public:
static DFNode *Create(Function* FuncPointer, int NumOfDim = 0, DFNode* Parent = NULL) {
//FIXME: Write a matching constructor, then uncomment this function.
/*static DFNode *Create(Function* FuncPointer, int NumOfDim = 0, DFNode* Parent = NULL) {
return new DFNode(FuncPointer, NumOfDim, Parent);
}
}*/
};
class DFEdge : public ilist_node<DFEdge> {
......@@ -84,10 +89,11 @@ private:
///< of source dataflow node
public:
static DFEdge *Create(DFNode* SrcDF, DFNode* DestDF, Function* DFMapFuncPointer, Function* ArgMapFuncPointer) {
//FIXME: Write a matching constructor, then uncomment this function.
/*static DFEdge *Create(DFNode* SrcDF, DFNode* DestDF, Function* DFMapFuncPointer, Function* ArgMapFuncPointer) {
return new DFEdge(SrcDF, DestDF, DFMapFuncPointer, ArgMapFuncPointer);
}
}*/
};
} // End llvm namespace
......
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