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

Clean up various naming aspects of codegen #50638

Merged
merged 5 commits into from
Jul 26, 2023
Merged

Clean up various naming aspects of codegen #50638

merged 5 commits into from
Jul 26, 2023

Conversation

pchintalapudi
Copy link
Member

@pchintalapudi pchintalapudi commented Jul 22, 2023

Most of the changes are changing from const std::string & to const Twine &, which lets us be lazier about computing string values efficiently. We also make the plt function private linkage since it's only referred to by the plt global.

Depends on #50632 (potentially, I haven't checked if there are actual conflicts)

@pchintalapudi pchintalapudi added compiler:codegen Generation of LLVM IR and native code compiler:llvm For issues that relate to LLVM labels Jul 22, 2023
@pchintalapudi pchintalapudi marked this pull request as draft July 22, 2023 18:29
@gbaraldi
Copy link
Member

gbaraldi commented Jul 23, 2023

It seems we are double printing a symbol somewhere ijl_new_structvijl_new_structt

@pchintalapudi
Copy link
Member Author

Turns out the strings were null-terminated, which caused the weird errors from before.

src/cgutils.cpp Outdated Show resolved Hide resolved
src/codegen.cpp Outdated Show resolved Hide resolved
src/cgutils.cpp Outdated Show resolved Hide resolved
@pchintalapudi pchintalapudi marked this pull request as ready for review July 24, 2023 18:02
Base automatically changed from pc/jit-literals to master July 25, 2023 19:54
@pchintalapudi pchintalapudi added the merge me PR is reviewed. Merge when all tests are passing label Jul 26, 2023
@pchintalapudi pchintalapudi merged commit 8c3452f into master Jul 26, 2023
@pchintalapudi pchintalapudi deleted the pc/cleanups2 branch July 26, 2023 13:32
@pchintalapudi pchintalapudi removed the merge me PR is reviewed. Merge when all tests are passing label Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code compiler:llvm For issues that relate to LLVM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants