[InstCombine] Signed saturation patterns
[llvm-core.git] / unittests / CodeGen / GlobalISel / GISelMITest.cpp
blob0558c4121fdd51c3e6f73e503d749bf3e51399ce
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 //===----------------------------------------------------------------------===//
9 #include "GISelMITest.h"
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;
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;