Skip to content

Commit

Permalink
Integrate LLVM at d7d6fb1804415b0f3e7f1cc9290bfb3d711cb707 (iree-org#…
Browse files Browse the repository at this point in the history
…19245)

Still carrying revert for 1004865f1ca41a9581da8747f34b29862d3ebc3d and a
cherry pick for llvm/llvm-project#116650

---------

Signed-off-by: Simon Camphausen <simon.camphausen@iml.fraunhofer.de>
Co-authored-by: Simon Camphausen <simon.camphausen@iml.fraunhofer.de>
  • Loading branch information
Groverkss and Simon Camphausen authored Nov 21, 2024
1 parent d704051 commit 41dcee9
Show file tree
Hide file tree
Showing 28 changed files with 487 additions and 487 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ static LogicalResult commonRunOnOperation(
// they do not generate reshape ops.
if (!useOnlyReshapes) {
RewritePatternSet patterns(ctx);
patterns.add<linalg::GeneralizeOuterUnitDimsPackOpPattern,
linalg::GeneralizeOuterUnitDimsUnPackOpPattern>(ctx);
patterns.add<linalg::DecomposeOuterUnitDimsPackOpPattern,
linalg::DecomposeOuterUnitDimsUnPackOpPattern>(ctx);
if (failed(applyPatternsAndFoldGreedily(funcOp, std::move(patterns)))) {
funcOp.emitError(
"failed to apply generalization patterns on pack/unpack ops for "
Expand Down Expand Up @@ -239,8 +239,8 @@ static LogicalResult commonRunOnOperation(
if (useOnlyReshapes) {
patterns.add<LowerPackPattern, LowerUnPackPattern>(ctx, controlFn);
} else {
patterns.add<linalg::GeneralizeOuterUnitDimsPackOpPattern,
linalg::GeneralizeOuterUnitDimsUnPackOpPattern>(ctx);
patterns.add<linalg::DecomposeOuterUnitDimsPackOpPattern,
linalg::DecomposeOuterUnitDimsUnPackOpPattern>(ctx);
}
if (failed(applyPatternsAndFoldGreedily(funcOp, std::move(patterns)))) {
return failure();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// CHECK-LABEL: emitc.func private @my_module_add_i32
vm.module @my_module {
vm.func @add_i32(%arg0: i32, %arg1: i32) {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_add_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK-NEXT: %0 = call_opaque "vm_add_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.add.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -14,7 +14,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_sub_i32
vm.module @my_module {
vm.func @sub_i32(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_sub_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_sub_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.sub.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -25,7 +25,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_mul_i32
vm.module @my_module {
vm.func @mul_i32(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_mul_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_mul_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.mul.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -36,7 +36,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_div_i32_s
vm.module @my_module {
vm.func @div_i32_s(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_div_i32s"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_div_i32s"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.div.i32.s %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -47,7 +47,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_div_i32_u
vm.module @my_module {
vm.func @div_i32_u(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_div_i32u"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_div_i32u"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.div.i32.u %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -58,7 +58,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_rem_i32_s
vm.module @my_module {
vm.func @rem_i32_s(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_rem_i32s"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_rem_i32s"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.rem.i32.s %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -69,7 +69,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_rem_i32_u
vm.module @my_module {
vm.func @rem_i32_u(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_rem_i32u"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_rem_i32u"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.rem.i32.u %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -80,7 +80,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_fma_i32
vm.module @my_module {
vm.func @fma_i32(%arg0: i32, %arg1: i32, %arg2: i32) {
// CHECK: %0 = emitc.call_opaque "vm_fma_i32"(%arg3, %arg4, %arg5) : (i32, i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_fma_i32"(%arg3, %arg4, %arg5) : (i32, i32, i32) -> i32
%0 = vm.fma.i32 %arg0, %arg1, %arg2 : i32
vm.return %0 : i32
}
Expand All @@ -91,7 +91,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_abs_i32
vm.module @my_module {
vm.func @abs_i32(%arg0 : i32) -> i32 {
// CHECK: %0 = emitc.call_opaque "vm_abs_i32"(%arg3) : (i32) -> i32
// CHECK: %0 = call_opaque "vm_abs_i32"(%arg3) : (i32) -> i32
%0 = vm.abs.i32 %arg0 : i32
vm.return %0 : i32
}
Expand All @@ -102,7 +102,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_min_i32_s
vm.module @my_module {
vm.func @min_i32_s(%arg0: i32, %arg1: i32) {
// CHECK: %0 = emitc.call_opaque "vm_min_i32s"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_min_i32s"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.min.i32.s %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -113,7 +113,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_not_i32
vm.module @my_module {
vm.func @not_i32(%arg0 : i32) -> i32 {
// CHECK: %0 = emitc.call_opaque "vm_not_i32"(%arg3) : (i32) -> i32
// CHECK: %0 = call_opaque "vm_not_i32"(%arg3) : (i32) -> i32
%0 = vm.not.i32 %arg0 : i32
vm.return %0 : i32
}
Expand All @@ -124,7 +124,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_and_i32
vm.module @my_module {
vm.func @and_i32(%arg0 : i32, %arg1 : i32) -> i32 {
// CHECK: %0 = emitc.call_opaque "vm_and_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_and_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.and.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -135,7 +135,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_or_i32
vm.module @my_module {
vm.func @or_i32(%arg0 : i32, %arg1 : i32) -> i32 {
// CHECK: %0 = emitc.call_opaque "vm_or_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_or_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.or.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand All @@ -146,7 +146,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_xor_i32
vm.module @my_module {
vm.func @xor_i32(%arg0 : i32, %arg1 : i32) -> i32 {
// CHECK: %0 = emitc.call_opaque "vm_xor_i32"(%arg3, %arg4) : (i32, i32) -> i32
// CHECK: %0 = call_opaque "vm_xor_i32"(%arg3, %arg4) : (i32, i32) -> i32
%0 = vm.xor.i32 %arg0, %arg1 : i32
vm.return %0 : i32
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// CHECK-LABEL: emitc.func private @my_module_add_f32
vm.module @my_module {
vm.func @add_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_add_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_add_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.add.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -14,7 +14,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_sub_f32
vm.module @my_module {
vm.func @sub_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_sub_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_sub_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.sub.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -25,7 +25,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_mul_f32
vm.module @my_module {
vm.func @mul_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_mul_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_mul_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.mul.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -36,7 +36,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_div_f32
vm.module @my_module {
vm.func @div_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_div_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_div_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.div.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -47,7 +47,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_rem_f32
vm.module @my_module {
vm.func @rem_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_rem_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_rem_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.rem.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -58,7 +58,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_fma_f32
vm.module @my_module {
vm.func @fma_f32(%arg0: f32, %arg1: f32, %arg2: f32) {
// CHECK: %0 = emitc.call_opaque "vm_fma_f32"(%arg3, %arg4, %arg5) : (f32, f32, f32) -> f32
// CHECK: %0 = call_opaque "vm_fma_f32"(%arg3, %arg4, %arg5) : (f32, f32, f32) -> f32
%0 = vm.fma.f32 %arg0, %arg1, %arg2 : f32
vm.return %0 : f32
}
Expand All @@ -69,7 +69,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_abs_f32
vm.module @my_module {
vm.func @abs_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_abs_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_abs_f32"(%arg3) : (f32) -> f32
%0 = vm.abs.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -80,7 +80,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_neg_f32
vm.module @my_module {
vm.func @neg_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_neg_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_neg_f32"(%arg3) : (f32) -> f32
%0 = vm.neg.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -91,7 +91,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_ceil_f32
vm.module @my_module {
vm.func @ceil_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_ceil_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_ceil_f32"(%arg3) : (f32) -> f32
%0 = vm.ceil.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -102,7 +102,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_floor_f32
vm.module @my_module {
vm.func @floor_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_floor_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_floor_f32"(%arg3) : (f32) -> f32
%0 = vm.floor.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -113,7 +113,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_min_f32
vm.module @my_module {
vm.func @min_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_min_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_min_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.min.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -124,7 +124,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_max_f32
vm.module @my_module {
vm.func @max_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_max_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_max_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.max.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -135,7 +135,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_atan_f32
vm.module @my_module {
vm.func @atan_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_atan_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_atan_f32"(%arg3) : (f32) -> f32
%0 = vm.atan.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -146,7 +146,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_atan2_f32
vm.module @my_module {
vm.func @atan2_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_atan2_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_atan2_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.atan2.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -157,7 +157,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_cos_f32
vm.module @my_module {
vm.func @cos_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_cos_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_cos_f32"(%arg3) : (f32) -> f32
%0 = vm.cos.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -168,7 +168,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_sin_f32
vm.module @my_module {
vm.func @sin_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_sin_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_sin_f32"(%arg3) : (f32) -> f32
%0 = vm.sin.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -179,7 +179,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_exp_f32
vm.module @my_module {
vm.func @exp_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_exp_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_exp_f32"(%arg3) : (f32) -> f32
%0 = vm.exp.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -190,7 +190,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_exp2_f32
vm.module @my_module {
vm.func @exp2_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_exp2_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_exp2_f32"(%arg3) : (f32) -> f32
%0 = vm.exp2.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -201,7 +201,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_expm1_f32
vm.module @my_module {
vm.func @expm1_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_expm1_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_expm1_f32"(%arg3) : (f32) -> f32
%0 = vm.expm1.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -212,7 +212,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_log_f32
vm.module @my_module {
vm.func @log_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_log_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_log_f32"(%arg3) : (f32) -> f32
%0 = vm.log.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -223,7 +223,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_log10_f32
vm.module @my_module {
vm.func @log10_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_log10_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_log10_f32"(%arg3) : (f32) -> f32
%0 = vm.log10.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -234,7 +234,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_log1p_f32
vm.module @my_module {
vm.func @log1p_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_log1p_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_log1p_f32"(%arg3) : (f32) -> f32
%0 = vm.log1p.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -245,7 +245,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_log2_f32
vm.module @my_module {
vm.func @log2_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_log2_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_log2_f32"(%arg3) : (f32) -> f32
%0 = vm.log2.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -256,7 +256,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_pow_f32
vm.module @my_module {
vm.func @pow_f32(%arg0 : f32, %arg1 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_pow_f32"(%arg3, %arg4) : (f32, f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_pow_f32"(%arg3, %arg4) : (f32, f32) -> f32
%0 = vm.pow.f32 %arg0, %arg1 : f32
vm.return %0 : f32
}
Expand All @@ -267,7 +267,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_rsqrt_f32
vm.module @my_module {
vm.func @rsqrt_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_rsqrt_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_rsqrt_f32"(%arg3) : (f32) -> f32
%0 = vm.rsqrt.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -278,7 +278,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_sqrt_f32
vm.module @my_module {
vm.func @sqrt_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_sqrt_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_sqrt_f32"(%arg3) : (f32) -> f32
%0 = vm.sqrt.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -289,7 +289,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_tanh_f32
vm.module @my_module {
vm.func @tanh_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_tanh_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_tanh_f32"(%arg3) : (f32) -> f32
%0 = vm.tanh.f32 %arg0 : f32
vm.return %0 : f32
}
Expand All @@ -300,7 +300,7 @@ vm.module @my_module {
// CHECK-LABEL: emitc.func private @my_module_erf_f32
vm.module @my_module {
vm.func @erf_f32(%arg0 : f32) -> f32 {
// CHECK-NEXT: %0 = emitc.call_opaque "vm_erf_f32"(%arg3) : (f32) -> f32
// CHECK-NEXT: %0 = call_opaque "vm_erf_f32"(%arg3) : (f32) -> f32
%0 = vm.erf.f32 %arg0 : f32
vm.return %0 : f32
}
Expand Down
Loading

0 comments on commit 41dcee9

Please sign in to comment.