Revert r254348: "Replace all weight-based interfaces in MBB with probability-based...
[oota-llvm.git] / lib / Target / AMDGPU / Utils / AMDGPUBaseInfo.h
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 class MCContext;
19 class MCSection;
20
21 namespace AMDGPU {
22
23 struct IsaVersion {
24   unsigned Major;
25   unsigned Minor;
26   unsigned Stepping;
27 };
28
29 IsaVersion getIsaVersion(const FeatureBitset &Features);
30 void initDefaultAMDKernelCodeT(amd_kernel_code_t &Header,
31                                const FeatureBitset &Features);
32 MCSection *getHSATextSection(MCContext &Ctx);
33
34 } // end namespace AMDGPU
35 } // end namespace llvm
36
37 #endif