1 //===-- DirectXFrameLowering.h - Frame lowering for DirectX --*- C++ ---*--===//
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
7 //===----------------------------------------------------------------------===//
9 // This class implements DirectX-specific bits of TargetFrameLowering class.
10 // This is just a stub because the current DXIL backend does not actually lower
11 // through the MC layer.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_DIRECTX_DIRECTXFRAMELOWERING_H
16 #define LLVM_DIRECTX_DIRECTXFRAMELOWERING_H
18 #include "llvm/CodeGen/TargetFrameLowering.h"
19 #include "llvm/Support/Alignment.h"
22 class DirectXSubtarget
;
24 class DirectXFrameLowering
: public TargetFrameLowering
{
26 explicit DirectXFrameLowering(const DirectXSubtarget
&STI
)
27 : TargetFrameLowering(TargetFrameLowering::StackGrowsDown
, Align(8), 0) {}
29 void emitPrologue(MachineFunction
&, MachineBasicBlock
&) const override
{}
30 void emitEpilogue(MachineFunction
&, MachineBasicBlock
&) const override
{}
32 bool hasFP(const MachineFunction
&) const override
{ return false; }
35 #endif // LLVM_DIRECTX_DIRECTXFRAMELOWERING_H