Path: blob/main/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.h
35268 views
//===--------------------- AMDGPUFrameLowering.h ----------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8/// \file9/// Interface to describe a layout of a stack frame on an AMDGPU target.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H14#define LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H1516#include "llvm/CodeGen/TargetFrameLowering.h"1718namespace llvm {1920/// Information about the stack frame layout on the AMDGPU targets.21///22/// It holds the direction of the stack growth, the known stack alignment on23/// entry to each function, and the offset to the locals area.24/// See TargetFrameInfo for more comments.25class AMDGPUFrameLowering : public TargetFrameLowering {26public:27AMDGPUFrameLowering(StackDirection D, Align StackAl, int LAO,28Align TransAl = Align(1));29~AMDGPUFrameLowering() override;3031/// \returns The number of 32-bit sub-registers that are used when storing32/// values to the stack.33unsigned getStackWidth(const MachineFunction &MF) const;34};3536} // end namespace llvm3738#endif // LLVM_LIB_TARGET_AMDGPU_AMDGPUFRAMELOWERING_H394041