Creates an instruction pattern that will capture the matched instruction in the argument.
| 2025 | // Creates an instruction pattern that will capture the matched instruction in |
| 2026 | // the argument. |
| 2027 | inline constexpr detail::HloInstructionPattern< |
| 2028 | const ::xla::HloInstruction, detail::HloInstructionPatternBaseImpl> |
| 2029 | Op(const ::xla::HloInstruction** matched_inst = nullptr) { |
| 2030 | return detail::HloInstructionPattern<const ::xla::HloInstruction, |
| 2031 | detail::HloInstructionPatternBaseImpl>( |
| 2032 | detail::HloInstructionPatternBaseImpl(), matched_inst); |
| 2033 | } |
| 2034 | |
| 2035 | // Creates an instruction pattern that will capture the matched instruction in |
| 2036 | // the argument. |