LLVM  6.0.0svn
AMDGPURegisterInfo.h
Go to the documentation of this file.
1 //===-- AMDGPURegisterInfo.h - AMDGPURegisterInfo Interface -*- C++ -*-----===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 /// \file
11 /// \brief TargetRegisterInfo interface that is implemented by all hw codegen
12 /// targets.
13 //
14 //===----------------------------------------------------------------------===//
15 
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUREGISTERINFO_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUREGISTERINFO_H
18 
19 #define GET_REGINFO_HEADER
20 #include "AMDGPUGenRegisterInfo.inc"
21 
22 namespace llvm {
23 
24 class AMDGPUSubtarget;
25 class TargetInstrInfo;
26 
29 
30  /// \returns the sub reg enum value for the given \p Channel
31  /// (e.g. getSubRegFromChannel(0) -> AMDGPU::sub0)
32  unsigned getSubRegFromChannel(unsigned Channel) const;
33 };
34 
35 } // End namespace llvm
36 
37 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
unsigned getSubRegFromChannel(unsigned Channel) const