[clang] [AArch64][Clang] Refactor code to emit SVE & SME builtins (PR #70662)
Sander de Smalen via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 31 09:58:08 PDT 2023
================
@@ -9924,12 +9917,56 @@ Value *CodeGenFunction::EmitAArch64SVEBuiltinExpr(unsigned BuiltinID,
// immediate requires more than a handful of bits.
*Result = Result->extOrTrunc(32);
Ops.push_back(llvm::ConstantInt::get(getLLVMContext(), *Result));
+ continue;
+ }
+
+ if (IsTupleGetOrSet) {
+ Ops.push_back(EmitScalarExpr(E->getArg(i)));
----------------
sdesmalen-arm wrote:
This is the same as `Ops.push_back(Arg);` ? And if so, you can combine it with the case below.
https://github.com/llvm/llvm-project/pull/70662
More information about the cfe-commits
mailing list