1 //===-- AMDGPUInstrInfo.h - AMDGPU Instruction Information ------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
10 /// Contains the definition of a TargetInstrInfo class that is common
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUINSTRINFO_H
16 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUINSTRINFO_H
19 #include "Utils/AMDGPUBaseInfo.h"
20 #include "llvm/CodeGen/TargetInstrInfo.h"
25 class MachineFunction
;
27 class MachineInstrBuilder
;
29 class AMDGPUInstrInfo
{
31 explicit AMDGPUInstrInfo(const GCNSubtarget
&st
);
33 static bool isUniformMMO(const MachineMemOperand
*MMO
);
38 struct RsrcIntrinsic
{
43 const RsrcIntrinsic
*lookupRsrcIntrinsic(unsigned Intr
);
45 struct D16ImageDimIntrinsic
{
47 unsigned D16HelperIntr
;
49 const D16ImageDimIntrinsic
*lookupD16ImageDimIntrinsic(unsigned Intr
);
51 struct ImageDimIntrinsicInfo
{
56 const ImageDimIntrinsicInfo
*getImageDimIntrinsicInfo(unsigned Intr
);
58 } // end AMDGPU namespace
59 } // End llvm namespace