Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing debugging code in IR generation for LLVM #52

Open
lerno opened this issue Nov 3, 2018 · 1 comment
Open

Missing debugging code in IR generation for LLVM #52

lerno opened this issue Nov 3, 2018 · 1 comment
Milestone

Comments

@lerno
Copy link
Collaborator

lerno commented Nov 3, 2018

Clang emits various debugging pointers which helps debugging the code. Since the code generation is already based on Clang, we should probably add this to C2's code generation as well.

Following Clang closer in the code gen will also help in quickly getting solid IR out. (Unless we get som contributor who is an LLVM expert)

@bvdberg
Copy link
Member

bvdberg commented Nov 8, 2018

Yes. I have looked at IR code itself, but very little at how Clang actually emits that. The reason is that for the language the back-end (C/IR-generation) is actually the least interesting. I wanted to focus on the actual language design first. And the C back-end was a lot easier to write and also allowing testing.

Another reason was that the interfaces tended to change with LLVM versions, so even keeping the 'hello world' example running took effort. I think those interfaces have stabilized, since I haven't had any issues porting to a new LLVM lately.

@bvdberg bvdberg added this to the 3 milestone Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants