This is an attempt at mimicing the method in which
threadprivate handles the following type of variables:
program main integer :: i !$omp declare target to(i) end
Which essentially generates a GlobalOp for the variable (which
would normally only be an alloca) when it's instantiated. The
main difference is there is no operation generated within the
function, instead the declare target attribute is appended
later within handleDeclareTarget.
Can this code be shared with the threadprivate usage?