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

Added function in DFNode to check if this is an allocation node

parent caffab4b
No related branches found
No related tags found
No related merge requests found
...@@ -358,6 +358,10 @@ public: ...@@ -358,6 +358,10 @@ public:
return isEntryNode() || isExitNode(); return isEntryNode() || isExitNode();
} }
bool isAllocationNode() {
// If Allocation Property is defined then it is not an allocation node
return PropertyList.count(Allocation) != 0;
}
void setRank(int r); void setRank(int r);
bool isEntryNode(); bool isEntryNode();
bool isExitNode(); bool isExitNode();
......
...@@ -163,6 +163,10 @@ let TargetPrefix = "visc" in { ...@@ -163,6 +163,10 @@ let TargetPrefix = "visc" in {
*/ */
def int_visc_barrier : Intrinsic<[], [], []>; def int_visc_barrier : Intrinsic<[], [], []>;
/* Memory allocation inside the graph
* i8* llvm.visc.malloc();
*/
def int_visc_malloc : Intrinsic<[llvm_ptr_ty], [llvm_i32_ty], []>;
/* Find the vector length supported by target architecture /* Find the vector length supported by target architecture
* intrinsic - * intrinsic -
......
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