[clang] [clang] Emit @llvm.assume before streaming_compatible functions when the streaming mode is known (PR #121917)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 8 04:33:37 PST 2025
================
@@ -1275,6 +1279,31 @@ bool AArch64TargetCodeGenInfo::wouldInliningViolateFunctionCallABI(
GetArmSMEInlinability(Caller, Callee) != ArmSMEInlinability::Ok;
}
+void AArch64TargetCodeGenInfo::emitFunctionCallProlog(
+ CGBuilderTy &Builder, const FunctionDecl *Caller,
+ const FunctionDecl *Callee) const {
+ const AArch64ABIInfo &ABIInfo = getABIInfo<AArch64ABIInfo>();
+ const TargetInfo &TI = ABIInfo.getContext().getTargetInfo();
+
+ if (!TI.hasFeature("sme"))
+ return;
+
----------------
sdesmalen-arm wrote:
Is this check really necessary?
https://github.com/llvm/llvm-project/pull/121917
More information about the cfe-commits
mailing list