| 353 | // - CustomCall() matches any CustomCall HLO at all. |
| 354 | template <typename... M> |
| 355 | inline ::testing::Matcher<const ::xla::HloInstruction*> CustomCall( |
| 356 | ::testing::Matcher<string> call_target_matcher, M... operands) { |
| 357 | return ::testing::MakeMatcher(new ::xla::testing::HloCustomCallMatcher( |
| 358 | call_target_matcher, {operands...})); |
| 359 | } |
| 360 | // This overload of CustomCall(A, B, C, ...) exists iff A is not convertible to |
| 361 | // ::testing::Matcher<string>. In that case, we want to prefer the overload |
| 362 | // above. |