Skip to content

Commit

Permalink
cranelift: Add TestFileCompiler to runtests
Browse files Browse the repository at this point in the history
TestFileCompiler allows us to compile the entire file once, and then call the trampolines for each test.

The previous code was compiling the function for each invocation of a test.
  • Loading branch information
afonso360 committed Aug 9, 2022
1 parent af67567 commit 7c02c28
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 170 deletions.
2 changes: 1 addition & 1 deletion cranelift/codegen/src/ir/extname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const TESTCASE_NAME_LENGTH: usize = 16;
/// External names can also serve as a primitive testing and debugging tool.
/// In particular, many `.clif` test files use function names to identify
/// functions.
#[derive(Debug, Clone, PartialEq, Eq)]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "enable-serde", derive(Serialize, Deserialize))]
pub enum ExternalName {
/// A name in a user-defined symbol table. Cranelift does not interpret
Expand Down
Loading

0 comments on commit 7c02c28

Please sign in to comment.