Path: blob/main/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXFrameLowering.h
35269 views
//===-- DirectXFrameLowering.h - Frame lowering for DirectX --*- 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// This class implements DirectX-specific bits of TargetFrameLowering class.9// This is just a stub because the current DXIL backend does not actually lower10// through the MC layer.11//12//===----------------------------------------------------------------------===//1314#ifndef LLVM_DIRECTX_DIRECTXFRAMELOWERING_H15#define LLVM_DIRECTX_DIRECTXFRAMELOWERING_H1617#include "llvm/CodeGen/TargetFrameLowering.h"18#include "llvm/Support/Alignment.h"1920namespace llvm {21class DirectXSubtarget;2223class DirectXFrameLowering : public TargetFrameLowering {24public:25explicit DirectXFrameLowering(const DirectXSubtarget &STI)26: TargetFrameLowering(TargetFrameLowering::StackGrowsDown, Align(8), 0) {}2728void emitPrologue(MachineFunction &, MachineBasicBlock &) const override {}29void emitEpilogue(MachineFunction &, MachineBasicBlock &) const override {}3031bool hasFP(const MachineFunction &) const override { return false; }32};33} // namespace llvm34#endif // LLVM_DIRECTX_DIRECTXFRAMELOWERING_H353637