[PATCH] D88978: [WIP] Attach debug intrinsics to allocas, and use correct address space

Scott Linder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 12 13:29:05 PDT 2020


scott.linder added a comment.

@ABataev Sorry if I'm pulling you in without enough context/work on my end, but I wanted to ask how the Clang codegen for OpenMP locals works at a high level?

Is the idea that instead of an `alloc` the frontend can insert calls into the runtime in some cases, like `__kmpc_alloc` (e.g. for `firstprivate` as in https://reviews.llvm.org/D5140)?

If that is the case, I assume there is no equivalent to SROA/Mem2Reg here? I am trying to understand conceptually where the debug info for the source level local should be tied to in the IR, and at least for locals which use `alloc` it has turned out to be much simpler to tie the variable directly to the `alloc` itself rather than bitcasts and things which obscure the relationship.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88978



More information about the cfe-commits mailing list