// CHECK-LABEL: basic func @basic() -> f32 { %v0 = infrt.constant.f32 1.0 %v1 = infrt.constant.f32 2.0 %v2 = "infrt.add.f32"(%v0, %v1) : (f32, f32) -> f32 // CHECK: 1 "infrt.print.f32"(%v0) : (f32) -> () // CHECK: 2 "infrt.print.f32"(%v1) : (f32) -> () // CHECK: 3 "infrt.print.f32"(%v2) : (f32) -> () %v3 = "infrt.mul.f32"(%v2, %v1) : (f32, f32) -> f32 // CHECK: 6 "infrt.print.f32"(%v3) : (f32) -> () infrt.return %v3 : f32 } // CHECK-LABEL: basic1 // Check the mlir executor can work with more than one function in a file. func @basic1() -> () { %v0 = infrt.constant.f32 1.0 "infrt.print.f32"(%v0) : (f32) -> () // CHECK: 1 infrt.return }