15void ARMFunctionInfo::anchor() {}
31 if (!Subtarget->
isMClass() || !Subtarget->hasV7Ops())
34 return F.hasFnAttribute(
"branch-target-enforcement");
40 if (!
F.hasFnAttribute(
"sign-return-address")) {
41 return {
false,
false};
44 StringRef Scope =
F.getFnAttribute(
"sign-return-address").getValueAsString();
46 return {
false,
false};
51 assert(Scope ==
"non-leaf");
57 :
isThumb(Subtarget->
isThumb()), hasThumb2(Subtarget->hasThumb2()),
58 IsCmseNSEntry(
F.hasFnAttribute(
"cmse_nonsecure_entry")),
59 IsCmseNSCall(
F.hasFnAttribute(
"cmse_nonsecure_call")),
61 if (Subtarget->
isMClass() && Subtarget->hasV7Ops())
static std::pair< bool, bool > GetSignReturnAddress(const Function &F)
static bool isLRSpilled(const MachineFunction &MF)
static bool isThumb(const MCSubtargetInfo &STI)
static bool GetBranchTargetEnforcement(const Function &F, const ARMSubtarget *Subtarget)
Module.h This file contains the declarations for the Module class.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific in...
void initializeBaseYamlFields(const yaml::ARMFunctionInfo &YamlMFI)
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
Allocate memory in an ever growing pool, as if by bump-pointer.
Ty * cloneInfo(const Ty &Old)
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
void mappingImpl(yaml::IO &YamlIO) override
ARMFunctionInfo()=default