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

Separate Compilation Tests #11

Open
kavon opened this issue Sep 11, 2019 · 0 comments
Open

Separate Compilation Tests #11

kavon opened this issue Sep 11, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@kavon
Copy link
Member

kavon commented Sep 11, 2019

Should at least test the following situations

  1. Standard separate compilation with -fhalo enabled for the object files / static libs and during linking to create the executable. It would be great if clang merges the bitcode in those object files into one module in the final executable.

  2. A shared library compiled with -fhalo and an executable (also -fhalo) that uses it. In theory we should be able to access the bitcode in that module (by getting the patch from the proc map and loading the object file) to perform cross-library optimization.

  3. A test case to cause a name clash during linking of two object files who originally did not export a certain global with identical names, but because of HaloPrepare's naive globalization of those symbols, breaks linking. This would motivate work on creating new aliases for these globals during HaloPrepare.

These would make great regression tests.

@kavon kavon added the enhancement New feature or request label Sep 11, 2019
@kavon kavon self-assigned this Sep 11, 2019
@kavon kavon removed their assignment Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant