AMDGPU/SI: Add support for sgpr and vgpr inline assembly constraints
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUHSATargetObjectFile.h
index d13aba56cdd73301318d882570ff4a06d2e8d079..9ea51ec9b29ee0e386e0e41f1740b1c0793307e3 100644 (file)
 namespace llvm {
 
 class AMDGPUHSATargetObjectFile final : public TargetLoweringObjectFileELF {
+private:
+  MCSection *DataGlobalAgentSection;
+  MCSection *DataGlobalProgramSection;
+  MCSection *RodataReadonlyAgentSection;
+
+  bool isAgentAllocationSection(const char *SectionName) const;
+  bool isAgentAllocation(const GlobalValue *GV) const;
+  bool isProgramAllocation(const GlobalValue *GV) const;
+
 public:
-  void Initialize(MCContext &Ctx, const TargetMachine &TM);
+  void Initialize(MCContext &Ctx, const TargetMachine &TM) override;
 
   MCSection *SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
                                     Mangler &Mang,