[clang] [llvm] [SME2] Add LUTI2 and LUTI4 quad Builtins and Intrinsics (PR #73317)

David Sherwood via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 07:41:13 PST 2023


================
@@ -1859,6 +1867,34 @@ void AArch64DAGToDAGISel::SelectFrintFromVT(SDNode *N, unsigned NumVecs,
   SelectUnaryMultiIntrinsic(N, NumVecs, true, Opcode);
 }
 
+template <int64_t Max>
----------------
david-arm wrote:

Rather than create two almost identical copies of the function with a template parameter, I think in this case it makes sense to just pass Max in as a function argument.

https://github.com/llvm/llvm-project/pull/73317


More information about the cfe-commits mailing list