[obj2yaml] - Fix BB after r373315.
[llvm-complete.git] / lib / Target / AMDGPU / AMDGPUPTNote.h
blob8b69f51c1a0d9314ac82b3e63f143854585caf40
1 //===-- AMDGPUNoteType.h - AMDGPU ELF PT_NOTE section info-------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 /// \file
10 ///
11 /// Enums and constants for AMDGPU PT_NOTE sections.
12 ///
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H
19 namespace AMDGPU {
21 namespace ElfNote {
23 const char SectionName[] = ".note";
25 const char NoteNameV2[] = "AMD";
26 const char NoteNameV3[] = "AMDGPU";
28 // TODO: Remove this file once we drop code object v2.
29 enum NoteType{
30 NT_AMDGPU_HSA_RESERVED_0 = 0,
31 NT_AMDGPU_HSA_CODE_OBJECT_VERSION = 1,
32 NT_AMDGPU_HSA_HSAIL = 2,
33 NT_AMDGPU_HSA_ISA = 3,
34 NT_AMDGPU_HSA_PRODUCER = 4,
35 NT_AMDGPU_HSA_PRODUCER_OPTIONS = 5,
36 NT_AMDGPU_HSA_EXTENSION = 6,
37 NT_AMDGPU_HSA_RESERVED_7 = 7,
38 NT_AMDGPU_HSA_RESERVED_8 = 8,
39 NT_AMDGPU_HSA_RESERVED_9 = 9,
40 NT_AMDGPU_HSA_HLDEBUG_DEBUG = 101,
41 NT_AMDGPU_HSA_HLDEBUG_TARGET = 102
47 #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUNOTETYPE_H