LLVM  3.7.0
AMDGPUBaseInfo.h
Go to the documentation of this file.
1 //===-- AMDGPUBaseInfo.h - Top level definitions for AMDGPU -----*- 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 #ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUBASEINFO_H
11 #define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUBASEINFO_H
12 
13 #include "AMDKernelCodeT.h"
14 
15 namespace llvm {
16 
17 class FeatureBitset;
18 
19 namespace AMDGPU {
20 
21 struct IsaVersion {
22  unsigned Major;
23  unsigned Minor;
24  unsigned Stepping;
25 };
26 
29  const FeatureBitset &Features);
30 
31 } // end namespace AMDGPU
32 } // end namespace llvm
33 
34 #endif
const FeatureBitset Features
AMD Kernel Code Object (amd_kernel_code_t).
IsaVersion getIsaVersion(const FeatureBitset &Features)
void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header, const FeatureBitset &Features)