Hi,
Earlier Richard mentioned the possibility to special-case GOMP_SIMT_ENTER to
allow passing privatized variables to it by reference without making them
addressable. I now see that such special-casing is already done for
IFN_ATOMIC_COMPARE_EXCHANGE in tree-ssa.c: execute_update_addresses_taken ().
If that's the only place in the compiler where such special casing needs to
happen, and the rest of the compiler already tolerates it, can we indeed do:
void *simtrec = GOMP_SIMT_ENTER (&var1, &var2, ...);
for (...) { ... }
var1 ={v} {CLOBBER};
var2 ={v} {CLOBBER};
... ;
GOMP_SIMT_EXIT (simtrec, &var1, &var2, ...)'
Thanks.
Alexander