[PATCH] D70172: [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 12:27:08 PST 2020


yaxunl added a comment.

Also, we cannot remove traversing of RecordDecl and CapturedDecl encountered in function body since we have OpenMP test like this:

  int main() {
  #pragma omp target
    {
      t1(0);
    }
    return 0;
  }

This results in a kernel function embedded in a captured record decl in AST. We have to drill into the record decl to get the kernel and the function called by it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70172





More information about the cfe-commits mailing list