Skip to content
Snippets Groups Projects
Commit e72e919b authored by Akash Kothari's avatar Akash Kothari
Browse files

Adding const to getters in DFG and nodes classes

parent 2dd797f5
No related branches found
No related tags found
No related merge requests found
...@@ -95,19 +95,19 @@ public: ...@@ -95,19 +95,19 @@ public:
DFEdgeList.push_back(E); DFEdgeList.push_back(E);
} }
DFNode* getEntry() { DFNode* getEntry() const {
return Entry; return Entry;
} }
DFNode* getExit() { DFNode* getExit() const {
return Exit; return Exit;
} }
bool isEntry(DFNode* N) { bool isEntry(DFNode* N) const {
return N == Entry; return N == Entry;
} }
bool isExit(DFNode* N) { bool isExit(DFNode* N) const {
return N == Exit; return N == Exit;
} }
...@@ -155,7 +155,7 @@ public: ...@@ -155,7 +155,7 @@ public:
//===--------------------------------------------------------------------===// //===--------------------------------------------------------------------===//
DFInternalNode* getParent() { DFInternalNode* getParent() const {
return Parent; return Parent;
} }
...@@ -318,7 +318,7 @@ public: ...@@ -318,7 +318,7 @@ public:
return II->getCalledFunction()->getName().equals("llvm.visc.launch"); return II->getCalledFunction()->getName().equals("llvm.visc.launch");
} }
StructType* getOutputType() { StructType* getOutputType() const {
return OutputType; return OutputType;
} }
...@@ -336,7 +336,7 @@ public: ...@@ -336,7 +336,7 @@ public:
OutDFEdges.push_back(E); OutDFEdges.push_back(E);
} }
Function* getFuncPointer() { Function* getFuncPointer() const {
return FuncPointer; return FuncPointer;
} }
...@@ -344,27 +344,27 @@ public: ...@@ -344,27 +344,27 @@ public:
FuncPointer = _FuncPointer; FuncPointer = _FuncPointer;
} }
IntrinsicInst* getInstruction() { IntrinsicInst* getInstruction() const {
return II; return II;
} }
DFInternalNode* getParent() { DFInternalNode* getParent() const {
return Parent; return Parent;
} }
unsigned getNumOfDim() { unsigned getNumOfDim() const {
return NumOfDim; return NumOfDim;
} }
std::vector<Value*> getDimLimits() { std::vector<Value*> getDimLimits() const {
return DimLimits; return DimLimits;
} }
int getLevel() { int getLevel() const {
return Level; return Level;
} }
int getRank() { int getRank() const {
return Rank; return Rank;
} }
...@@ -393,7 +393,7 @@ public: ...@@ -393,7 +393,7 @@ public:
Tag = T; Tag = T;
} }
Function* getGenFunc() { Function* getGenFunc() const {
return GenFunc; return GenFunc;
} }
...@@ -425,7 +425,7 @@ public: ...@@ -425,7 +425,7 @@ public:
return; return;
} }
bool hasX86GenFuncForTarget(visc::Target T) { bool hasX86GenFuncForTarget(visc::Target T) const {
switch (T) { switch (T) {
case visc::CPU_TARGET: case visc::CPU_TARGET:
return GenFuncInfo.cpu_hasX86Func; return GenFuncInfo.cpu_hasX86Func;
...@@ -505,7 +505,7 @@ public: ...@@ -505,7 +505,7 @@ public:
Tag = viscUtils::getUpdatedTag(Tag,T); Tag = viscUtils::getUpdatedTag(Tag,T);
} }
Function* getGenFuncForTarget(visc::Target T) { Function* getGenFuncForTarget(visc::Target T) const {
switch (T) { switch (T) {
case visc::CPU_TARGET: case visc::CPU_TARGET:
return GenFuncs.CPUGenFunc; return GenFuncs.CPUGenFunc;
...@@ -644,7 +644,7 @@ public: ...@@ -644,7 +644,7 @@ public:
void addEdgeToDFGraph(DFEdge* E); void addEdgeToDFGraph(DFEdge* E);
DFGraph* getChildGraph() { DFGraph* getChildGraph() const {
return childGraph; return childGraph;
} }
...@@ -733,7 +733,7 @@ public: ...@@ -733,7 +733,7 @@ public:
} }
DFNode* getSourceDF() { DFNode* getSourceDF() const {
return SrcDF; return SrcDF;
} }
...@@ -741,7 +741,7 @@ public: ...@@ -741,7 +741,7 @@ public:
SrcDF = N; SrcDF = N;
} }
DFNode* getDestDF() { DFNode* getDestDF() const {
return DestDF; return DestDF;
} }
...@@ -749,11 +749,11 @@ public: ...@@ -749,11 +749,11 @@ public:
DestDF = N; DestDF = N;
} }
bool getEdgeType() { bool getEdgeType() const {
return EdgeType; return EdgeType;
} }
unsigned getSourcePosition() { unsigned getSourcePosition() const {
return SourcePosition; return SourcePosition;
} }
...@@ -761,7 +761,7 @@ public: ...@@ -761,7 +761,7 @@ public:
SourcePosition = i; SourcePosition = i;
} }
unsigned getDestPosition() { unsigned getDestPosition() const {
return DestPosition; return DestPosition;
} }
...@@ -769,11 +769,11 @@ public: ...@@ -769,11 +769,11 @@ public:
DestPosition = i; DestPosition = i;
} }
Type* getType() { Type* getType() const {
return ArgType; return ArgType;
} }
bool isStreamingEdge() { bool isStreamingEdge() const {
return isStreaming; return isStreaming;
} }
......
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