blob: 0558c4121fdd51c3e6f73e503d749bf3e51399ce [file] [log] [blame]
Matt Arsenaultb3e86702019-02-04 18:58:27 +00001//===------------------------------------------------------------*- 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
11namespace llvm {
12std::ostream &
13operator<<(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
21std::ostream &
22operator<<(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}