mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 16:56:50 +00:00
38890eb0c2
Differential Revision: https://reviews.llvm.org/D29674 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297499 91177308-0d34-0410-b5e6-96231b3b80d8
45 lines
1.5 KiB
C++
45 lines
1.5 KiB
C++
//===--------------------- AMDGPUFrameLowering.h ----------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
/// \file
|
|
/// \brief Interface to describe a layout of a stack frame on an AMDGPU target.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
|
|
#define LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
|
|
|
|
#include "llvm/Target/TargetFrameLowering.h"
|
|
|
|
namespace llvm {
|
|
|
|
/// \brief Information about the stack frame layout on the AMDGPU targets.
|
|
///
|
|
/// It holds the direction of the stack growth, the known stack alignment on
|
|
/// entry to each function, and the offset to the locals area.
|
|
/// See TargetFrameInfo for more comments.
|
|
class AMDGPUFrameLowering : public TargetFrameLowering {
|
|
public:
|
|
AMDGPUFrameLowering(StackDirection D, unsigned StackAl, int LAO,
|
|
unsigned TransAl = 1);
|
|
~AMDGPUFrameLowering() override;
|
|
|
|
/// \returns The number of 32-bit sub-registers that are used when storing
|
|
/// values to the stack.
|
|
unsigned getStackWidth(const MachineFunction &MF) const;
|
|
|
|
bool hasFP(const MachineFunction &MF) const override {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H
|