Matt Arsenault | b3e8670 | 2019-02-04 18:58:27 +0000 | [diff] [blame^] | 1 | //===------------------------------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "GISelMITest.h" |
| 10 | |
| 11 | namespace llvm { |
| 12 | std::ostream & |
| 13 | operator<<(std::ostream &OS, const LLT Ty) { |
| 14 | std::string Repr; |
| 15 | raw_string_ostream SS{Repr}; |
| 16 | Ty.print(SS); |
| 17 | OS << SS.str(); |
| 18 | return OS; |
| 19 | } |
| 20 | |
| 21 | std::ostream & |
| 22 | operator<<(std::ostream &OS, const MachineFunction &MF) { |
| 23 | std::string Repr; |
| 24 | raw_string_ostream SS{Repr}; |
| 25 | MF.print(SS); |
| 26 | OS << SS.str(); |
| 27 | return OS; |
| 28 | } |
| 29 | |
| 30 | } |