Changeset b7d94ac5
- Timestamp:
- Jul 5, 2021, 4:58:31 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- e49b6f5
- Parents:
- 8f1a99e
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/readyQ/rq_bench.hfa
r8f1a99e rb7d94ac5 93 93 94 94 struct __attribute__((aligned(128))) bench_sem { 95 struct $thread* volatile ptr;95 struct thread$ * volatile ptr; 96 96 }; 97 97 … … 105 105 bool wait(bench_sem & this) { 106 106 for() { 107 struct $thread* expected = this.ptr;107 struct thread$ * expected = this.ptr; 108 108 if(expected == 1p) { 109 109 if(__atomic_compare_exchange_n(&this.ptr, &expected, 0p, false, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST)) { … … 124 124 bool post(bench_sem & this) { 125 125 for() { 126 struct $thread* expected = this.ptr;126 struct thread$ * expected = this.ptr; 127 127 if(expected == 1p) return false; 128 128 if(expected == 0p) { -
tools/gdb/utils-gdb.py
r8f1a99e rb7d94ac5 53 53 return CfaTypes(cluster_ptr = gdb.lookup_type('struct cluster').pointer(), 54 54 processor_ptr = gdb.lookup_type('struct processor').pointer(), 55 thread_ptr = gdb.lookup_type('struct $thread').pointer(),55 thread_ptr = gdb.lookup_type('struct thread$').pointer(), 56 56 int_ptr = gdb.lookup_type('int').pointer(), 57 57 thread_state = gdb.lookup_type('enum __Coroutine_State'), … … 163 163 164 164 def thread_for_pthread(pthrd): 165 return tls_for_pthread(pthrd)['_X11this_threadVPS7 $thread_1']165 return tls_for_pthread(pthrd)['_X11this_threadVPS7thread$_1'] 166 166 167 167 def thread_for_proc(proc): 168 return tls_for_proc(proc)['_X11this_threadVPS7 $thread_1']168 return tls_for_proc(proc)['_X11this_threadVPS7thread$_1'] 169 169 170 170 … … 216 216 217 217 cfa_t = get_cfa_types() 218 root = cluster['_X7threadsS8__dllist_S7 $thread__1']['_X4headPY15__TYPE_generic__1'].cast(cfa_t.thread_ptr)218 root = cluster['_X7threadsS8__dllist_S7thread$__1']['_X4headPY15__TYPE_generic__1'].cast(cfa_t.thread_ptr) 219 219 220 220 if root == 0x0 or root.address == 0x0: … … 313 313 )) 314 314 tls = tls_for_proc( processor ) 315 thrd = tls['_X11this_threadVPS7 $thread_1']315 thrd = tls['_X11this_threadVPS7thread$_1'] 316 316 if thrd != 0x0: 317 317 tname = '{} {}'.format(thrd['self_cor']['name'].string(), str(thrd)) -
tools/vscode/uwaterloo.cforall-0.1.0/syntaxes/cfa.tmLanguage.json
r8f1a99e rb7d94ac5 206 206 "patterns": [ 207 207 { "match": "(\\b|^|\\s)(void|bool|char|short|int|long|signed|unsigned|float|double)(\\b|$|\\s)", "name": "storage.type.built-in.primitive.cfa"}, 208 { "match": "(\\b|^|\\s)(zero_t|one_t|size_t|ssize_t|intptr_t|uintptr_t| \\$thread|\\$coroutine|\\$generator|\\$monitor)(\\b|$|\\s)", "name": "storage.type.built-in.cfa"},208 { "match": "(\\b|^|\\s)(zero_t|one_t|size_t|ssize_t|intptr_t|uintptr_t|thread\\$|coroutine\\$|generator\\$|monitor\\$)(\\b|$|\\s)", "name": "storage.type.built-in.cfa"}, 209 209 { "match": "(\\b|^|\\s)(extern|static|inline|volatile|const|thread_local)(\\b|$|\\s)", "name": "storage.modifier.cfa"} 210 210 ]
Note: See TracChangeset
for help on using the changeset viewer.