Tom Stellard | c93fc11 | 2015-12-10 02:13:01 +0000 | [diff] [blame] | 1 | //===-- AMDGPUTargetObjectFile.h - AMDGPU Object Info ----*- C++ -*-===// |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 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 | /// \brief This file declares the AMDGPU-specific subclass of |
Tom Stellard | c93fc11 | 2015-12-10 02:13:01 +0000 | [diff] [blame] | 12 | /// TargetLoweringObjectFile. |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 13 | /// |
| 14 | //===----------------------------------------------------------------------===// |
| 15 | |
Tom Stellard | c93fc11 | 2015-12-10 02:13:01 +0000 | [diff] [blame] | 16 | #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H |
| 17 | #define LLVM_LIB_TARGET_AMDGPU_AMDGPUTARGETOBJECTFILE_H |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 18 | |
Yaxun Liu | 1a14bfa | 2017-03-27 14:04:01 +0000 | [diff] [blame^] | 19 | #include "AMDGPU.h" |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 20 | #include "llvm/CodeGen/TargetLoweringObjectFileImpl.h" |
| 21 | #include "llvm/Target/TargetMachine.h" |
| 22 | |
| 23 | namespace llvm { |
| 24 | |
Tom Stellard | c93fc11 | 2015-12-10 02:13:01 +0000 | [diff] [blame] | 25 | class AMDGPUTargetObjectFile : public TargetLoweringObjectFileELF { |
| 26 | public: |
Peter Collingbourne | 6733564 | 2016-10-24 19:23:39 +0000 | [diff] [blame] | 27 | MCSection *SelectSectionForGlobal(const GlobalObject *GO, SectionKind Kind, |
Tom Stellard | c93fc11 | 2015-12-10 02:13:01 +0000 | [diff] [blame] | 28 | const TargetMachine &TM) const override; |
| 29 | }; |
| 30 | |
Tom Stellard | e135ffd | 2015-09-25 21:41:28 +0000 | [diff] [blame] | 31 | } // end namespace llvm |
| 32 | |
| 33 | #endif |