14void ARMFunctionInfo::anchor() {}
30 if (!Subtarget->
isMClass() || !Subtarget->hasV7Ops())
33 return F.hasFnAttribute(
"branch-target-enforcement");
39 if (!
F.hasFnAttribute(
"sign-return-address")) {
40 return {
false,
false};
43 StringRef Scope =
F.getFnAttribute(
"sign-return-address").getValueAsString();
45 return {
false,
false};
50 assert(Scope ==
"non-leaf");
56 :
isThumb(Subtarget->
isThumb()), hasThumb2(Subtarget->hasThumb2()),
57 IsCmseNSEntry(
F.hasFnAttribute(
"cmse_nonsecure_entry")),
58 IsCmseNSCall(
F.hasFnAttribute(
"cmse_nonsecure_call")),
60 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)
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