Skip to content

Commit

Permalink
Merge branch 'master' into software-tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel-Durov committed Feb 1, 2024
2 parents 2690d9c + 7dc01b9 commit ad233f4
Show file tree
Hide file tree
Showing 49 changed files with 798 additions and 1,445 deletions.
6 changes: 3 additions & 3 deletions hwtracer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ license = "Apache-2.0 OR MIT"

[dependencies]
libc = "0.2.148"
strum = { version = "0.25", features = ["derive"] }
strum_macros = "0.25"
strum = { version = "0.26.1", features = ["derive"] }
strum_macros = "0.26.1"
deku = "0.16.0"
ykaddr = { path = "../ykaddr" }
intervaltree = "0.2.7"
byteorder = "1.4.3"
leb128 = "0.2.5"
thiserror = "1"
memmap2 = "0.7"
memmap2 = "0.9.4"

[dependencies.object]
version = "0.32"
Expand Down
11 changes: 3 additions & 8 deletions tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ name = "c_tests"
path = "langtest_c.rs"
harness = false

[[test]]
name = "trace_compiler_tests"
path = "langtest_trace_compiler.rs"
harness = false

[[test]]
name = "ir_lowering_tests"
path = "langtest_ir_lowering.rs"
Expand All @@ -27,16 +22,16 @@ harness = false
[dependencies]
clap = { features = ["derive"], version = "4.4" }
hwtracer = { path = "../hwtracer" }
memmap2 = "0.7"
memmap2 = "0.9.4"
regex = "1.9"
tempfile = "3.8"
tempfile = "3.9.0"
ykbuild = { path = "../ykbuild" }
ykrt = { path = "../ykrt", features = ["yk_testing", "yk_jitstate_debug"] }
yktracec = { path = "../yktracec", features = ["yk_testing"] }

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
lang_tester = "0.7.6"
lang_tester = "0.8"
ykcapi = { path = "../ykcapi", features = ["yk_testing"] }
yktracec = { path = "../yktracec", features = ["yk_testing"] }
ykrt = { path = "../ykrt", features = ["yk_testing", "yk_jitstate_debug"] }
Expand Down
3 changes: 2 additions & 1 deletion tests/c/awkward_unmappable.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: Fails with: Assertion `!CallStack.curMappableFrame()' failed
// # Fails with: Assertion `!CallStack.curMappableFrame()' failed
// ignore-if: true
// Run-time:
// env-var: YKD_SERIALISE_COMPILATION=1
// status: success
Expand Down
3 changes: 2 additions & 1 deletion tests/c/call_ext_varargs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: static strings: https://github.com/ykjit/yk/issues/382
// # static strings: https://github.com/ykjit/yk/issues/382
// ignore-if: true
// Compiler:
// Run-time:
// env-var: YKD_PRINT_IR=jit-pre-opt
Expand Down
3 changes: 2 additions & 1 deletion tests/c/constexpr.c.O0
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// ignore: -O0 doesn't make a constant expression.
// # -O0 doesn't make a constant expression.
// ignore-if: true
3 changes: 2 additions & 1 deletion tests/c/indirect_branch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: guards for indirect branches not implemented.
// # guards for indirect branches not implemented.
// ignore-if: true
// Run-time:
// env-var: YKD_PRINT_IR=jit-pre-opt
// env-var: YKD_PRINT_JITSTATE=1
Expand Down
3 changes: 2 additions & 1 deletion tests/c/lifetime_intrinsics.c.O0
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// ignore: no lifetime annotations at -O0.
// # no lifetime annotations at -O0.
// ignore-if: true
3 changes: 2 additions & 1 deletion tests/c/many_threads_many_locs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: Shadow stack doesn't currently support dynamically sized stack.
// # Shadow stack doesn't currently support dynamically sized stack.
// ignore-if: true
// Run-time:
// env-var: YKD_PRINT_JITSTATE=1
// stderr:
Expand Down
3 changes: 2 additions & 1 deletion tests/c/many_threads_one_loc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: Shadow stack doesn't currently support dynamically sized stack.
// # Shadow stack doesn't currently support dynamically sized stack.
// ignore-if: true
// Run-time:
// env-var: YKD_PRINT_IR=aot
// env-var: YKD_SERIALISE_COMPILATION=1
Expand Down
3 changes: 2 additions & 1 deletion tests/c/simple_interp_loop1.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: Shadow stack doesn't currently support dynamically sized stack.
// # Shadow stack doesn't currently support dynamically sized stack.
// ignore-if: true
// Run-time:
// env-var: YKD_PRINT_IR=jit-pre-opt
// env-var: YKD_SERIALISE_COMPILATION=1
Expand Down
2 changes: 1 addition & 1 deletion tests/c/simple_nested.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ignore: dont
// ignore-if: true
// Run-time:
// env-var: YKD_PRINT_IR=jit-pre-opt
// env-var: YKD_SERIALISE_COMPILATION=1
Expand Down
3 changes: 2 additions & 1 deletion tests/c/stats2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// ignore: Shadow stack not supported on non-main threads.
// # Shadow stack not supported on non-main threads.
// ignore-if: true
// Run-time:
// env-var: YKD_SERIALISE_COMPILATION=1
// env-var: YKD_STATS=-
Expand Down
1 change: 1 addition & 0 deletions tests/langtest_c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ fn run_suite(opt: &'static str) {
let wrapper_path = ccg.wrapper_path();

LangTester::new()
.comment_prefix("#")
.test_dir("c")
.test_path_filter(filter)
.test_extract(move |p| {
Expand Down
67 changes: 0 additions & 67 deletions tests/langtest_trace_compiler.rs

This file was deleted.

49 changes: 0 additions & 49 deletions tests/src/bin/run_trace_compiler_test.rs

This file was deleted.

29 changes: 0 additions & 29 deletions tests/trace_compiler/call_ext.ll

This file was deleted.

54 changes: 0 additions & 54 deletions tests/trace_compiler/direct_recursion.ll

This file was deleted.

29 changes: 0 additions & 29 deletions tests/trace_compiler/global_immut.ll

This file was deleted.

27 changes: 0 additions & 27 deletions tests/trace_compiler/global_mut.ll

This file was deleted.

Loading

0 comments on commit ad233f4

Please sign in to comment.