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

refactor(codegen): emit and link bitcode files instead of object files #258

Merged
merged 1 commit into from
Aug 28, 2020

Conversation

baszalmstra
Copy link
Collaborator

Instead of emitting object files the compiler emits LLVM bitcode files. This enables LLD to understand the whole program which enables future further optimizations like LTO.

@baszalmstra baszalmstra added the type: refactor Refactor existing code label Aug 23, 2020
@baszalmstra baszalmstra added this to the Mun v0.3.0 milestone Aug 23, 2020
@baszalmstra baszalmstra marked this pull request as ready for review August 23, 2020 12:42
@baszalmstra baszalmstra requested a review from Wodann August 23, 2020 12:42
@codecov
Copy link

codecov bot commented Aug 23, 2020

Codecov Report

Merging #258 into master will decrease coverage by 0.14%.
The diff coverage is 82.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #258      +/-   ##
==========================================
- Coverage   78.63%   78.49%   -0.15%     
==========================================
  Files         212      215       +3     
  Lines       12681    12705      +24     
==========================================
+ Hits         9972     9973       +1     
- Misses       2709     2732      +23     
Impacted Files Coverage Δ
crates/mun_codegen/src/code_gen.rs 100.00% <ø> (+12.50%) ⬆️
crates/mun_codegen/src/ir/types/test.rs 0.00% <0.00%> (ø)
crates/mun_codegen/src/linker.rs 22.35% <ø> (ø)
crates/mun_codegen/src/value/float_value.rs 0.00% <0.00%> (ø)
crates/mun_codegen_macros/src/lib.rs 0.00% <0.00%> (ø)
crates/mun_compiler/src/driver.rs 59.64% <ø> (ø)
crates/mun_runtime/tests/runtime.rs 100.00% <ø> (ø)
crates/mun_target/src/spec.rs 80.00% <ø> (ø)
crates/mun_target/src/spec/windows_msvc_base.rs 100.00% <ø> (ø)
crates/mun_codegen/src/value/string.rs 21.42% <25.00%> (ø)
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7147826...0736239. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Refactor existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants