We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6b2f48 commit ee61083Copy full SHA for ee61083
crates/stdarch-gen-loongarch/src/main.rs
@@ -280,7 +280,7 @@ fn gen_bind_body(
280
let fn_output = if out_t.to_lowercase() == "void" {
281
String::new()
282
} else {
283
- format!("-> {}", type_to_rst(out_t, is_store))
+ format!(" -> {}", type_to_rst(out_t, is_store))
284
};
285
let fn_inputs = match para_num {
286
1 => format!("(a: {})", type_to_rst(in_t[0], is_store)),
@@ -304,7 +304,7 @@ fn gen_bind_body(
304
),
305
_ => panic!("unsupported parameter number"),
306
307
- format!("fn __{current_name}{fn_inputs} {fn_output};")
+ format!("fn __{current_name}{fn_inputs}{fn_output};")
308
309
let function = format!(
310
r#" #[link_name = "llvm.loongarch.{}"]
0 commit comments