23 "SM_Enabled and SM_Compatible are mutually exclusive");
27 "ZA_New and SME_ABI_Routine are mutually exclusive");
32 "Attributes 'aarch64_new_za', 'aarch64_in_za', 'aarch64_out_za', "
33 "'aarch64_inout_za' and 'aarch64_preserves_za' are mutually exclusive");
39 "Attributes 'aarch64_new_zt0', 'aarch64_in_zt0', 'aarch64_out_zt0', "
40 "'aarch64_inout_zt0' and 'aarch64_preserves_zt0' are mutually exclusive");
51 if (FuncName ==
"__arm_tpidr2_save" || FuncName ==
"__arm_sme_state")
53 if (FuncName ==
"__arm_tpidr2_restore")
56 if (FuncName ==
"__arm_sc_memcpy" || FuncName ==
"__arm_sc_memset" ||
57 FuncName ==
"__arm_sc_memmove" || FuncName ==
"__arm_sc_memchr")
63 if (Attrs.hasFnAttr(
"aarch64_pstate_sm_enabled"))
65 if (Attrs.hasFnAttr(
"aarch64_pstate_sm_compatible"))
67 if (Attrs.hasFnAttr(
"aarch64_pstate_sm_body"))
69 if (Attrs.hasFnAttr(
"aarch64_in_za"))
71 if (Attrs.hasFnAttr(
"aarch64_out_za"))
73 if (Attrs.hasFnAttr(
"aarch64_inout_za"))
75 if (Attrs.hasFnAttr(
"aarch64_preserves_za"))
77 if (Attrs.hasFnAttr(
"aarch64_new_za"))
79 if (Attrs.hasFnAttr(
"aarch64_in_zt0"))
81 if (Attrs.hasFnAttr(
"aarch64_out_zt0"))
83 if (Attrs.hasFnAttr(
"aarch64_inout_zt0"))
85 if (Attrs.hasFnAttr(
"aarch64_preserves_zt0"))
87 if (Attrs.hasFnAttr(
"aarch64_new_zt0"))
92 if (Callee.hasStreamingCompatibleInterface())
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Base class for all callable instructions (InvokeInst and CallInst) Holds everything related to callin...
Function * getCalledFunction() const
Returns the function called, or null if this is an indirect function invocation or the function signa...
AttributeList getAttributes() const
Return the parameter attributes for this call.
SMEAttrs is a utility class to parse the SME ACLE attributes on functions.
bool isPreservesZT0() const
bool hasStreamingInterface() const
static unsigned encodeZAState(StateValue S)
bool hasNonStreamingInterfaceAndBody() const
SMEAttrs(unsigned Mask=Normal)
bool hasStreamingCompatibleInterface() const
bool requiresSMChange(const SMEAttrs &Callee) const
bool hasStreamingInterfaceOrBody() const
void set(unsigned M, bool Enable=true)
bool isPreservesZA() const
static unsigned encodeZT0State(StateValue S)
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.