JonChesterfield added a comment.

I'm trying to pick up the context for this and D95976 
<https://reviews.llvm.org/D95976>. Superficially it looks like lowering 
variadic functions in the compiler could be used to simplify quite a lot of 
this, @jdoerfert there's a comment from some time ago which suggests that this 
code path was originally a workaround for lack of variadics.

I'm currently debugging an IR pass that eliminates variadic calls in the hope 
of using that all the time on amdgpu. I think it could be adapted to patch 
these calls on the fly for nvptx as well if we added it to the openmp codegen 
pipeline, need to see whether the function pointer interacts well with the 
recent specialisation pass.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102107/new/

https://reviews.llvm.org/D102107

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to