LLVM  16.0.0git
DirectXFrameLowering.h
Go to the documentation of this file.
1 //===-- DirectXFrameLowering.h - Frame lowering for DirectX --*- C++ ---*--===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 //
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.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_DIRECTX_DIRECTXFRAMELOWERING_H
16 #define LLVM_DIRECTX_DIRECTXFRAMELOWERING_H
17 
19 #include "llvm/Support/Alignment.h"
20 
21 namespace llvm {
22 class DirectXSubtarget;
23 
25 public:
28 
29  void emitPrologue(MachineFunction &, MachineBasicBlock &) const override {}
30  void emitEpilogue(MachineFunction &, MachineBasicBlock &) const override {}
31 
32  bool hasFP(const MachineFunction &) const override { return false; }
33 };
34 } // namespace llvm
35 #endif // LLVM_DIRECTX_DIRECTXFRAMELOWERING_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
TargetFrameLowering.h
llvm::TargetFrameLowering
Information about stack frame layout on the target.
Definition: TargetFrameLowering.h:43
llvm::DirectXSubtarget
Definition: DirectXSubtarget.h:30
llvm::DirectXFrameLowering::hasFP
bool hasFP(const MachineFunction &) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
Definition: DirectXFrameLowering.h:32
llvm::DirectXFrameLowering::DirectXFrameLowering
DirectXFrameLowering(const DirectXSubtarget &STI)
Definition: DirectXFrameLowering.h:26
llvm::DirectXFrameLowering
Definition: DirectXFrameLowering.h:24
llvm::Align
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:94
llvm::DirectXFrameLowering::emitPrologue
void emitPrologue(MachineFunction &, MachineBasicBlock &) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
Definition: DirectXFrameLowering.h:29
llvm::MachineFunction
Definition: MachineFunction.h:257
Alignment.h
llvm::DirectXFrameLowering::emitEpilogue
void emitEpilogue(MachineFunction &, MachineBasicBlock &) const override
Definition: DirectXFrameLowering.h:30
llvm::TargetFrameLowering::StackGrowsDown
@ StackGrowsDown
Definition: TargetFrameLowering.h:47