1 //===-- AMDGPUInstrInfo.h - AMDGPU Instruction Information ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// Contains the definition of a TargetInstrInfo class that is common
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUINSTRINFO_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUINSTRINFO_H
20 #include "Utils/AMDGPUBaseInfo.h"
21 #include "llvm/CodeGen/TargetInstrInfo.h"
26 class MachineFunction
;
28 class MachineInstrBuilder
;
30 class AMDGPUInstrInfo
{
32 explicit AMDGPUInstrInfo(const GCNSubtarget
&st
);
34 static bool isUniformMMO(const MachineMemOperand
*MMO
);
39 struct RsrcIntrinsic
{
44 const RsrcIntrinsic
*lookupRsrcIntrinsic(unsigned Intr
);
46 struct D16ImageDimIntrinsic
{
48 unsigned D16HelperIntr
;
50 const D16ImageDimIntrinsic
*lookupD16ImageDimIntrinsic(unsigned Intr
);
52 struct ImageDimIntrinsicInfo
{
57 const ImageDimIntrinsicInfo
*getImageDimIntrinsicInfo(unsigned Intr
);
59 } // end AMDGPU namespace
60 } // End llvm namespace