ABataev added a comment.
Here is the example that does not work with the proposed solution but works
with the existing one:
static void cpu() { asm("nop"); }
#pragma omp declare variant(cpu) match(device = {kind(cpu)})
static __attribute__((used)) void wrong_asm() {
asm ("xxx");
}
The existing solution has some problems with the delayed error messages too,
but they are very easy to fix.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71241/new/
https://reviews.llvm.org/D71241
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits