llvm-project/llvm/lib/Target/Foot/FootMachineFunctionInfo.h
2025-11-11 13:14:20 -05:00

25 lines
712 B
C++

#ifndef LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H
#define LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H
#include "llvm/CodeGen/MachineFunction.h"
namespace llvm {
class FootMachineFunctionInfo : public MachineFunctionInfo {
int RetAddrFI = -1;
public:
FootMachineFunctionInfo() = default;
int getReturnAddressFrameIndex() const { return RetAddrFI; }
void setReturnAddressFrameIndex(int RetAddrFI) { this->RetAddrFI = RetAddrFI; }
MachineFunctionInfo *
clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF,
const DenseMap<MachineBasicBlock *, MachineBasicBlock *> &Src2DstMBB) const override;
};
} // namespace llvm
#endif // LLVM_LIB_TARGET_FOOT_FOOTMACHINEFUNCTIONINFO_H