-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: merged file and group ir snapshots
- Loading branch information
1 parent
b61498b
commit 44a6766
Showing
68 changed files
with
527 additions
and
548 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
7 changes: 0 additions & 7 deletions
7
crates/mun_codegen/src/snapshots/test__binary_expressions_group_ir.snap
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
crates/mun_codegen/src/snapshots/test__conditional_return_expr_group_ir.snap
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
crates/mun_codegen/src/snapshots/test__equality_operands_group_ir.snap
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
--- | ||
source: crates/mun_codegen/src/test.rs | ||
expression: "extern fn add(a:int, b:int) -> int;\nfn main() {\n add(3,4);\n}" | ||
--- | ||
; == FILE IR ===================================== | ||
; ModuleID = 'main.mun' | ||
source_filename = "main.mun" | ||
|
||
%DispatchTable = type { i64 (i64, i64)* } | ||
%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } | ||
|
||
@dispatchTable = external global %DispatchTable | ||
@global_type_table = external global [1 x %struct.MunTypeInfo addrspace(4)*] | ||
|
||
define void @main() { | ||
body: | ||
%add_ptr = load i64 (i64, i64)*, i64 (i64, i64)** getelementptr inbounds (%DispatchTable, %DispatchTable* @dispatchTable, i32 0, i32 0) | ||
%add = call i64 %add_ptr(i64 3, i64 4) | ||
ret void | ||
} | ||
|
||
|
||
; == GROUP IR ==================================== | ||
; ModuleID = 'group_name' | ||
source_filename = "group_name" | ||
|
||
%struct.MunTypeInfo = type { [16 x i8], i8 addrspace(4)*, i32, i8, i8 } | ||
%DispatchTable = type { i64 (i64, i64)* } | ||
|
||
@"type_info::<core::i64>::name" = private unnamed_addr constant [10 x i8] c"core::i64\00" | ||
@"type_info::<core::i64>" = private unnamed_addr constant %struct.MunTypeInfo { [16 x i8] c"G\13;t\97j8\18\D7M\83`\1D\C8\19%", [10 x i8]* @"type_info::<core::i64>::name", i32 64, i8 8, i8 0 } | ||
@global_type_table = global [1 x %struct.MunTypeInfo addrspace(4)*] [%struct.MunTypeInfo addrspace(4)* @"type_info::<core::i64>"] | ||
@dispatchTable = global %DispatchTable zeroinitializer | ||
|
20 changes: 0 additions & 20 deletions
20
crates/mun_codegen/src/snapshots/test__extern_fn_file_ir.snap
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
crates/mun_codegen/src/snapshots/test__extern_fn_group_ir.snap
This file was deleted.
Oops, something went wrong.
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
13 changes: 0 additions & 13 deletions
13
crates/mun_codegen/src/snapshots/test__fibonacci_group_ir.snap
This file was deleted.
Oops, something went wrong.
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
7 changes: 0 additions & 7 deletions
7
crates/mun_codegen/src/snapshots/test__fibonacci_loop_group_ir.snap
This file was deleted.
Oops, something went wrong.
40 changes: 39 additions & 1 deletion
40
...snapshots/test__field_crash_group_ir.snap → ...egen/src/snapshots/test__field_crash.snap
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
39 changes: 0 additions & 39 deletions
39
crates/mun_codegen/src/snapshots/test__field_crash_file_ir.snap
This file was deleted.
Oops, something went wrong.
58 changes: 57 additions & 1 deletion
58
.../snapshots/test__field_expr_group_ir.snap → ...degen/src/snapshots/test__field_expr.snap
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
Oops, something went wrong.