Skip to content

Commit bb089c2

Browse files
committed
Use clang-format-12 to format source file
1 parent 0c2eea1 commit bb089c2

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

core/iwasm/compilation/aot_emit_const.c

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ aot_compile_op_i32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
2323
return false;
2424
}
2525
}
26-
else
26+
else
2727
#endif
2828
{
2929
value = I32_CONST((uint32)i32_const);
@@ -54,8 +54,8 @@ aot_compile_op_i64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
5454
return false;
5555
}
5656
}
57-
else
58-
#endif
57+
else
58+
#endif
5959
{
6060
value = I64_CONST((uint64)i64_const);
6161
CHECK_LLVM_CONST(value);
@@ -74,7 +74,7 @@ aot_compile_op_f32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
7474
{
7575
LLVMValueRef alloca, value;
7676

77-
#if !defined(BUILD_TARGET_XTENSA)
77+
#if !defined(BUILD_TARGET_XTENSA)
7878
if (comp_ctx->is_indirect_mode
7979
&& aot_intrinsic_check_capability(comp_ctx, "f32.const")) {
8080
WASMValue wasm_value;
@@ -89,7 +89,7 @@ aot_compile_op_f32_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
8989
else if (!isnan(f32_const)) {
9090
#else
9191
if (!isnan(f32_const)) {
92-
#endif
92+
#endif
9393
value = F32_CONST(f32_const);
9494
CHECK_LLVM_CONST(value);
9595
PUSH_F32(value);
@@ -131,7 +131,7 @@ aot_compile_op_f64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
131131
{
132132
LLVMValueRef alloca, value;
133133

134-
#if !defined(BUILD_TARGET_XTENSA)
134+
#if !defined(BUILD_TARGET_XTENSA)
135135
if (comp_ctx->is_indirect_mode
136136
&& aot_intrinsic_check_capability(comp_ctx, "f64.const")) {
137137
WASMValue wasm_value;
@@ -146,7 +146,7 @@ aot_compile_op_f64_const(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
146146
else if (!isnan(f64_const)) {
147147
#else
148148
if (!isnan(f64_const)) {
149-
#endif
149+
#endif
150150
value = F64_CONST(f64_const);
151151
CHECK_LLVM_CONST(value);
152152
PUSH_F64(value);

core/iwasm/compilation/aot_emit_conversion.c

+13-13
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ aot_compile_op_i32_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
347347

348348
POP_F32(value);
349349

350-
#if !defined(BUILD_TARGET_XTENSA)
350+
#if !defined(BUILD_TARGET_XTENSA)
351351
if (!comp_ctx->is_indirect_mode) {
352352
#endif
353353
if (sign) {
@@ -404,9 +404,9 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
404404

405405
POP_F64(value);
406406

407-
#if !defined(BUILD_TARGET_XTENSA)
407+
#if !defined(BUILD_TARGET_XTENSA)
408408
if (!comp_ctx->is_indirect_mode) {
409-
#endif
409+
#endif
410410
if (sign) {
411411
min_value = F64_CONST(-2147483649.0);
412412
max_value = F64_CONST(2147483648.0);
@@ -415,7 +415,7 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
415415
min_value = F64_CONST(-1.0);
416416
max_value = F64_CONST(4294967296.0);
417417
}
418-
#if !defined(BUILD_TARGET_XTENSA)
418+
#if !defined(BUILD_TARGET_XTENSA)
419419
}
420420
else {
421421
WASMValue wasm_value;
@@ -436,7 +436,7 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
436436
comp_ctx, func_ctx->native_symbol, &wasm_value, VALUE_TYPE_F64);
437437
}
438438
}
439-
#endif
439+
#endif
440440
CHECK_LLVM_CONST(min_value);
441441
CHECK_LLVM_CONST(max_value);
442442

@@ -562,9 +562,9 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
562562

563563
POP_F32(value);
564564

565-
#if !defined(BUILD_TARGET_XTENSA)
565+
#if !defined(BUILD_TARGET_XTENSA)
566566
if (!comp_ctx->is_indirect_mode) {
567-
#endif
567+
#endif
568568
if (sign) {
569569
min_value = F32_CONST(-9223373136366403584.0f);
570570
max_value = F32_CONST(9223372036854775808.0f);
@@ -573,7 +573,7 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
573573
min_value = F32_CONST(-1.0f);
574574
max_value = F32_CONST(18446744073709551616.0f);
575575
}
576-
#if !defined(BUILD_TARGET_XTENSA)
576+
#if !defined(BUILD_TARGET_XTENSA)
577577
}
578578
else {
579579
WASMValue wasm_value;
@@ -594,7 +594,7 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
594594
comp_ctx, func_ctx->native_symbol, &wasm_value, VALUE_TYPE_F32);
595595
}
596596
}
597-
#endif
597+
#endif
598598
CHECK_LLVM_CONST(min_value);
599599
CHECK_LLVM_CONST(max_value);
600600

@@ -619,9 +619,9 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
619619

620620
POP_F64(value);
621621

622-
#if !defined(BUILD_TARGET_XTENSA)
622+
#if !defined(BUILD_TARGET_XTENSA)
623623
if (!comp_ctx->is_indirect_mode) {
624-
#endif
624+
#endif
625625
if (sign) {
626626
min_value = F64_CONST(-9223372036854777856.0);
627627
max_value = F64_CONST(9223372036854775808.0);
@@ -630,7 +630,7 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
630630
min_value = F64_CONST(-1.0);
631631
max_value = F64_CONST(18446744073709551616.0);
632632
}
633-
#if !defined(BUILD_TARGET_XTENSA)
633+
#if !defined(BUILD_TARGET_XTENSA)
634634
}
635635
else {
636636
WASMValue wasm_value;
@@ -651,7 +651,7 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
651651
comp_ctx, func_ctx->native_symbol, &wasm_value, VALUE_TYPE_F64);
652652
}
653653
}
654-
#endif
654+
#endif
655655
CHECK_LLVM_CONST(min_value);
656656
CHECK_LLVM_CONST(max_value);
657657

core/iwasm/compilation/aot_emit_memory.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ aot_check_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
139139

140140
is_target_64bit = (comp_ctx->pointer_size == sizeof(uint64)) ? true : false;
141141

142-
#if !defined(BUILD_TARGET_XTENSA)
142+
#if !defined(BUILD_TARGET_XTENSA)
143143
if (comp_ctx->is_indirect_mode
144144
&& aot_intrinsic_check_capability(
145145
comp_ctx, MEMORY64_COND_VALUE("i64.const", "i32.const"))) {
@@ -160,8 +160,8 @@ aot_check_memory_overflow(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
160160
return NULL;
161161
}
162162
}
163-
else
164-
#endif
163+
else
164+
#endif
165165
{
166166
CHECK_LLVM_CONST(offset_const);
167167
}

0 commit comments

Comments
 (0)