From 4d0de5d0f995c55e3c7bc6b6c7059d7f07e2f0c7 Mon Sep 17 00:00:00 2001 From: Akash Kothari <akashk4@tyler.cs.illinois.edu> Date: Fri, 10 Jan 2020 09:34:10 -0600 Subject: [PATCH] Changed the types for DFNode Level and Rank from int to unsigned --- hpvm/include/SupportVISC/DFGraph.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hpvm/include/SupportVISC/DFGraph.h b/hpvm/include/SupportVISC/DFGraph.h index b74aee8379..160e659284 100644 --- a/hpvm/include/SupportVISC/DFGraph.h +++ b/hpvm/include/SupportVISC/DFGraph.h @@ -230,9 +230,9 @@ private: ///< successor DFNodes PropertyListType PropertyList; ///< List of Properties StructType* OutputType; ///< Output Type - int Level; ///< Distance to the top-level DFNode in the + unsigned Level; ///< Distance to the top-level DFNode in the ///< hierarchy - int Rank; ///< Ordering based on toplogical sort + unsigned Rank; ///< Ordering based on toplogical sort const DFNodeKind Kind; ///< Kind of Node Internal/Leaf visc::Target Tag; ///< Code Generated for which backend visc::Target Hint; ///< To store preferred backend @@ -364,11 +364,11 @@ public: return DimLimits; } - int getLevel() const { + unsigned getLevel() const { return Level; } - int getRank() const { + unsigned getRank() const { return Rank; } @@ -584,7 +584,7 @@ public: // If Allocation Property is defined then it is not an allocation node return PropertyList.count(Allocation) != 0; } - void setRank(int r); + void setRank(unsigned r); bool isEntryNode(); bool isExitNode(); DFEdge* getInDFEdgeAt(unsigned inPort); @@ -853,7 +853,7 @@ DFNode::DFNode(IntrinsicInst* _II, Function* _FuncPointer, visc::Target _Hint, GenFuncInfo.cudnn_hasX86Func = false; } -void DFNode::setRank(int r) { +void DFNode::setRank(unsigned r) { Rank = r; // Update rank of successors for(outdfedge_iterator i = outdfedge_begin(), -- GitLab