xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPTNote.h (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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 ///
13 //
14 //===----------------------------------------------------------------------===//
15 //
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H
18 
19 namespace AMDGPU {
20 
21 namespace ElfNote {
22 
23 const char SectionName[] = ".note";
24 
25 const char NoteNameV2[] = "AMD";
26 const char NoteNameV3[] = "AMDGPU";
27 
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
42 };
43 
44 }
45 }
46 
47 #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUNOTETYPE_H
48