Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deprecate useless runtime ty api #644

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.1
0.5.2
Binary file modified kclvm/runtime/src/_kclvm.bc
Binary file not shown.
36 changes: 0 additions & 36 deletions kclvm/runtime/src/_kclvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -490,42 +490,6 @@ void kclvm_testing_arguments(kclvm_context_t* _ctx, kclvm_value_ref_t* _args, kc

void kclvm_testing_setting_file(kclvm_context_t* _ctx, kclvm_value_ref_t* _args, kclvm_value_ref_t* _kwargs);

kclvm_bool_t kclvm_type_BoolLit_value(kclvm_type_t* p);

double kclvm_type_FloatLit_value(kclvm_type_t* p);

int64_t kclvm_type_IntLit_value(kclvm_type_t* p);

kclvm_char_t* kclvm_type_StrLit_value(kclvm_type_t* p);

kclvm_size_t kclvm_type_arg_num(kclvm_type_t* p);

kclvm_type_t* kclvm_type_arg_type(kclvm_type_t* p, kclvm_size_t i);

void kclvm_type_delete(kclvm_type_t* p);

kclvm_type_t* kclvm_type_elem_type(kclvm_type_t* p);

kclvm_type_t* kclvm_type_key_type(kclvm_type_t* p);

kclvm_kind_t kclvm_type_kind(kclvm_type_t* p);

kclvm_type_t* kclvm_type_return_type(kclvm_type_t* p);

kclvm_char_t* kclvm_type_schema_field_name(kclvm_type_t* p, kclvm_size_t i);

kclvm_size_t kclvm_type_schema_field_num(kclvm_type_t* p);

kclvm_type_t* kclvm_type_schema_field_type(kclvm_type_t* p, kclvm_size_t i);

kclvm_char_t* kclvm_type_schema_name(kclvm_type_t* p);

kclvm_char_t* kclvm_type_schema_parent_name(kclvm_type_t* p);

kclvm_bool_t kclvm_type_schema_relaxed(kclvm_type_t* p);

kclvm_kind_t kclvm_type_str(kclvm_type_t* p);

kclvm_value_ref_t* kclvm_units_to_G(kclvm_context_t* ctx, kclvm_value_ref_t* args, kclvm_value_ref_t* kwargs);

kclvm_value_ref_t* kclvm_units_to_Gi(kclvm_context_t* ctx, kclvm_value_ref_t* args, kclvm_value_ref_t* kwargs);
Expand Down
36 changes: 0 additions & 36 deletions kclvm/runtime/src/_kclvm.ll
Original file line number Diff line number Diff line change
Expand Up @@ -438,42 +438,6 @@ declare void @kclvm_testing_arguments(%kclvm_context_t* %_ctx, %kclvm_value_ref_

declare void @kclvm_testing_setting_file(%kclvm_context_t* %_ctx, %kclvm_value_ref_t* %_args, %kclvm_value_ref_t* %_kwargs);

declare %kclvm_bool_t @kclvm_type_BoolLit_value(%kclvm_type_t* %p);

declare double @kclvm_type_FloatLit_value(%kclvm_type_t* %p);

declare i64 @kclvm_type_IntLit_value(%kclvm_type_t* %p);

declare %kclvm_char_t* @kclvm_type_StrLit_value(%kclvm_type_t* %p);

declare %kclvm_size_t @kclvm_type_arg_num(%kclvm_type_t* %p);

declare %kclvm_type_t* @kclvm_type_arg_type(%kclvm_type_t* %p, %kclvm_size_t %i);

declare void @kclvm_type_delete(%kclvm_type_t* %p);

declare %kclvm_type_t* @kclvm_type_elem_type(%kclvm_type_t* %p);

declare %kclvm_type_t* @kclvm_type_key_type(%kclvm_type_t* %p);

declare %kclvm_kind_t @kclvm_type_kind(%kclvm_type_t* %p);

declare %kclvm_type_t* @kclvm_type_return_type(%kclvm_type_t* %p);

declare %kclvm_char_t* @kclvm_type_schema_field_name(%kclvm_type_t* %p, %kclvm_size_t %i);

declare %kclvm_size_t @kclvm_type_schema_field_num(%kclvm_type_t* %p);

declare %kclvm_type_t* @kclvm_type_schema_field_type(%kclvm_type_t* %p, %kclvm_size_t %i);

declare %kclvm_char_t* @kclvm_type_schema_name(%kclvm_type_t* %p);

declare %kclvm_char_t* @kclvm_type_schema_parent_name(%kclvm_type_t* %p);

declare %kclvm_bool_t @kclvm_type_schema_relaxed(%kclvm_type_t* %p);

declare %kclvm_kind_t @kclvm_type_str(%kclvm_type_t* %p);

declare %kclvm_value_ref_t* @kclvm_units_to_G(%kclvm_context_t* %ctx, %kclvm_value_ref_t* %args, %kclvm_value_ref_t* %kwargs);

declare %kclvm_value_ref_t* @kclvm_units_to_Gi(%kclvm_context_t* %ctx, %kclvm_value_ref_t* %args, %kclvm_value_ref_t* %kwargs);
Expand Down
18 changes: 0 additions & 18 deletions kclvm/runtime/src/_kclvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,6 @@ pub enum ApiFunc {
kclvm_strlen,
kclvm_testing_arguments,
kclvm_testing_setting_file,
kclvm_type_BoolLit_value,
kclvm_type_FloatLit_value,
kclvm_type_IntLit_value,
kclvm_type_StrLit_value,
kclvm_type_arg_num,
kclvm_type_arg_type,
kclvm_type_delete,
kclvm_type_elem_type,
kclvm_type_key_type,
kclvm_type_kind,
kclvm_type_return_type,
kclvm_type_schema_field_name,
kclvm_type_schema_field_num,
kclvm_type_schema_field_type,
kclvm_type_schema_name,
kclvm_type_schema_parent_name,
kclvm_type_schema_relaxed,
kclvm_type_str,
kclvm_units_to_G,
kclvm_units_to_Gi,
kclvm_units_to_K,
Expand Down
18 changes: 0 additions & 18 deletions kclvm/runtime/src/_kclvm_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,24 +248,6 @@ pub fn _kclvm_get_fn_ptr_by_name(name: &str) -> u64 {
"kclvm_strlen" => crate::kclvm_strlen as *const () as u64,
"kclvm_testing_arguments" => crate::kclvm_testing_arguments as *const () as u64,
"kclvm_testing_setting_file" => crate::kclvm_testing_setting_file as *const () as u64,
"kclvm_type_BoolLit_value" => crate::kclvm_type_BoolLit_value as *const () as u64,
"kclvm_type_FloatLit_value" => crate::kclvm_type_FloatLit_value as *const () as u64,
"kclvm_type_IntLit_value" => crate::kclvm_type_IntLit_value as *const () as u64,
"kclvm_type_StrLit_value" => crate::kclvm_type_StrLit_value as *const () as u64,
"kclvm_type_arg_num" => crate::kclvm_type_arg_num as *const () as u64,
"kclvm_type_arg_type" => crate::kclvm_type_arg_type as *const () as u64,
"kclvm_type_delete" => crate::kclvm_type_delete as *const () as u64,
"kclvm_type_elem_type" => crate::kclvm_type_elem_type as *const () as u64,
"kclvm_type_key_type" => crate::kclvm_type_key_type as *const () as u64,
"kclvm_type_kind" => crate::kclvm_type_kind as *const () as u64,
"kclvm_type_return_type" => crate::kclvm_type_return_type as *const () as u64,
"kclvm_type_schema_field_name" => crate::kclvm_type_schema_field_name as *const () as u64,
"kclvm_type_schema_field_num" => crate::kclvm_type_schema_field_num as *const () as u64,
"kclvm_type_schema_field_type" => crate::kclvm_type_schema_field_type as *const () as u64,
"kclvm_type_schema_name" => crate::kclvm_type_schema_name as *const () as u64,
"kclvm_type_schema_parent_name" => crate::kclvm_type_schema_parent_name as *const () as u64,
"kclvm_type_schema_relaxed" => crate::kclvm_type_schema_relaxed as *const () as u64,
"kclvm_type_str" => crate::kclvm_type_str as *const () as u64,
"kclvm_units_to_G" => crate::kclvm_units_to_G as *const () as u64,
"kclvm_units_to_Gi" => crate::kclvm_units_to_Gi as *const () as u64,
"kclvm_units_to_K" => crate::kclvm_units_to_K as *const () as u64,
Expand Down
72 changes: 0 additions & 72 deletions kclvm/runtime/src/_kclvm_api_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,78 +130,6 @@
// api-spec(c): kclvm_bool_t kclvm_context_pkgpath_is_imported(kclvm_char_t* pkgpath);
// api-spec(llvm): declare %kclvm_bool_t @kclvm_context_pkgpath_is_imported(%kclvm_char_t* %pkgpath);

// api-spec: kclvm_type_delete
// api-spec(c): void kclvm_type_delete(kclvm_type_t* p);
// api-spec(llvm): declare void @kclvm_type_delete(%kclvm_type_t* %p);

// api-spec: kclvm_type_kind
// api-spec(c): kclvm_kind_t kclvm_type_kind(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_kind_t @kclvm_type_kind(%kclvm_type_t* %p);

// api-spec: kclvm_type_str
// api-spec(c): kclvm_kind_t kclvm_type_str(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_kind_t @kclvm_type_str(%kclvm_type_t* %p);

// api-spec: kclvm_type_BoolLit_value
// api-spec(c): kclvm_bool_t kclvm_type_BoolLit_value(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_bool_t @kclvm_type_BoolLit_value(%kclvm_type_t* %p);

// api-spec: kclvm_type_IntLit_value
// api-spec(c): int64_t kclvm_type_IntLit_value(kclvm_type_t* p);
// api-spec(llvm): declare i64 @kclvm_type_IntLit_value(%kclvm_type_t* %p);

// api-spec: kclvm_type_FloatLit_value
// api-spec(c): double kclvm_type_FloatLit_value(kclvm_type_t* p);
// api-spec(llvm): declare double @kclvm_type_FloatLit_value(%kclvm_type_t* %p);

// api-spec: kclvm_type_StrLit_value
// api-spec(c): kclvm_char_t* kclvm_type_StrLit_value(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_char_t* @kclvm_type_StrLit_value(%kclvm_type_t* %p);

// api-spec: kclvm_type_key_type
// api-spec(c): kclvm_type_t* kclvm_type_key_type(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_type_t* @kclvm_type_key_type(%kclvm_type_t* %p);

// api-spec: kclvm_type_elem_type
// api-spec(c): kclvm_type_t* kclvm_type_elem_type(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_type_t* @kclvm_type_elem_type(%kclvm_type_t* %p);

// api-spec: kclvm_type_schema_name
// api-spec(c): kclvm_char_t* kclvm_type_schema_name(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_char_t* @kclvm_type_schema_name(%kclvm_type_t* %p);

// api-spec: kclvm_type_schema_parent_name
// api-spec(c): kclvm_char_t* kclvm_type_schema_parent_name(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_char_t* @kclvm_type_schema_parent_name(%kclvm_type_t* %p);

// api-spec: kclvm_type_schema_relaxed
// api-spec(c): kclvm_bool_t kclvm_type_schema_relaxed(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_bool_t @kclvm_type_schema_relaxed(%kclvm_type_t* %p);

// api-spec: kclvm_type_schema_field_num
// api-spec(c): kclvm_size_t kclvm_type_schema_field_num(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_size_t @kclvm_type_schema_field_num(%kclvm_type_t* %p);

// api-spec: kclvm_type_schema_field_name
// api-spec(c): kclvm_char_t* kclvm_type_schema_field_name(kclvm_type_t* p, kclvm_size_t i);
// api-spec(llvm): declare %kclvm_char_t* @kclvm_type_schema_field_name(%kclvm_type_t* %p, %kclvm_size_t %i);

// api-spec: kclvm_type_schema_field_type
// api-spec(c): kclvm_type_t* kclvm_type_schema_field_type(kclvm_type_t* p, kclvm_size_t i);
// api-spec(llvm): declare %kclvm_type_t* @kclvm_type_schema_field_type(%kclvm_type_t* %p, %kclvm_size_t %i);

// api-spec: kclvm_type_arg_num
// api-spec(c): kclvm_size_t kclvm_type_arg_num(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_size_t @kclvm_type_arg_num(%kclvm_type_t* %p);

// api-spec: kclvm_type_arg_type
// api-spec(c): kclvm_type_t* kclvm_type_arg_type(kclvm_type_t* p, kclvm_size_t i);
// api-spec(llvm): declare %kclvm_type_t* @kclvm_type_arg_type(%kclvm_type_t* %p, %kclvm_size_t %i);

// api-spec: kclvm_type_return_type
// api-spec(c): kclvm_type_t* kclvm_type_return_type(kclvm_type_t* p);
// api-spec(llvm): declare %kclvm_type_t* @kclvm_type_return_type(%kclvm_type_t* %p);

// api-spec: kclvm_context_set_import_names
// api-spec(c): void kclvm_context_set_import_names(kclvm_context_t* p, kclvm_value_ref_t* import_names);
// api-spec(llvm): declare void @kclvm_context_set_import_names(%kclvm_context_t* %p, %kclvm_value_ref_t* %import_names);
Expand Down
Loading
Loading