AMDGPU/SI: Add support for sgpr and vgpr inline assembly constraints
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUHSATargetObjectFile.h
index e1aca67b97c20116049c326fed02685d88706fc5..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) override;