// RUN: mlir-hlo-opt %s -inline | FileCheck %s // Test case: Basic test of inlining into mhlo.while. // CHECK-LABEL: func @caller // CHECK: "mhlo.while"{{.*}}( { // CHECK: }, { // CHECK: "mhlo.exponential" // CHECK: }) // CHECK-LABEL: func @callee func @caller(%arg0: tensor, %pred: tensor) -> tensor { %0 = "mhlo.while"(%arg0) ( { ^entry(%unused: tensor): "mhlo.return"(%pred) : (tensor) -> () }, { ^entry(%0: tensor): %1 = call @callee(%0) : (tensor) -> (tensor) "mhlo.return"(%1) : (tensor) -> () } ) : (tensor) -> (tensor) return %0 : tensor } func @callee(%arg0: tensor) -> tensor { %0 = "mhlo.exponential"(%arg0) : (tensor) -> tensor return %0 : tensor }