[clang] [CIR][AArch64] Add lowering for `svlen` builtins (1/2) (PR #172346)
Andrzej WarzyĆski via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 08:32:25 PST 2025
================
@@ -41,6 +53,16 @@ CIRGenFunction::emitAArch64SVEBuiltinExpr(unsigned builtinID,
return mlir::Value{};
}
+ mlir::Location loc = getLoc(expr->getExprLoc());
+ // Generate vscale * scalingFactor
+ auto vscaleTimesFactor = [&](int32_t scalingFactor) {
+ StringRef intrinsicName = "vscale.i64";
+ auto vscale = emitIntrinsicCallOp(builder, loc, intrinsicName,
+ convertType(expr->getType()));
+ return builder.createMul(loc, vscale,
----------------
banach-space wrote:
Apologies, that's my sloppiness, thanks for catching this!
https://github.com/llvm/llvm-project/pull/172346
More information about the cfe-commits
mailing list