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 18 #include "llvm/CodeGen/MachineScheduler.h" 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 33