brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f776ae9 Raw
33 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9/// \file This file contains the AMDGPU DAG scheduling10/// mutation to pair VOPD instructions back to back. It also contains11//  subroutines useful in the creation of VOPD instructions12//13//===----------------------------------------------------------------------===//14 15#ifndef LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H16#define LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H17 18#include "llvm/CodeGen/MachineScheduler.h"19 20namespace llvm {21 22class SIInstrInfo;23 24bool checkVOPDRegConstraints(const SIInstrInfo &TII,25                             const MachineInstr &FirstMI,26                             const MachineInstr &SecondMI, bool IsVOPD3);27 28std::unique_ptr<ScheduleDAGMutation> createVOPDPairingMutation();29 30} // namespace llvm31 32#endif // LLVM_LIB_TARGET_AMDGPU_VOPDUTILS_H33