mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-25 05:25:53 +00:00
00e08fcaa0
Add header guards to files that were missing guards. Remove #endif comments as they don't seem common in LLVM (we can easily add them back if we decide they're useful) Changes made by clang-tidy with minor tweaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215558 91177308-0d34-0410-b5e6-96231b3b80d8
46 lines
1.7 KiB
C++
46 lines
1.7 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 a AMDIL target
|
|
/// machine.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
#ifndef LLVM_LIB_TARGET_R600_AMDGPUFRAMELOWERING_H
|
|
#define LLVM_LIB_TARGET_R600_AMDGPUFRAMELOWERING_H
|
|
|
|
#include "llvm/CodeGen/MachineFunction.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);
|
|
virtual ~AMDGPUFrameLowering();
|
|
|
|
/// \returns The number of 32-bit sub-registers that are used when storing
|
|
/// values to the stack.
|
|
unsigned getStackWidth(const MachineFunction &MF) const;
|
|
int getFrameIndexOffset(const MachineFunction &MF, int FI) const override;
|
|
const SpillSlot *
|
|
getCalleeSavedSpillSlots(unsigned &NumEntries) const override;
|
|
void emitPrologue(MachineFunction &MF) const override;
|
|
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override;
|
|
bool hasFP(const MachineFunction &MF) const override;
|
|
};
|
|
} // namespace llvm
|
|
#endif
|