forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sui-framework: Solana Move compiles dynamic-object-field (#76)
071124-sui-framework-dynamic-object-field-tests: ini
- Loading branch information
Showing
33 changed files
with
21,669 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
...piler/tests/sui-framework-tests/dynamic-object-field-tests-build/0x1__address.ll.expected
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,36 @@ | ||
; ModuleID = '0x1__address' | ||
source_filename = "../../../../../../crates/sui-framework/packages/move-stdlib/sources/address.move" | ||
target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128" | ||
target triple = "sbf-solana-solana" | ||
|
||
%__move_rt_type = type { { ptr, i64 }, i64, ptr } | ||
|
||
@__move_rttydesc_signer = private unnamed_addr constant %__move_rt_type { { ptr, i64 } { ptr @__move_rttydesc_signer_name, i64 6 }, i64 9, ptr @__move_rttydesc_NOTHING_info } | ||
@__move_rttydesc_signer_name = private unnamed_addr constant [6 x i8] c"signer" | ||
@__move_rttydesc_NOTHING_info = private unnamed_addr constant i8 -1 | ||
|
||
declare i32 @memcmp(ptr, ptr, i64) | ||
|
||
define void @"0000000000000001_address_unit_test_poiso_2F27Z5dFXYpcdW"() { | ||
entry: | ||
%local_0 = alloca i64, align 8 | ||
%local_1 = alloca { ptr, i64, i64 }, align 8 | ||
store i64 0, ptr %local_0, align 8 | ||
%loaded_alloca = load i64, ptr %local_0, align 8 | ||
%retval = call { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64 %loaded_alloca) | ||
store { ptr, i64, i64 } %retval, ptr %local_1, align 8 | ||
call void @move_rt_vec_destroy(ptr @__move_rttydesc_signer, ptr %local_1) | ||
ret void | ||
} | ||
|
||
declare { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64) | ||
|
||
define i64 @"0000000000000001_address_length_BCf655p6LX13Y5"() { | ||
entry: | ||
%local_0 = alloca i64, align 8 | ||
store i64 32, ptr %local_0, align 8 | ||
%retval = load i64, ptr %local_0, align 8 | ||
ret i64 %retval | ||
} | ||
|
||
declare void @move_rt_vec_destroy(ptr nonnull readonly dereferenceable(32), ptr) |
684 changes: 684 additions & 0 deletions
684
...ompiler/tests/sui-framework-tests/dynamic-object-field-tests-build/0x1__ascii.ll.expected
Large diffs are not rendered by default.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
...-compiler/tests/sui-framework-tests/dynamic-object-field-tests-build/0x1__bcs.ll.expected
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,30 @@ | ||
; ModuleID = '0x1__bcs' | ||
source_filename = "../../../../../../crates/sui-framework/packages/move-stdlib/sources/bcs.move" | ||
target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128" | ||
target triple = "sbf-solana-solana" | ||
|
||
%__move_rt_type = type { { ptr, i64 }, i64, ptr } | ||
|
||
@__move_rttydesc_signer = private unnamed_addr constant %__move_rt_type { { ptr, i64 } { ptr @__move_rttydesc_signer_name, i64 6 }, i64 9, ptr @__move_rttydesc_NOTHING_info } | ||
@__move_rttydesc_signer_name = private unnamed_addr constant [6 x i8] c"signer" | ||
@__move_rttydesc_NOTHING_info = private unnamed_addr constant i8 -1 | ||
|
||
declare i32 @memcmp(ptr, ptr, i64) | ||
|
||
define void @"0000000000000001_bcs_unit_test_poiso_4EamySTKbGf1At"() { | ||
entry: | ||
%local_0 = alloca i64, align 8 | ||
%local_1 = alloca { ptr, i64, i64 }, align 8 | ||
store i64 0, ptr %local_0, align 8 | ||
%loaded_alloca = load i64, ptr %local_0, align 8 | ||
%retval = call { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64 %loaded_alloca) | ||
store { ptr, i64, i64 } %retval, ptr %local_1, align 8 | ||
call void @move_rt_vec_destroy(ptr @__move_rttydesc_signer, ptr %local_1) | ||
ret void | ||
} | ||
|
||
declare { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64) | ||
|
||
declare { ptr, i64, i64 } @move_native_bcs_to_bytes(ptr, ptr) | ||
|
||
declare void @move_rt_vec_destroy(ptr nonnull readonly dereferenceable(32), ptr) |
28 changes: 28 additions & 0 deletions
28
...mpiler/tests/sui-framework-tests/dynamic-object-field-tests-build/0x1__option.ll.expected
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,28 @@ | ||
; ModuleID = '0x1__option' | ||
source_filename = "../../../../../../crates/sui-framework/packages/move-stdlib/sources/option.move" | ||
target datalayout = "e-m:e-p:64:64-i64:64-n32:64-S128" | ||
target triple = "sbf-solana-solana" | ||
|
||
%__move_rt_type = type { { ptr, i64 }, i64, ptr } | ||
|
||
@__move_rttydesc_signer = private unnamed_addr constant %__move_rt_type { { ptr, i64 } { ptr @__move_rttydesc_signer_name, i64 6 }, i64 9, ptr @__move_rttydesc_NOTHING_info } | ||
@__move_rttydesc_signer_name = private unnamed_addr constant [6 x i8] c"signer" | ||
@__move_rttydesc_NOTHING_info = private unnamed_addr constant i8 -1 | ||
|
||
declare i32 @memcmp(ptr, ptr, i64) | ||
|
||
define void @"0000000000000001_option_unit_test_poiso_EP3nukEuKMz1wh"() { | ||
entry: | ||
%local_0 = alloca i64, align 8 | ||
%local_1 = alloca { ptr, i64, i64 }, align 8 | ||
store i64 0, ptr %local_0, align 8 | ||
%loaded_alloca = load i64, ptr %local_0, align 8 | ||
%retval = call { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64 %loaded_alloca) | ||
store { ptr, i64, i64 } %retval, ptr %local_1, align 8 | ||
call void @move_rt_vec_destroy(ptr @__move_rttydesc_signer, ptr %local_1) | ||
ret void | ||
} | ||
|
||
declare { ptr, i64, i64 } @move_native_unit_test_create_signers_for_testing(i64) | ||
|
||
declare void @move_rt_vec_destroy(ptr nonnull readonly dereferenceable(32), ptr) |
Oops, something went wrong.