1 //===-- AMDGPUHSATargetObjectFile.h - AMDGPU HSA Object Info ----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// \brief This file declares the AMDGPU-specific subclass of
12 /// TargetLoweringObjectFile use for targeting the HSA-runtime.
14 //===----------------------------------------------------------------------===//
16 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUHSATARGETOBJECTFILE_H
17 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUHSATARGETOBJECTFILE_H
19 #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
20 #include "llvm/Target/TargetMachine.h"
24 class AMDGPUHSATargetObjectFile final : public TargetLoweringObjectFileELF {
26 void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
28 MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
30 const TargetMachine &TM) const override;
33 } // end namespace llvm