[PATCH] D80222: Replace Clang's createRuntimeFunction with the definitions in OMPKinds.def
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 28 10:23:59 PDT 2020
jhuber6 marked an inline comment as done.
jhuber6 added a comment.
Yes, this passed all the tests on my machine at least.
================
Comment at: llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp:124
+ return {FnTy, Fn};
+ }
}
----------------
jdoerfert wrote:
> Are you sure we need to do the cast here? I thought clang will create it when it creates calls based of FunctionCallee objects. That was, to my understanding, the idea of the FunctionCallee thing. We might be able to just return {FnTy, Fn} here. If not we could always cast and return, as you noted a function *. Internally, only the expected type makes any sense, everything else will not be handled gracefully.
I tried it without and the same problem occured. The old method used `CGM.createRuntimeFunction` which internally has a cast like this one.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80222/new/
https://reviews.llvm.org/D80222
More information about the cfe-commits
mailing list