diff options
author | Stephen Hines <srhines@google.com> | 2014-12-01 14:51:49 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-02 16:08:10 -0800 |
commit | 37ed9c199ca639565f6ce88105f9e39e898d82d0 (patch) | |
tree | 8fb36d3910e3ee4c4e1b7422f4f017108efc52f5 /lib/Target/R600/AMDGPUAsmPrinter.h | |
parent | d2327b22152ced7bc46dc629fc908959e8a52d03 (diff) | |
download | external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.zip external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.gz external_llvm-37ed9c199ca639565f6ce88105f9e39e898d82d0.tar.bz2 |
Update aosp/master LLVM for rebase to r222494.
Change-Id: Ic787f5e0124df789bd26f3f24680f45e678eef2d
Diffstat (limited to 'lib/Target/R600/AMDGPUAsmPrinter.h')
-rw-r--r-- | lib/Target/R600/AMDGPUAsmPrinter.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/lib/Target/R600/AMDGPUAsmPrinter.h b/lib/Target/R600/AMDGPUAsmPrinter.h index c1acb6e..b9a0767 100644 --- a/lib/Target/R600/AMDGPUAsmPrinter.h +++ b/lib/Target/R600/AMDGPUAsmPrinter.h @@ -12,11 +12,10 @@ // //===----------------------------------------------------------------------===// -#ifndef AMDGPU_ASMPRINTER_H -#define AMDGPU_ASMPRINTER_H +#ifndef LLVM_LIB_TARGET_R600_AMDGPUASMPRINTER_H +#define LLVM_LIB_TARGET_R600_AMDGPUASMPRINTER_H #include "llvm/CodeGen/AsmPrinter.h" -#include <string> #include <vector> namespace llvm { @@ -33,6 +32,9 @@ private: DX10Clamp(0), DebugMode(0), IEEEMode(0), + ScratchSize(0), + FlatUsed(false), + VCCUsed(false), CodeLen(0) {} // Fields set in PGM_RSRC1 pm4 packet. @@ -44,20 +46,24 @@ private: uint32_t DX10Clamp; uint32_t DebugMode; uint32_t IEEEMode; + uint32_t ScratchSize; + + bool FlatUsed; // Bonus information for debugging. + bool VCCUsed; uint64_t CodeLen; }; - void getSIProgramInfo(SIProgramInfo &Out, MachineFunction &MF) const; - void findNumUsedRegistersSI(MachineFunction &MF, + void getSIProgramInfo(SIProgramInfo &Out, const MachineFunction &MF) const; + void findNumUsedRegistersSI(const MachineFunction &MF, unsigned &NumSGPR, unsigned &NumVGPR) const; /// \brief Emit register usage information so that the GPU driver /// can correctly setup the GPU state. - void EmitProgramInfoR600(MachineFunction &MF); - void EmitProgramInfoSI(MachineFunction &MF, const SIProgramInfo &KernelInfo); + void EmitProgramInfoR600(const MachineFunction &MF); + void EmitProgramInfoSI(const MachineFunction &MF, const SIProgramInfo &KernelInfo); public: explicit AMDGPUAsmPrinter(TargetMachine &TM, MCStreamer &Streamer); @@ -71,6 +77,8 @@ public: /// Implemented in AMDGPUMCInstLower.cpp void EmitInstruction(const MachineInstr *MI) override; + void EmitEndOfAsmFile(Module &M) override; + protected: bool DisasmEnabled; std::vector<std::string> DisasmLines, HexLines; @@ -79,4 +87,4 @@ protected: } // End anonymous llvm -#endif //AMDGPU_ASMPRINTER_H +#endif |