1 //=== lib/CodeGen/GlobalISel/AMDGPUCombinerHelper.h -----------------------===//
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 /// \file
10 /// This contains common combine transformations that may be used in a combine
11 /// pass.
12 ///
13 //===----------------------------------------------------------------------===//
14 
15 #include "llvm/CodeGen/GlobalISel/Combiner.h"
16 #include "llvm/CodeGen/GlobalISel/CombinerHelper.h"
17 
18 using namespace llvm;
19 
20 class AMDGPUCombinerHelper : public CombinerHelper {
21 public:
22   using CombinerHelper::CombinerHelper;
23 
24   bool matchFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
25   void applyFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
26 };
27