Attach debugging information to instructions in LLVM IR
Closed this issue · 4 comments
Motivation
This new feature is to provide metadata information about mapping source code to LLVM IR for debuggers and analyzers to consume. They use the information to detect necessary bugs and improve the code quality if any.
References
@taquangtrung
The original LLVM bindings does not have support for DIBuilder
and other necessary functionality of attaching debug metadata. We'll have to extend the implementation on our own.
The current support including the functionality extended previously, is curated in https://github.com/sbip-sg/llvm-node/blob/master/llvm-node.d.ts
Thanks @lung21! It looks like we'll have to implement that feature.
Here is the similar bindings built for OCaml: https://reviews.llvm.org/rG506df1bbfd16233134a6ddea96ed2d49077840fd
(There is a lot of code written for these OCaml bindings)
Can you investigate if we can develop similar bindings for Typescript?
@taquangtrung No problem 👍🏼
Since I have the previous experience implementing more bindings to https://github.com/sbip-sg/llvm-node, the debug-related support can be added as well. But only the functionality we need will be developed on a rolling basis for now.
Implemented, under test