~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
27
IsaVersion getIsaVersion(const FeatureBitset &Features);
 
28
void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header,
 
29
                               const FeatureBitset &Features);
 
30
 
 
31
} // end namespace AMDGPU
 
32
} // end namespace llvm
 
33
 
 
34
#endif