https://hgpu.org/?p=7632
Compiler optimizations for directive-based programming for accelerators