LLVM  15.0.0git
AMDGPUCombinerHelper.h
Go to the documentation of this file.
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 
17 
18 using namespace llvm;
19 
21 public:
23 
24  bool matchFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
25  void applyFoldableFneg(MachineInstr &MI, MachineInstr *&MatchInfo);
26 };
AMDGPUCombinerHelper
Definition: AMDGPUCombinerHelper.h:20
MI
IRTranslator LLVM IR MI
Definition: IRTranslator.cpp:104
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::CombinerHelper
Definition: CombinerHelper.h:108
llvm::MachineInstr
Representation of each machine instruction.
Definition: MachineInstr.h:66
CombinerHelper.h
Combiner.h
llvm::CombinerHelper::CombinerHelper
CombinerHelper(GISelChangeObserver &Observer, MachineIRBuilder &B, GISelKnownBits *KB=nullptr, MachineDominatorTree *MDT=nullptr, const LegalizerInfo *LI=nullptr)
Definition: CombinerHelper.cpp:48