[PATCH] D71241: [OpenMP][WIP] Use overload centric declare variants
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 16:07:57 PST 2019
ABataev added a comment.
In D71241#1782700 <https://reviews.llvm.org/D71241#1782700>, @hfinkel wrote:
> In D71241#1782668 <https://reviews.llvm.org/D71241#1782668>, @ABataev wrote:
>
> >
>
>
> ...
>
> >> While we talk a lot about what you think is bad about this solution it seems we ignore the problems in the current one. Let me summarize a few:
> >>
> >> - Take https://godbolt.org/z/XCjQUA where the wrong function is called in the target region (because the "hack" to inject code in the wrong definition is not applicable).
> >
> > No time for it, just short answers. No definition for the variant - no definition for the base.
>
> Are the variants not permitted to be external functions?
Allowed, of course. But the alias/body will be emitted only if variant function is defined. Everyhing else is going to be resolved by the linker.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71241/new/
https://reviews.llvm.org/D71241
More information about the cfe-commits
mailing list