1 //===-- AMDGPUNoteType.h - AMDGPU ELF PT_NOTE section info-------*- 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 /// \file 11 /// 12 /// Enums and constants for AMDGPU PT_NOTE sections. 13 /// 14 // 15 //===----------------------------------------------------------------------===// 16 // 17 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H 18 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUPTNOTE_H 19 20 namespace AMDGPU { 21 22 namespace ElfNote { 23 24 const char SectionName[] = ".note"; 25 26 const char NoteName[] = "AMD"; 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