[llvm-dev] [RFC] Generate Debug Information for Labels in Function
Reid Kleckner via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 30 14:38:28 PDT 2018
On Fri, Mar 30, 2018 at 9:39 AM Adrian Prantl <aprantl at apple.com> wrote:
> I'm really sorry for not realizing this yesterday, but the problems
> pertaining to inlining made me realize that your original design with the
> dbg.label intrinsic might actually be a better approach especially when
> considering optimized code. We will get inlining support for free because
> it is just another instruction and it can deal with more than one label at
> the same address. It looks a bit more complicated in unoptimized code, but
> that seems like a small price to pay.
> We just need to make sure that the backend doesn't get confused when loop
> unrolling duplicates a dbg.label but that should be doable.
+10, it should be an intrinsic.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev