|  | //===- GCNVOPDUtils.h - GCN VOPD Utils  ------------------------===// | 
|  | // | 
|  | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | 
|  | // See https://llvm.org/LICENSE.txt for license information. | 
|  | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | 
|  | // | 
|  | //===----------------------------------------------------------------------===// | 
|  | // | 
|  | /// \file This file contains the AMDGPU DAG scheduling | 
|  | /// mutation to pair VOPD instructions back to back. It also contains | 
|  | //  subroutines useful in the creation of VOPD instructions | 
|  | // | 
|  | //===----------------------------------------------------------------------===// | 
|  |  | 
|  | #ifndef LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H | 
|  | #define LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H | 
|  |  | 
|  | #include "llvm/CodeGen/MachineScheduler.h" | 
|  |  | 
|  | namespace llvm { | 
|  |  | 
|  | class SIInstrInfo; | 
|  |  | 
|  | bool checkVOPDRegConstraints(const SIInstrInfo &TII, | 
|  | const MachineInstr &FirstMI, | 
|  | const MachineInstr &SecondMI); | 
|  |  | 
|  | std::unique_ptr<ScheduleDAGMutation> createVOPDPairingMutation(); | 
|  |  | 
|  | } // namespace llvm | 
|  |  | 
|  | #endif // LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H |