-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make some tweaks to compile
compiler_builtins
(#139)
The final of the Rust core libraries is the library of compiler builtins, which needs to be compiled as it is depended upon by both `core` and `alloc`. In order to get this compiling, a raft of small changes have been made. These are: - Adds the apparently-required `half` and `fp128` type support throughout the codebase. - Fixes a parsing bug in the `integer` parser that omitted certain valid negative integer numbers. - Fixes a bug in the float parsing logic for LLVM types.
- Loading branch information
1 parent
83909f2
commit 9396eb6
Showing
11 changed files
with
95 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! Tests compilation of `compiler_builtins.ll` the Rust core library. | ||
mod common; | ||
|
||
#[test] | ||
fn compiles_compiler_builtins() -> miette::Result<()> { | ||
// We start by constructing and running the compiler | ||
common::set_miette_reporting()?; | ||
|
||
let compiler = common::default_compiler_from_path("input/compilation/compiler_builtins.ll")?; | ||
let flo = compiler.run()?; | ||
|
||
// There should be 1408 functions in the context. | ||
assert_eq!(common::count_functions(&flo, false), 1408); | ||
|
||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters