llvm-project
dd062143 - [OpenACC][CIR] Implement routine 'bind'-with-a-string lowering (#170916)

Commit
141 days ago
[OpenACC][CIR] Implement routine 'bind'-with-a-string lowering (#170916) The 'bind' clause emits an attribute on the RoutineOp that states which function it should call on the device side. When provided in double-quotes, the function on the device side should be the exact name given. This patch emits the IR to do that. As a part of that, we add a helper function to the OpenACC dialect to do so, as well as a version that adds the ID version (though we don't exercise th at yet). The 'bind' with an ID should do the MANGLED name, but it isn't quite clear what that name SHOULD be yet. Since the signature of a function is included in its mangling, and we're not providing said signature, we have to come up with something. This is left as an exercise for a future patch.
Author
Parents
Loading