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

Add getting strings from string constants #49

Closed
wants to merge 2 commits into from

Conversation

rj45
Copy link
Contributor

@rj45 rj45 commented Aug 16, 2023

I could not see any way to retrieve the value of a string constant.

I am currently attempting to make an LLVM backend in Go. It's a bit ambitious, we'll see how far I get. I suspect I will need a few more methods added to the Go bindings. I am not sure if you prefer one large PR or several small ones, please let me know.

Thanks for your time, it's much appreciated :-)

@rj45
Copy link
Contributor Author

rj45 commented Aug 25, 2023

Closing this PR as it's on master, and I added another commit... If this PR is wanted, I can open a new one. Let me know.

@rj45 rj45 closed this Aug 25, 2023
@aykevl
Copy link
Member

aykevl commented Aug 29, 2023

Looks interesting!

I am currently attempting to make an LLVM backend in Go. It's a bit ambitious, we'll see how far I get.

Oof, that's going to be difficult! While the LLVM backends are certainly not easy to work on (a lot harder than frontends), they know a ton of little details about intrinsics, special ways to legalize operations, and generally make it much more feasible to write a LLVM backend. Oh, and of course all the knowledge about binary formats like ELF and DWARF.
Not trying to prevent you, just telling you it might be more difficult than you'd expect.

I am not sure if you prefer one large PR or several small ones, please let me know.

Smaller PRs, unless the commits really depend on each other (which is usually not the case for LLVM bindings).

@rj45
Copy link
Contributor Author

rj45 commented Sep 2, 2023

I am currently attempting to make an LLVM backend in Go. It's a bit ambitious, we'll see how far I get.

Oof, that's going to be difficult!

Yeah I know. If I knew C++ it would be a no brainer to write it inside LLVM. But well, I haven't done C++ in two decades at this point. Besides, I really enjoy Go. Having a longer term project has been very enjoyable.

Anyway, I will try to get this in a different branch and resubmit it in the next few days here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants