Skip to content

feat(cli): add option to emit IR#296

Merged
baszalmstra merged 1 commit intomun-lang:masterfrom
Wodann:feat/emit-ir
Jan 12, 2021
Merged

feat(cli): add option to emit IR#296
baszalmstra merged 1 commit intomun-lang:masterfrom
Wodann:feat/emit-ir

Conversation

@Wodann
Copy link
Collaborator

@Wodann Wodann commented Jan 12, 2021

Adds the --emit-ir CLI flag to the build subcommand, for outputting LLVM IR to *.ll files instead of generating Mun libraries.

This PR also removes the need for #[serial] tests by adding and using a path input argument for the init and new subcommands, for deterministic execution of tests - in parallel.

@Wodann Wodann added the type: feat New feature or request label Jan 12, 2021
@Wodann Wodann requested a review from baszalmstra January 12, 2021 03:03
@Wodann Wodann self-assigned this Jan 12, 2021
@codecov
Copy link

codecov bot commented Jan 12, 2021

Codecov Report

Merging #296 (44dfb04) into master (30bfe19) will increase coverage by 0.02%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
+ Coverage   79.51%   79.54%   +0.02%     
==========================================
  Files         228      228              
  Lines       13425    13480      +55     
==========================================
+ Hits        10675    10722      +47     
- Misses       2750     2758       +8     
Impacted Files Coverage Δ
crates/mun_codegen/src/code_gen.rs 100.00% <ø> (ø)
crates/mun_codegen/src/code_gen/object_file.rs 100.00% <ø> (ø)
crates/mun_compiler/src/diagnostics_snippets.rs 84.00% <ø> (ø)
crates/mun_compiler/src/driver/config.rs 100.00% <ø> (ø)
crates/mun_compiler/src/lib.rs 71.05% <ø> (ø)
crates/mun/src/ops/init.rs 90.47% <50.00%> (-9.53%) ⬇️
crates/mun_compiler/src/db.rs 47.05% <50.00%> (ø)
crates/mun_codegen/src/assembly.rs 90.24% <87.09%> (-9.76%) ⬇️
crates/mun_compiler/src/driver.rs 64.28% <88.00%> (+2.48%) ⬆️
crates/mun/src/lib.rs 88.57% <100.00%> (+0.69%) ⬆️
... and 6 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 30bfe19...44dfb04. Read the comment docs.

Copy link
Collaborator

@baszalmstra baszalmstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clean! 👍

@baszalmstra baszalmstra merged commit 388cee1 into mun-lang:master Jan 12, 2021
@Wodann Wodann deleted the feat/emit-ir branch January 13, 2021 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feat New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants