NVPTXFrameLowering.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===--- NVPTXFrameLowering.h - Define frame lowering for NVPTX -*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. //
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
  13. #define LLVM_LIB_TARGET_NVPTX_NVPTXFRAMELOWERING_H
  14. #include "llvm/CodeGen/TargetFrameLowering.h"
  15. #include "llvm/Support/TypeSize.h"
  16. namespace llvm {
  17. class NVPTXFrameLowering : public TargetFrameLowering {
  18. public:
  19. explicit NVPTXFrameLowering();
  20. bool hasFP(const MachineFunction &MF) const override;
  21. void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
  22. void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
  23. StackOffset getFrameIndexReference(const MachineFunction &MF, int FI,
  24. Register &FrameReg) const override;
  25. MachineBasicBlock::iterator
  26. eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB,
  27. MachineBasicBlock::iterator I) const override;
  28. DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override;
  29. };
  30. } // End llvm namespace
  31. #endif