LLVM  16.0.0git
GCNVOPDUtils.h
Go to the documentation of this file.
1 //===- GCNVOPDUtils.h - GCN VOPD Utils ------------------------===//
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 This file contains the AMDGPU DAG scheduling
10 /// mutation to pair VOPD instructions back to back. It also contains
11 // subroutines useful in the creation of VOPD instructions
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H
16 #define LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H
17 
19 
20 namespace llvm {
21 
22 class SIInstrInfo;
23 
24 bool checkVOPDRegConstraints(const SIInstrInfo &TII,
25  const MachineInstr &FirstMI,
26  const MachineInstr &SecondMI);
27 
28 std::unique_ptr<ScheduleDAGMutation> createVOPDPairingMutation();
29 
30 } // namespace llvm
31 
32 #endif // LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::checkVOPDRegConstraints
bool checkVOPDRegConstraints(const SIInstrInfo &TII, const MachineInstr &FirstMI, const MachineInstr &SecondMI)
Definition: GCNVOPDUtils.cpp:37
TII
const HexagonInstrInfo * TII
Definition: HexagonCopyToCombine.cpp:125
llvm::createVOPDPairingMutation
std::unique_ptr< ScheduleDAGMutation > createVOPDPairingMutation()
Definition: GCNVOPDUtils.cpp:181
MachineScheduler.h