LLVM 19.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
20
21namespace llvm {
22class DirectXSubtarget;
23
25public:
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
bool hasFP(const MachineFunction &) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
void emitEpilogue(MachineFunction &, MachineBasicBlock &) const override
void emitPrologue(MachineFunction &, MachineBasicBlock &) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
DirectXFrameLowering(const DirectXSubtarget &STI)
Information about stack frame layout on the target.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
This struct is a compact representation of a valid (non-zero power of two) alignment.
Definition: Alignment.h:39