Changes between Version 11 and Version 12 of Library_IR
- Timestamp:
- 12/14/15 09:54:27 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Library_IR
v11 v12 69 69 === `bundle` utility === 70 70 * Types 71 * ` Bundle`: a union type of all system types and user-defined types of a given program72 * `fun[lib="bundle", pure] $bundle_size(b: Bundle): Integer`71 * `$bundle`: a union type of all system types and user-defined types of a given program 72 * `fun[lib="bundle", pure] $bundle_size(b: $bundle): Integer` 73 73 * returns the size of the given bundle 74 * `fun[lib="bundle"] $bundle_pack(ptr: Pointer, size: Integer): Bundle`74 * `fun[lib="bundle"] $bundle_pack(ptr: Pointer, size: Integer): $bundle` 75 75 * packs data into a bundle 76 * `fun[lib="bundle"] $bundle_unpack(bundle: Bundle, ptr: Pointer)`76 * `fun[lib="bundle"] $bundle_unpack(bundle: $bundle, ptr: Pointer)` 77 77 * unpack a bundle 78 * `fun[lib="bundle"] $bundle_unpack_apply(data: Bundle, buf: Pointer, size: Integer, op: Operation)`78 * `fun[lib="bundle"] $bundle_unpack_apply(data: $bundle, buf: Pointer, size: Integer, op: $operation)` 79 79 * unpack a bundle and apply some operation to the data 80 80 … … 82 82 83 83 ==== barrier operations ==== 84 * `fun[lib="concurrency"] $gbarrier_create(scope: Scope, size: Integer): GBarrier` 84 * Types 85 * `$gbarrier`: the global barrier, a handle type 86 * `$barrier`: the local barrier, a handle type 87 * `fun[lib="concurrency"] $gbarrier_create(scope: Scope, size: Integer): $gbarrier` 85 88 * global barrier creation 86 * `fun[lib="concurreny"] $gbarrier_destroy(barrier: Gbarrier)`89 * `fun[lib="concurreny"] $gbarrier_destroy(barrier: $gbarrier)` 87 90 * global barrier destroy 88 * `fun[lib="concurrency"] $barrier_create(scope: Scope, gbarrier: Gbarrier, place: Integer): Barrier`91 * `fun[lib="concurrency"] $barrier_create(scope: Scope, gbarrier: $gbarrier, place: Integer): $barrier` 89 92 * local barrier creation 90 * `fun[lib="concurrency"] $barrier_destroy(barrier: Barrier)`93 * `fun[lib="concurrency"] $barrier_destroy(barrier: $barrier)` 91 94 * local barrier destroy 92 * `fun $barrier_call(barrier: Barrier)`95 * `fun $barrier_call(barrier: $barrier)` 93 96 * barrier call 94 97
