[PATCH] D71241: [OpenMP][WIP] Use overload centric declare variants
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 17 08:13:10 PST 2019
ABataev added a comment.
In D71241#1787998 <https://reviews.llvm.org/D71241#1787998>, @jdoerfert wrote:
> In D71241#1787888 <https://reviews.llvm.org/D71241#1787888>, @ABataev wrote:
>
> > Hal, are we going to support something like this?
>
>
> I'm not Hal but I will answer anyway.
>
> > void cpu() { asm("nop"); }
> >
> > #pragma omp declare variant(cpu) match(device = {kind(cpu)})
> > void wrong_asm() {
> > asm ("xxx");
> > }
> >
> >
> > Currently, there is an error when we try to emit the assembler output.
>
> While it is unclear to me what you think should happen, an error pointing at `"xxx"` is to be expected without further information on how this is compiled.
Shall we emit function `wrong_asm` or not? If we're not going to use it in our program, only `cpu` must be used, `wrong_asm` is not required and must not be emitted.
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