xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPTNote.h (revision c1d255d3ffdbe447de3ab875bf4e7d7accc5bfc5)
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 llvm {
20 namespace AMDGPU {
21 
22 namespace ElfNote {
23 
24 const char SectionName[] = ".note";
25 
26 const char NoteNameV2[] = "AMD";
27 const char NoteNameV3[] = "AMDGPU";
28 
29 // TODO: Remove this file once we drop code object v2.
30 enum NoteType{
31     NT_AMDGPU_HSA_RESERVED_0 = 0,
32     NT_AMDGPU_HSA_CODE_OBJECT_VERSION = 1,
33     NT_AMDGPU_HSA_HSAIL = 2,
34     NT_AMDGPU_HSA_ISA = 3,
35     NT_AMDGPU_HSA_PRODUCER = 4,
36     NT_AMDGPU_HSA_PRODUCER_OPTIONS = 5,
37     NT_AMDGPU_HSA_EXTENSION = 6,
38     NT_AMDGPU_HSA_RESERVED_7 = 7,
39     NT_AMDGPU_HSA_RESERVED_8 = 8,
40     NT_AMDGPU_HSA_RESERVED_9 = 9,
41     NT_AMDGPU_HSA_HLDEBUG_DEBUG = 101,
42     NT_AMDGPU_HSA_HLDEBUG_TARGET = 102
43 };
44 
45 } // End namespace ElfNote
46 } // End namespace AMDGPU
47 } // End namespace llvm
48 #endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUNOTETYPE_H
49