LCOV - code coverage report
Current view: top level - lib/Target/AMDGPU - SIFrameLowering.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 3 3 100.0 %
Date: 2017-09-14 15:23:50 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===--------------------- SIFrameLowering.h --------------------*- C++ -*-===//
       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             : #ifndef LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H
      11             : #define LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H
      12             : 
      13             : #include "AMDGPUFrameLowering.h"
      14             : 
      15             : namespace llvm {
      16             : 
      17             : class SIInstrInfo;
      18             : class SIMachineFunctionInfo;
      19             : class SIRegisterInfo;
      20             : class SISubtarget;
      21             : 
      22             : class SIFrameLowering final : public AMDGPUFrameLowering {
      23             : public:
      24             :   SIFrameLowering(StackDirection D, unsigned StackAl, int LAO,
      25        1796 :                   unsigned TransAl = 1) :
      26        1796 :     AMDGPUFrameLowering(D, StackAl, LAO, TransAl) {}
      27        1788 :   ~SIFrameLowering() override = default;
      28             : 
      29             :   void emitEntryFunctionPrologue(MachineFunction &MF,
      30             :                                  MachineBasicBlock &MBB) const;
      31             :   void emitPrologue(MachineFunction &MF,
      32             :                     MachineBasicBlock &MBB) const override;
      33             :   void emitEpilogue(MachineFunction &MF,
      34             :                     MachineBasicBlock &MBB) const override;
      35             :   int getFrameIndexReference(const MachineFunction &MF, int FI,
      36             :                              unsigned &FrameReg) const override;
      37             : 
      38             :   void processFunctionBeforeFrameFinalized(
      39             :     MachineFunction &MF,
      40             :     RegScavenger *RS = nullptr) const override;
      41             : 
      42             :   MachineBasicBlock::iterator
      43             :   eliminateCallFramePseudoInstr(MachineFunction &MF,
      44             :                                 MachineBasicBlock &MBB,
      45             :                                 MachineBasicBlock::iterator MI) const override;
      46             : 
      47             : private:
      48             :   void emitFlatScratchInit(const SISubtarget &ST,
      49             :                            MachineFunction &MF,
      50             :                            MachineBasicBlock &MBB) const;
      51             : 
      52             :   unsigned getReservedPrivateSegmentBufferReg(
      53             :     const SISubtarget &ST,
      54             :     const SIInstrInfo *TII,
      55             :     const SIRegisterInfo *TRI,
      56             :     SIMachineFunctionInfo *MFI,
      57             :     MachineFunction &MF) const;
      58             : 
      59             :   std::pair<unsigned, unsigned> getReservedPrivateSegmentWaveByteOffsetReg(
      60             :     const SISubtarget &ST,
      61             :     const SIInstrInfo *TII,
      62             :     const SIRegisterInfo *TRI,
      63             :     SIMachineFunctionInfo *MFI,
      64             :     MachineFunction &MF) const;
      65             : 
      66             :   /// \brief Emits debugger prologue.
      67             :   void emitDebuggerPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const;
      68             : 
      69             : public:
      70             :   bool hasFP(const MachineFunction &MF) const override;
      71             :   bool hasSP(const MachineFunction &MF) const;
      72             : };
      73             : 
      74             : } // end namespace llvm
      75             : 
      76             : #endif // LLVM_LIB_TARGET_AMDGPU_SIFRAMELOWERING_H

Generated by: LCOV version 1.13