@@ -113,6 +113,7 @@ Get number of dynamic instances of node ```N``` in dimension x, y or z respectiv
...
@@ -113,6 +113,7 @@ Get number of dynamic instances of node ```N``` in dimension x, y or z respectiv
## Intrinsics for Memory Allocation and Synchronization
## Intrinsics for Memory Allocation and Synchronization
The following intrinsics are used for memory allocation and synchronization. They can only be used by leaf nodes.
The following intrinsics are used for memory allocation and synchronization. They can only be used by leaf nodes.
```i8* llvm.hpvm.malloc(i64 nBytes)```
```i8* llvm.hpvm.malloc(i64 nBytes)```
Allocate a block of memory of size ```nBytes``` and return pointer to it. The allocated object can be shared by all nodes, although the pointer returned must somehow be communicated explicitly for use by other nodes.
Allocate a block of memory of size ```nBytes``` and return pointer to it. The allocated object can be shared by all nodes, although the pointer returned must somehow be communicated explicitly for use by other nodes.