1//===- IntrinsicsAARCH64.td - Defines AARCH64 intrinsics ---*- tablegen -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// This file defines all of the AARCH64-specific intrinsics. 10// 11//===----------------------------------------------------------------------===// 12 13let TargetPrefix = "aarch64" in { 14 15def int_aarch64_ldxr : Intrinsic<[llvm_i64_ty], [llvm_anyptr_ty], 16 [IntrNoFree, IntrWillReturn]>; 17def int_aarch64_ldaxr : Intrinsic<[llvm_i64_ty], [llvm_anyptr_ty], 18 [IntrNoFree, IntrWillReturn]>; 19def int_aarch64_stxr : Intrinsic<[llvm_i32_ty], [llvm_i64_ty, llvm_anyptr_ty], 20 [IntrNoFree, IntrWillReturn]>; 21def int_aarch64_stlxr : Intrinsic<[llvm_i32_ty], [llvm_i64_ty, llvm_anyptr_ty], 22 [IntrNoFree, IntrWillReturn]>; 23 24def int_aarch64_ldxp : Intrinsic<[llvm_i64_ty, llvm_i64_ty], [llvm_ptr_ty], 25 [IntrNoFree, IntrWillReturn]>; 26def int_aarch64_ldaxp : Intrinsic<[llvm_i64_ty, llvm_i64_ty], [llvm_ptr_ty], 27 [IntrNoFree, IntrWillReturn]>; 28def int_aarch64_stxp : Intrinsic<[llvm_i32_ty], 29 [llvm_i64_ty, llvm_i64_ty, llvm_ptr_ty], 30 [IntrNoFree, IntrWillReturn]>; 31def int_aarch64_stlxp : Intrinsic<[llvm_i32_ty], 32 [llvm_i64_ty, llvm_i64_ty, llvm_ptr_ty], 33 [IntrNoFree, IntrWillReturn]>; 34 35def int_aarch64_clrex : Intrinsic<[]>; 36 37def int_aarch64_sdiv : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, 38 LLVMMatchType<0>], [IntrNoMem]>; 39def int_aarch64_udiv : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, 40 LLVMMatchType<0>], [IntrNoMem]>; 41 42def int_aarch64_fjcvtzs : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_double_ty], [IntrNoMem]>; 43 44def int_aarch64_cls: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>; 45def int_aarch64_cls64: DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i64_ty], [IntrNoMem]>; 46 47def int_aarch64_frint32z 48 : DefaultAttrsIntrinsic<[ llvm_anyfloat_ty ], [ LLVMMatchType<0> ], 49 [ IntrNoMem ]>; 50def int_aarch64_frint64z 51 : DefaultAttrsIntrinsic<[ llvm_anyfloat_ty ], [ LLVMMatchType<0> ], 52 [ IntrNoMem ]>; 53def int_aarch64_frint32x 54 : DefaultAttrsIntrinsic<[ llvm_anyfloat_ty ], [ LLVMMatchType<0> ], 55 [ IntrNoMem ]>; 56def int_aarch64_frint64x 57 : DefaultAttrsIntrinsic<[ llvm_anyfloat_ty ], [ LLVMMatchType<0> ], 58 [ IntrNoMem ]>; 59 60//===----------------------------------------------------------------------===// 61// HINT 62 63def int_aarch64_hint : DefaultAttrsIntrinsic<[], [llvm_i32_ty]>; 64 65def int_aarch64_break : Intrinsic<[], [llvm_i32_ty], 66 [IntrNoMem, IntrHasSideEffects, IntrNoReturn, IntrCold, ImmArg<ArgIndex<0>>]>; 67 68 69def int_aarch64_prefetch : Intrinsic<[], 70 [llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty, llvm_i32_ty], 71 [IntrInaccessibleMemOrArgMemOnly, IntrWillReturn, ReadOnly<ArgIndex<0>>, 72 ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>, ImmArg<ArgIndex<3>>, ImmArg<ArgIndex<4>> 73 ]>, 74 ClangBuiltin<"__builtin_arm_prefetch">; 75 76//===----------------------------------------------------------------------===// 77// Data Barrier Instructions 78 79def int_aarch64_dmb : ClangBuiltin<"__builtin_arm_dmb">, MSBuiltin<"__dmb">, 80 Intrinsic<[], [llvm_i32_ty], [IntrNoFree, IntrWillReturn]>; 81def int_aarch64_dsb : ClangBuiltin<"__builtin_arm_dsb">, MSBuiltin<"__dsb">, 82 Intrinsic<[], [llvm_i32_ty], [IntrNoFree, IntrWillReturn]>; 83def int_aarch64_isb : ClangBuiltin<"__builtin_arm_isb">, MSBuiltin<"__isb">, 84 Intrinsic<[], [llvm_i32_ty], [IntrNoFree, IntrWillReturn]>; 85 86// A space-consuming intrinsic primarily for testing block and jump table 87// placements. The first argument is the number of bytes this "instruction" 88// takes up, the second and return value are essentially chains, used to force 89// ordering during ISel. 90def int_aarch64_space : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i32_ty, llvm_i64_ty], []>; 91 92} 93 94//===----------------------------------------------------------------------===// 95// Advanced SIMD (NEON) 96 97let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 98 class AdvSIMD_2Scalar_Float_Intrinsic 99 : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, LLVMMatchType<0>], 100 [IntrNoMem]>; 101 102 class AdvSIMD_FPToIntRounding_Intrinsic 103 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty], [IntrNoMem]>; 104 105 class AdvSIMD_1IntArg_Intrinsic 106 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>], [IntrNoMem]>; 107 class AdvSIMD_1FloatArg_Intrinsic 108 : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>], [IntrNoMem]>; 109 class AdvSIMD_1VectorArg_Intrinsic 110 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [LLVMMatchType<0>], [IntrNoMem]>; 111 class AdvSIMD_1VectorArg_Expand_Intrinsic 112 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [llvm_anyvector_ty], [IntrNoMem]>; 113 class AdvSIMD_1VectorArg_Long_Intrinsic 114 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [LLVMTruncatedType<0>], [IntrNoMem]>; 115 class AdvSIMD_1IntArg_Narrow_Intrinsic 116 : DefaultAttrsIntrinsic<[llvm_any_ty], [llvm_any_ty], [IntrNoMem]>; 117 class AdvSIMD_1VectorArg_Narrow_Intrinsic 118 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMExtendedType<0>], [IntrNoMem]>; 119 class AdvSIMD_1VectorArg_Int_Across_Intrinsic 120 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyvector_ty], [IntrNoMem]>; 121 class AdvSIMD_1VectorArg_Float_Across_Intrinsic 122 : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [llvm_anyvector_ty], [IntrNoMem]>; 123 124 class AdvSIMD_2IntArg_Intrinsic 125 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [LLVMMatchType<0>, LLVMMatchType<0>], 126 [IntrNoMem]>; 127 class AdvSIMD_2FloatArg_Intrinsic 128 : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [LLVMMatchType<0>, LLVMMatchType<0>], 129 [IntrNoMem]>; 130 class AdvSIMD_2VectorArg_Intrinsic 131 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [LLVMMatchType<0>, LLVMMatchType<0>], 132 [IntrNoMem]>; 133 class AdvSIMD_2VectorArg_Compare_Intrinsic 134 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [llvm_anyvector_ty, LLVMMatchType<1>], 135 [IntrNoMem]>; 136 class AdvSIMD_2Arg_FloatCompare_Intrinsic 137 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty, LLVMMatchType<1>], 138 [IntrNoMem]>; 139 class AdvSIMD_2VectorArg_Long_Intrinsic 140 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 141 [LLVMTruncatedType<0>, LLVMTruncatedType<0>], 142 [IntrNoMem]>; 143 class AdvSIMD_2VectorArg_Wide_Intrinsic 144 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 145 [LLVMMatchType<0>, LLVMTruncatedType<0>], 146 [IntrNoMem]>; 147 class AdvSIMD_2VectorArg_Narrow_Intrinsic 148 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 149 [LLVMExtendedType<0>, LLVMExtendedType<0>], 150 [IntrNoMem]>; 151 class AdvSIMD_2Arg_Scalar_Narrow_Intrinsic 152 : DefaultAttrsIntrinsic<[llvm_anyint_ty], 153 [LLVMExtendedType<0>, llvm_i32_ty], 154 [IntrNoMem]>; 155 class AdvSIMD_2VectorArg_Scalar_Expand_BySize_Intrinsic 156 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 157 [llvm_anyvector_ty], 158 [IntrNoMem]>; 159 class AdvSIMD_2VectorArg_Scalar_Wide_BySize_Intrinsic 160 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 161 [LLVMTruncatedType<0>], 162 [IntrNoMem]>; 163 class AdvSIMD_2VectorArg_Scalar_Wide_Intrinsic 164 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 165 [LLVMTruncatedType<0>, llvm_i32_ty], 166 [IntrNoMem]>; 167 class AdvSIMD_2VectorArg_Tied_Narrow_Intrinsic 168 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 169 [LLVMHalfElementsVectorType<0>, llvm_anyvector_ty], 170 [IntrNoMem]>; 171 class AdvSIMD_2VectorArg_Lane_Intrinsic 172 : DefaultAttrsIntrinsic<[llvm_anyint_ty], 173 [LLVMMatchType<0>, llvm_anyint_ty, llvm_i32_ty], 174 [IntrNoMem]>; 175 176 class AdvSIMD_3IntArg_Intrinsic 177 : DefaultAttrsIntrinsic<[llvm_anyint_ty], 178 [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 179 [IntrNoMem]>; 180 class AdvSIMD_3VectorArg_Intrinsic 181 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 182 [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 183 [IntrNoMem]>; 184 class AdvSIMD_3VectorArg_Scalar_Intrinsic 185 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 186 [LLVMMatchType<0>, LLVMMatchType<0>, llvm_i32_ty], 187 [IntrNoMem]>; 188 class AdvSIMD_3VectorArg_Tied_Narrow_Intrinsic 189 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 190 [LLVMHalfElementsVectorType<0>, llvm_anyvector_ty, 191 LLVMMatchType<1>], [IntrNoMem]>; 192 class AdvSIMD_3VectorArg_Scalar_Tied_Narrow_Intrinsic 193 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 194 [LLVMHalfElementsVectorType<0>, llvm_anyvector_ty, llvm_i32_ty], 195 [IntrNoMem]>; 196 class AdvSIMD_CvtFxToFP_Intrinsic 197 : DefaultAttrsIntrinsic<[llvm_anyfloat_ty], [llvm_anyint_ty, llvm_i32_ty], 198 [IntrNoMem]>; 199 class AdvSIMD_CvtFPToFx_Intrinsic 200 : DefaultAttrsIntrinsic<[llvm_anyint_ty], [llvm_anyfloat_ty, llvm_i32_ty], 201 [IntrNoMem]>; 202 203 class AdvSIMD_1Arg_Intrinsic 204 : DefaultAttrsIntrinsic<[llvm_any_ty], [LLVMMatchType<0>], [IntrNoMem]>; 205 206 class AdvSIMD_Dot_Intrinsic 207 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 208 [LLVMMatchType<0>, llvm_anyvector_ty, LLVMMatchType<1>], 209 [IntrNoMem]>; 210 211 class AdvSIMD_FP16FML_Intrinsic 212 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 213 [LLVMMatchType<0>, llvm_anyvector_ty, LLVMMatchType<1>], 214 [IntrNoMem]>; 215 216 class AdvSIMD_MatMul_Intrinsic 217 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 218 [LLVMMatchType<0>, llvm_anyvector_ty, LLVMMatchType<1>], 219 [IntrNoMem]>; 220 221 class AdvSIMD_FML_Intrinsic 222 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 223 [LLVMMatchType<0>, llvm_anyvector_ty, LLVMMatchType<1>], 224 [IntrNoMem]>; 225 226 class AdvSIMD_BF16FML_Intrinsic 227 : DefaultAttrsIntrinsic<[llvm_v4f32_ty], 228 [llvm_v4f32_ty, llvm_v8bf16_ty, llvm_v8bf16_ty], 229 [IntrNoMem]>; 230} 231 232// Arithmetic ops 233 234let TargetPrefix = "aarch64", IntrProperties = [IntrNoMem] in { 235 // Vector Add Across Lanes 236 def int_aarch64_neon_saddv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 237 def int_aarch64_neon_uaddv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 238 def int_aarch64_neon_faddv : AdvSIMD_1VectorArg_Float_Across_Intrinsic; 239 240 // Vector Long Add Across Lanes 241 def int_aarch64_neon_saddlv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 242 def int_aarch64_neon_uaddlv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 243 244 // Vector Halving Add 245 def int_aarch64_neon_shadd : AdvSIMD_2VectorArg_Intrinsic; 246 def int_aarch64_neon_uhadd : AdvSIMD_2VectorArg_Intrinsic; 247 248 // Vector Rounding Halving Add 249 def int_aarch64_neon_srhadd : AdvSIMD_2VectorArg_Intrinsic; 250 def int_aarch64_neon_urhadd : AdvSIMD_2VectorArg_Intrinsic; 251 252 // Vector Saturating Add 253 def int_aarch64_neon_sqadd : AdvSIMD_2IntArg_Intrinsic; 254 def int_aarch64_neon_suqadd : AdvSIMD_2IntArg_Intrinsic; 255 def int_aarch64_neon_usqadd : AdvSIMD_2IntArg_Intrinsic; 256 def int_aarch64_neon_uqadd : AdvSIMD_2IntArg_Intrinsic; 257 258 // Vector Add High-Half 259 // FIXME: this is a legacy intrinsic for aarch64_simd.h. Remove it when that 260 // header is no longer supported. 261 def int_aarch64_neon_addhn : AdvSIMD_2VectorArg_Narrow_Intrinsic; 262 263 // Vector Rounding Add High-Half 264 def int_aarch64_neon_raddhn : AdvSIMD_2VectorArg_Narrow_Intrinsic; 265 266 // Vector Saturating Doubling Multiply High 267 def int_aarch64_neon_sqdmulh : AdvSIMD_2IntArg_Intrinsic; 268 def int_aarch64_neon_sqdmulh_lane : AdvSIMD_2VectorArg_Lane_Intrinsic; 269 def int_aarch64_neon_sqdmulh_laneq : AdvSIMD_2VectorArg_Lane_Intrinsic; 270 271 // Vector Saturating Rounding Doubling Multiply High 272 def int_aarch64_neon_sqrdmulh : AdvSIMD_2IntArg_Intrinsic; 273 def int_aarch64_neon_sqrdmulh_lane : AdvSIMD_2VectorArg_Lane_Intrinsic; 274 def int_aarch64_neon_sqrdmulh_laneq : AdvSIMD_2VectorArg_Lane_Intrinsic; 275 276 def int_aarch64_neon_sqrdmlah : AdvSIMD_3IntArg_Intrinsic; 277 def int_aarch64_neon_sqrdmlsh : AdvSIMD_3IntArg_Intrinsic; 278 279 // Vector Polynominal Multiply 280 def int_aarch64_neon_pmul : AdvSIMD_2VectorArg_Intrinsic; 281 282 // Vector Long Multiply 283 def int_aarch64_neon_smull : AdvSIMD_2VectorArg_Long_Intrinsic; 284 def int_aarch64_neon_umull : AdvSIMD_2VectorArg_Long_Intrinsic; 285 def int_aarch64_neon_pmull : AdvSIMD_2VectorArg_Long_Intrinsic; 286 287 // 64-bit polynomial multiply really returns an i128, which is not legal. Fake 288 // it with a v16i8. 289 def int_aarch64_neon_pmull64 : 290 DefaultAttrsIntrinsic<[llvm_v16i8_ty], [llvm_i64_ty, llvm_i64_ty], [IntrNoMem]>; 291 292 // Vector Extending Multiply 293 def int_aarch64_neon_fmulx : AdvSIMD_2FloatArg_Intrinsic { 294 let IntrProperties = [IntrNoMem, Commutative]; 295 } 296 297 // Vector Saturating Doubling Long Multiply 298 def int_aarch64_neon_sqdmull : AdvSIMD_2VectorArg_Long_Intrinsic; 299 def int_aarch64_neon_sqdmulls_scalar 300 : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>; 301 302 // Vector Halving Subtract 303 def int_aarch64_neon_shsub : AdvSIMD_2VectorArg_Intrinsic; 304 def int_aarch64_neon_uhsub : AdvSIMD_2VectorArg_Intrinsic; 305 306 // Vector Saturating Subtract 307 def int_aarch64_neon_sqsub : AdvSIMD_2IntArg_Intrinsic; 308 def int_aarch64_neon_uqsub : AdvSIMD_2IntArg_Intrinsic; 309 310 // Vector Subtract High-Half 311 // FIXME: this is a legacy intrinsic for aarch64_simd.h. Remove it when that 312 // header is no longer supported. 313 def int_aarch64_neon_subhn : AdvSIMD_2VectorArg_Narrow_Intrinsic; 314 315 // Vector Rounding Subtract High-Half 316 def int_aarch64_neon_rsubhn : AdvSIMD_2VectorArg_Narrow_Intrinsic; 317 318 // Vector Compare Absolute Greater-than-or-equal 319 def int_aarch64_neon_facge : AdvSIMD_2Arg_FloatCompare_Intrinsic; 320 321 // Vector Compare Absolute Greater-than 322 def int_aarch64_neon_facgt : AdvSIMD_2Arg_FloatCompare_Intrinsic; 323 324 // Vector Absolute Difference 325 def int_aarch64_neon_sabd : AdvSIMD_2VectorArg_Intrinsic; 326 def int_aarch64_neon_uabd : AdvSIMD_2VectorArg_Intrinsic; 327 def int_aarch64_neon_fabd : AdvSIMD_2VectorArg_Intrinsic; 328 329 // Scalar Absolute Difference 330 def int_aarch64_sisd_fabd : AdvSIMD_2Scalar_Float_Intrinsic; 331 332 // Vector Max 333 def int_aarch64_neon_smax : AdvSIMD_2VectorArg_Intrinsic; 334 def int_aarch64_neon_umax : AdvSIMD_2VectorArg_Intrinsic; 335 def int_aarch64_neon_fmax : AdvSIMD_2FloatArg_Intrinsic; 336 def int_aarch64_neon_fmaxnmp : AdvSIMD_2VectorArg_Intrinsic; 337 338 // Vector Max Across Lanes 339 def int_aarch64_neon_smaxv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 340 def int_aarch64_neon_umaxv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 341 def int_aarch64_neon_fmaxv : AdvSIMD_1VectorArg_Float_Across_Intrinsic; 342 def int_aarch64_neon_fmaxnmv : AdvSIMD_1VectorArg_Float_Across_Intrinsic; 343 344 // Vector Min 345 def int_aarch64_neon_smin : AdvSIMD_2VectorArg_Intrinsic; 346 def int_aarch64_neon_umin : AdvSIMD_2VectorArg_Intrinsic; 347 def int_aarch64_neon_fmin : AdvSIMD_2FloatArg_Intrinsic; 348 def int_aarch64_neon_fminnmp : AdvSIMD_2VectorArg_Intrinsic; 349 350 // Vector Min/Max Number 351 def int_aarch64_neon_fminnm : AdvSIMD_2FloatArg_Intrinsic; 352 def int_aarch64_neon_fmaxnm : AdvSIMD_2FloatArg_Intrinsic; 353 354 // Vector Min Across Lanes 355 def int_aarch64_neon_sminv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 356 def int_aarch64_neon_uminv : AdvSIMD_1VectorArg_Int_Across_Intrinsic; 357 def int_aarch64_neon_fminv : AdvSIMD_1VectorArg_Float_Across_Intrinsic; 358 def int_aarch64_neon_fminnmv : AdvSIMD_1VectorArg_Float_Across_Intrinsic; 359 360 // Pairwise Add 361 def int_aarch64_neon_addp : AdvSIMD_2VectorArg_Intrinsic; 362 def int_aarch64_neon_faddp : AdvSIMD_2VectorArg_Intrinsic; 363 364 // Long Pairwise Add 365 // FIXME: In theory, we shouldn't need intrinsics for saddlp or 366 // uaddlp, but tblgen's type inference currently can't handle the 367 // pattern fragments this ends up generating. 368 def int_aarch64_neon_saddlp : AdvSIMD_1VectorArg_Expand_Intrinsic; 369 def int_aarch64_neon_uaddlp : AdvSIMD_1VectorArg_Expand_Intrinsic; 370 371 // Folding Maximum 372 def int_aarch64_neon_smaxp : AdvSIMD_2VectorArg_Intrinsic; 373 def int_aarch64_neon_umaxp : AdvSIMD_2VectorArg_Intrinsic; 374 def int_aarch64_neon_fmaxp : AdvSIMD_2VectorArg_Intrinsic; 375 376 // Folding Minimum 377 def int_aarch64_neon_sminp : AdvSIMD_2VectorArg_Intrinsic; 378 def int_aarch64_neon_uminp : AdvSIMD_2VectorArg_Intrinsic; 379 def int_aarch64_neon_fminp : AdvSIMD_2VectorArg_Intrinsic; 380 381 // Reciprocal Estimate/Step 382 def int_aarch64_neon_frecps : AdvSIMD_2FloatArg_Intrinsic; 383 def int_aarch64_neon_frsqrts : AdvSIMD_2FloatArg_Intrinsic; 384 385 // Reciprocal Exponent 386 def int_aarch64_neon_frecpx : AdvSIMD_1FloatArg_Intrinsic; 387 388 // Vector Saturating Shift Left 389 def int_aarch64_neon_sqshl : AdvSIMD_2IntArg_Intrinsic; 390 def int_aarch64_neon_uqshl : AdvSIMD_2IntArg_Intrinsic; 391 392 // Vector Rounding Shift Left 393 def int_aarch64_neon_srshl : AdvSIMD_2IntArg_Intrinsic; 394 def int_aarch64_neon_urshl : AdvSIMD_2IntArg_Intrinsic; 395 396 // Vector Saturating Rounding Shift Left 397 def int_aarch64_neon_sqrshl : AdvSIMD_2IntArg_Intrinsic; 398 def int_aarch64_neon_uqrshl : AdvSIMD_2IntArg_Intrinsic; 399 400 // Vector Signed->Unsigned Shift Left by Constant 401 def int_aarch64_neon_sqshlu : AdvSIMD_2IntArg_Intrinsic; 402 403 // Vector Signed->Unsigned Narrowing Saturating Shift Right by Constant 404 def int_aarch64_neon_sqshrun : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 405 406 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const 407 def int_aarch64_neon_sqrshrun : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 408 409 // Vector Narrowing Shift Right by Constant 410 def int_aarch64_neon_sqshrn : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 411 def int_aarch64_neon_uqshrn : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 412 413 // Vector Rounding Narrowing Shift Right by Constant 414 def int_aarch64_neon_rshrn : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 415 416 // Vector Rounding Narrowing Saturating Shift Right by Constant 417 def int_aarch64_neon_sqrshrn : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 418 def int_aarch64_neon_uqrshrn : AdvSIMD_2Arg_Scalar_Narrow_Intrinsic; 419 420 // Vector Shift Left 421 def int_aarch64_neon_sshl : AdvSIMD_2IntArg_Intrinsic; 422 def int_aarch64_neon_ushl : AdvSIMD_2IntArg_Intrinsic; 423 424 // Vector Widening Shift Left by Constant 425 def int_aarch64_neon_shll : AdvSIMD_2VectorArg_Scalar_Wide_BySize_Intrinsic; 426 def int_aarch64_neon_sshll : AdvSIMD_2VectorArg_Scalar_Wide_Intrinsic; 427 def int_aarch64_neon_ushll : AdvSIMD_2VectorArg_Scalar_Wide_Intrinsic; 428 429 // Vector Shift Right by Constant and Insert 430 def int_aarch64_neon_vsri : AdvSIMD_3VectorArg_Scalar_Intrinsic; 431 432 // Vector Shift Left by Constant and Insert 433 def int_aarch64_neon_vsli : AdvSIMD_3VectorArg_Scalar_Intrinsic; 434 435 // Vector Saturating Narrow 436 def int_aarch64_neon_scalar_sqxtn: AdvSIMD_1IntArg_Narrow_Intrinsic; 437 def int_aarch64_neon_scalar_uqxtn : AdvSIMD_1IntArg_Narrow_Intrinsic; 438 def int_aarch64_neon_sqxtn : AdvSIMD_1VectorArg_Narrow_Intrinsic; 439 def int_aarch64_neon_uqxtn : AdvSIMD_1VectorArg_Narrow_Intrinsic; 440 441 // Vector Saturating Extract and Unsigned Narrow 442 def int_aarch64_neon_scalar_sqxtun : AdvSIMD_1IntArg_Narrow_Intrinsic; 443 def int_aarch64_neon_sqxtun : AdvSIMD_1VectorArg_Narrow_Intrinsic; 444 445 // Vector Absolute Value 446 def int_aarch64_neon_abs : AdvSIMD_1Arg_Intrinsic; 447 448 // Vector Saturating Absolute Value 449 def int_aarch64_neon_sqabs : AdvSIMD_1IntArg_Intrinsic; 450 451 // Vector Saturating Negation 452 def int_aarch64_neon_sqneg : AdvSIMD_1IntArg_Intrinsic; 453 454 // Vector Count Leading Sign Bits 455 def int_aarch64_neon_cls : AdvSIMD_1VectorArg_Intrinsic; 456 457 // Vector Reciprocal Estimate 458 def int_aarch64_neon_urecpe : AdvSIMD_1VectorArg_Intrinsic; 459 def int_aarch64_neon_frecpe : AdvSIMD_1FloatArg_Intrinsic; 460 461 // Vector Square Root Estimate 462 def int_aarch64_neon_ursqrte : AdvSIMD_1VectorArg_Intrinsic; 463 def int_aarch64_neon_frsqrte : AdvSIMD_1FloatArg_Intrinsic; 464 465 // Vector Conversions Between Half-Precision and Single-Precision. 466 def int_aarch64_neon_vcvtfp2hf 467 : DefaultAttrsIntrinsic<[llvm_v4i16_ty], [llvm_v4f32_ty], [IntrNoMem]>; 468 def int_aarch64_neon_vcvthf2fp 469 : DefaultAttrsIntrinsic<[llvm_v4f32_ty], [llvm_v4i16_ty], [IntrNoMem]>; 470 471 // Vector Conversions Between Floating-point and Fixed-point. 472 def int_aarch64_neon_vcvtfp2fxs : AdvSIMD_CvtFPToFx_Intrinsic; 473 def int_aarch64_neon_vcvtfp2fxu : AdvSIMD_CvtFPToFx_Intrinsic; 474 def int_aarch64_neon_vcvtfxs2fp : AdvSIMD_CvtFxToFP_Intrinsic; 475 def int_aarch64_neon_vcvtfxu2fp : AdvSIMD_CvtFxToFP_Intrinsic; 476 477 // Vector FP->Int Conversions 478 def int_aarch64_neon_fcvtas : AdvSIMD_FPToIntRounding_Intrinsic; 479 def int_aarch64_neon_fcvtau : AdvSIMD_FPToIntRounding_Intrinsic; 480 def int_aarch64_neon_fcvtms : AdvSIMD_FPToIntRounding_Intrinsic; 481 def int_aarch64_neon_fcvtmu : AdvSIMD_FPToIntRounding_Intrinsic; 482 def int_aarch64_neon_fcvtns : AdvSIMD_FPToIntRounding_Intrinsic; 483 def int_aarch64_neon_fcvtnu : AdvSIMD_FPToIntRounding_Intrinsic; 484 def int_aarch64_neon_fcvtps : AdvSIMD_FPToIntRounding_Intrinsic; 485 def int_aarch64_neon_fcvtpu : AdvSIMD_FPToIntRounding_Intrinsic; 486 def int_aarch64_neon_fcvtzs : AdvSIMD_FPToIntRounding_Intrinsic; 487 def int_aarch64_neon_fcvtzu : AdvSIMD_FPToIntRounding_Intrinsic; 488 489 // v8.5-A Vector FP Rounding 490 def int_aarch64_neon_frint32x : AdvSIMD_1FloatArg_Intrinsic; 491 def int_aarch64_neon_frint32z : AdvSIMD_1FloatArg_Intrinsic; 492 def int_aarch64_neon_frint64x : AdvSIMD_1FloatArg_Intrinsic; 493 def int_aarch64_neon_frint64z : AdvSIMD_1FloatArg_Intrinsic; 494 495 // Scalar FP->Int conversions 496 497 // Vector FP Inexact Narrowing 498 def int_aarch64_neon_fcvtxn : AdvSIMD_1VectorArg_Expand_Intrinsic; 499 500 // Scalar FP Inexact Narrowing 501 def int_aarch64_sisd_fcvtxn : DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_double_ty], 502 [IntrNoMem]>; 503 504 // v8.2-A Dot Product 505 def int_aarch64_neon_udot : AdvSIMD_Dot_Intrinsic; 506 def int_aarch64_neon_sdot : AdvSIMD_Dot_Intrinsic; 507 508 // v8.6-A Matrix Multiply Intrinsics 509 def int_aarch64_neon_ummla : AdvSIMD_MatMul_Intrinsic; 510 def int_aarch64_neon_smmla : AdvSIMD_MatMul_Intrinsic; 511 def int_aarch64_neon_usmmla : AdvSIMD_MatMul_Intrinsic; 512 def int_aarch64_neon_usdot : AdvSIMD_Dot_Intrinsic; 513 def int_aarch64_neon_bfdot : AdvSIMD_Dot_Intrinsic; 514 def int_aarch64_neon_bfmmla 515 : DefaultAttrsIntrinsic<[llvm_v4f32_ty], 516 [llvm_v4f32_ty, llvm_v8bf16_ty, llvm_v8bf16_ty], 517 [IntrNoMem]>; 518 def int_aarch64_neon_bfmlalb : AdvSIMD_BF16FML_Intrinsic; 519 def int_aarch64_neon_bfmlalt : AdvSIMD_BF16FML_Intrinsic; 520 521 522 // v8.6-A Bfloat Intrinsics 523 def int_aarch64_neon_bfcvt 524 : DefaultAttrsIntrinsic<[llvm_bfloat_ty], [llvm_float_ty], [IntrNoMem]>; 525 def int_aarch64_neon_bfcvtn 526 : DefaultAttrsIntrinsic<[llvm_v8bf16_ty], [llvm_v4f32_ty], [IntrNoMem]>; 527 def int_aarch64_neon_bfcvtn2 528 : DefaultAttrsIntrinsic<[llvm_v8bf16_ty], 529 [llvm_v8bf16_ty, llvm_v4f32_ty], 530 [IntrNoMem]>; 531 532 // v8.2-A FP16 Fused Multiply-Add Long 533 def int_aarch64_neon_fmlal : AdvSIMD_FP16FML_Intrinsic; 534 def int_aarch64_neon_fmlsl : AdvSIMD_FP16FML_Intrinsic; 535 def int_aarch64_neon_fmlal2 : AdvSIMD_FP16FML_Intrinsic; 536 def int_aarch64_neon_fmlsl2 : AdvSIMD_FP16FML_Intrinsic; 537 538 // v8.3-A Floating-point complex add 539 def int_aarch64_neon_vcadd_rot90 : AdvSIMD_2VectorArg_Intrinsic; 540 def int_aarch64_neon_vcadd_rot270 : AdvSIMD_2VectorArg_Intrinsic; 541 542 def int_aarch64_neon_vcmla_rot0 : AdvSIMD_3VectorArg_Intrinsic; 543 def int_aarch64_neon_vcmla_rot90 : AdvSIMD_3VectorArg_Intrinsic; 544 def int_aarch64_neon_vcmla_rot180 : AdvSIMD_3VectorArg_Intrinsic; 545 def int_aarch64_neon_vcmla_rot270 : AdvSIMD_3VectorArg_Intrinsic; 546} 547 548let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 549 class AdvSIMD_2Vector2Index_Intrinsic 550 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 551 [llvm_anyvector_ty, llvm_i64_ty, LLVMMatchType<0>, llvm_i64_ty], 552 [IntrNoMem]>; 553} 554 555// Vector element to element moves 556def int_aarch64_neon_vcopy_lane: AdvSIMD_2Vector2Index_Intrinsic; 557 558let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 559 class AdvSIMD_1Vec_Load_Intrinsic 560 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [LLVMAnyPointerType<LLVMMatchType<0>>], 561 [IntrReadMem, IntrArgMemOnly]>; 562 class AdvSIMD_1Vec_Store_Lane_Intrinsic 563 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, llvm_i64_ty, llvm_anyptr_ty], 564 [IntrArgMemOnly, NoCapture<ArgIndex<2>>]>; 565 566 class AdvSIMD_2Vec_Load_Intrinsic 567 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, llvm_anyvector_ty], 568 [LLVMAnyPointerType<LLVMMatchType<0>>], 569 [IntrReadMem, IntrArgMemOnly]>; 570 class AdvSIMD_2Vec_Load_Lane_Intrinsic 571 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, LLVMMatchType<0>], 572 [LLVMMatchType<0>, llvm_anyvector_ty, 573 llvm_i64_ty, llvm_anyptr_ty], 574 [IntrReadMem, IntrArgMemOnly]>; 575 class AdvSIMD_2Vec_Store_Intrinsic 576 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, LLVMMatchType<0>, 577 LLVMAnyPointerType<LLVMMatchType<0>>], 578 [IntrArgMemOnly, NoCapture<ArgIndex<2>>]>; 579 class AdvSIMD_2Vec_Store_Lane_Intrinsic 580 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, LLVMMatchType<0>, 581 llvm_i64_ty, llvm_anyptr_ty], 582 [IntrArgMemOnly, NoCapture<ArgIndex<3>>]>; 583 584 class AdvSIMD_3Vec_Load_Intrinsic 585 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, LLVMMatchType<0>, llvm_anyvector_ty], 586 [LLVMAnyPointerType<LLVMMatchType<0>>], 587 [IntrReadMem, IntrArgMemOnly]>; 588 class AdvSIMD_3Vec_Load_Lane_Intrinsic 589 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 590 [LLVMMatchType<0>, LLVMMatchType<0>, llvm_anyvector_ty, 591 llvm_i64_ty, llvm_anyptr_ty], 592 [IntrReadMem, IntrArgMemOnly]>; 593 class AdvSIMD_3Vec_Store_Intrinsic 594 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, LLVMMatchType<0>, 595 LLVMMatchType<0>, LLVMAnyPointerType<LLVMMatchType<0>>], 596 [IntrArgMemOnly, NoCapture<ArgIndex<3>>]>; 597 class AdvSIMD_3Vec_Store_Lane_Intrinsic 598 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, 599 LLVMMatchType<0>, LLVMMatchType<0>, 600 llvm_i64_ty, llvm_anyptr_ty], 601 [IntrArgMemOnly, NoCapture<ArgIndex<4>>]>; 602 603 class AdvSIMD_4Vec_Load_Intrinsic 604 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, LLVMMatchType<0>, 605 LLVMMatchType<0>, llvm_anyvector_ty], 606 [LLVMAnyPointerType<LLVMMatchType<0>>], 607 [IntrReadMem, IntrArgMemOnly]>; 608 class AdvSIMD_4Vec_Load_Lane_Intrinsic 609 : DefaultAttrsIntrinsic<[LLVMMatchType<0>, LLVMMatchType<0>, 610 LLVMMatchType<0>, LLVMMatchType<0>], 611 [LLVMMatchType<0>, LLVMMatchType<0>, 612 LLVMMatchType<0>, llvm_anyvector_ty, 613 llvm_i64_ty, llvm_anyptr_ty], 614 [IntrReadMem, IntrArgMemOnly]>; 615 class AdvSIMD_4Vec_Store_Intrinsic 616 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, LLVMMatchType<0>, 617 LLVMMatchType<0>, LLVMMatchType<0>, 618 LLVMAnyPointerType<LLVMMatchType<0>>], 619 [IntrArgMemOnly, NoCapture<ArgIndex<4>>]>; 620 class AdvSIMD_4Vec_Store_Lane_Intrinsic 621 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, LLVMMatchType<0>, 622 LLVMMatchType<0>, LLVMMatchType<0>, 623 llvm_i64_ty, llvm_anyptr_ty], 624 [IntrArgMemOnly, NoCapture<ArgIndex<5>>]>; 625} 626 627// Memory ops 628 629def int_aarch64_neon_ld1x2 : AdvSIMD_2Vec_Load_Intrinsic; 630def int_aarch64_neon_ld1x3 : AdvSIMD_3Vec_Load_Intrinsic; 631def int_aarch64_neon_ld1x4 : AdvSIMD_4Vec_Load_Intrinsic; 632 633def int_aarch64_neon_st1x2 : AdvSIMD_2Vec_Store_Intrinsic; 634def int_aarch64_neon_st1x3 : AdvSIMD_3Vec_Store_Intrinsic; 635def int_aarch64_neon_st1x4 : AdvSIMD_4Vec_Store_Intrinsic; 636 637def int_aarch64_neon_ld2 : AdvSIMD_2Vec_Load_Intrinsic; 638def int_aarch64_neon_ld3 : AdvSIMD_3Vec_Load_Intrinsic; 639def int_aarch64_neon_ld4 : AdvSIMD_4Vec_Load_Intrinsic; 640 641def int_aarch64_neon_ld2lane : AdvSIMD_2Vec_Load_Lane_Intrinsic; 642def int_aarch64_neon_ld3lane : AdvSIMD_3Vec_Load_Lane_Intrinsic; 643def int_aarch64_neon_ld4lane : AdvSIMD_4Vec_Load_Lane_Intrinsic; 644 645def int_aarch64_neon_ld2r : AdvSIMD_2Vec_Load_Intrinsic; 646def int_aarch64_neon_ld3r : AdvSIMD_3Vec_Load_Intrinsic; 647def int_aarch64_neon_ld4r : AdvSIMD_4Vec_Load_Intrinsic; 648 649def int_aarch64_neon_st2 : AdvSIMD_2Vec_Store_Intrinsic; 650def int_aarch64_neon_st3 : AdvSIMD_3Vec_Store_Intrinsic; 651def int_aarch64_neon_st4 : AdvSIMD_4Vec_Store_Intrinsic; 652 653def int_aarch64_neon_st2lane : AdvSIMD_2Vec_Store_Lane_Intrinsic; 654def int_aarch64_neon_st3lane : AdvSIMD_3Vec_Store_Lane_Intrinsic; 655def int_aarch64_neon_st4lane : AdvSIMD_4Vec_Store_Lane_Intrinsic; 656 657let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 658 class AdvSIMD_Tbl1_Intrinsic 659 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [llvm_v16i8_ty, LLVMMatchType<0>], 660 [IntrNoMem]>; 661 class AdvSIMD_Tbl2_Intrinsic 662 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 663 [llvm_v16i8_ty, llvm_v16i8_ty, LLVMMatchType<0>], [IntrNoMem]>; 664 class AdvSIMD_Tbl3_Intrinsic 665 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 666 [llvm_v16i8_ty, llvm_v16i8_ty, llvm_v16i8_ty, 667 LLVMMatchType<0>], 668 [IntrNoMem]>; 669 class AdvSIMD_Tbl4_Intrinsic 670 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 671 [llvm_v16i8_ty, llvm_v16i8_ty, llvm_v16i8_ty, llvm_v16i8_ty, 672 LLVMMatchType<0>], 673 [IntrNoMem]>; 674 675 class AdvSIMD_Tbx1_Intrinsic 676 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 677 [LLVMMatchType<0>, llvm_v16i8_ty, LLVMMatchType<0>], 678 [IntrNoMem]>; 679 class AdvSIMD_Tbx2_Intrinsic 680 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 681 [LLVMMatchType<0>, llvm_v16i8_ty, llvm_v16i8_ty, 682 LLVMMatchType<0>], 683 [IntrNoMem]>; 684 class AdvSIMD_Tbx3_Intrinsic 685 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 686 [LLVMMatchType<0>, llvm_v16i8_ty, llvm_v16i8_ty, 687 llvm_v16i8_ty, LLVMMatchType<0>], 688 [IntrNoMem]>; 689 class AdvSIMD_Tbx4_Intrinsic 690 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 691 [LLVMMatchType<0>, llvm_v16i8_ty, llvm_v16i8_ty, 692 llvm_v16i8_ty, llvm_v16i8_ty, LLVMMatchType<0>], 693 [IntrNoMem]>; 694} 695def int_aarch64_neon_tbl1 : AdvSIMD_Tbl1_Intrinsic; 696def int_aarch64_neon_tbl2 : AdvSIMD_Tbl2_Intrinsic; 697def int_aarch64_neon_tbl3 : AdvSIMD_Tbl3_Intrinsic; 698def int_aarch64_neon_tbl4 : AdvSIMD_Tbl4_Intrinsic; 699 700def int_aarch64_neon_tbx1 : AdvSIMD_Tbx1_Intrinsic; 701def int_aarch64_neon_tbx2 : AdvSIMD_Tbx2_Intrinsic; 702def int_aarch64_neon_tbx3 : AdvSIMD_Tbx3_Intrinsic; 703def int_aarch64_neon_tbx4 : AdvSIMD_Tbx4_Intrinsic; 704 705let TargetPrefix = "aarch64" in { 706 class FPCR_Get_Intrinsic 707 : DefaultAttrsIntrinsic<[llvm_i64_ty], [], [IntrNoMem, IntrHasSideEffects]>; 708 class FPCR_Set_Intrinsic 709 : DefaultAttrsIntrinsic<[], [llvm_i64_ty], [IntrNoMem, IntrHasSideEffects]>; 710 class RNDR_Intrinsic 711 : DefaultAttrsIntrinsic<[llvm_i64_ty, llvm_i1_ty], [], [IntrNoMem, IntrHasSideEffects]>; 712} 713 714// FPCR 715def int_aarch64_get_fpcr : FPCR_Get_Intrinsic; 716def int_aarch64_set_fpcr : FPCR_Set_Intrinsic; 717 718// Armv8.5-A Random number generation intrinsics 719def int_aarch64_rndr : RNDR_Intrinsic; 720def int_aarch64_rndrrs : RNDR_Intrinsic; 721 722let TargetPrefix = "aarch64" in { 723 class Crypto_AES_DataKey_Intrinsic 724 : DefaultAttrsIntrinsic<[llvm_v16i8_ty], [llvm_v16i8_ty, llvm_v16i8_ty], [IntrNoMem]>; 725 726 class Crypto_AES_Data_Intrinsic 727 : DefaultAttrsIntrinsic<[llvm_v16i8_ty], [llvm_v16i8_ty], [IntrNoMem]>; 728 729 // SHA intrinsic taking 5 words of the hash (v4i32, i32) and 4 of the schedule 730 // (v4i32). 731 class Crypto_SHA_5Hash4Schedule_Intrinsic 732 : DefaultAttrsIntrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_i32_ty, llvm_v4i32_ty], 733 [IntrNoMem]>; 734 735 // SHA intrinsic taking 5 words of the hash (v4i32, i32) and 4 of the schedule 736 // (v4i32). 737 class Crypto_SHA_1Hash_Intrinsic 738 : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>; 739 740 // SHA intrinsic taking 8 words of the schedule 741 class Crypto_SHA_8Schedule_Intrinsic 742 : DefaultAttrsIntrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty], [IntrNoMem]>; 743 744 // SHA intrinsic taking 12 words of the schedule 745 class Crypto_SHA_12Schedule_Intrinsic 746 : DefaultAttrsIntrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty], 747 [IntrNoMem]>; 748 749 // SHA intrinsic taking 8 words of the hash and 4 of the schedule. 750 class Crypto_SHA_8Hash4Schedule_Intrinsic 751 : DefaultAttrsIntrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty], 752 [IntrNoMem]>; 753 754 // SHA512 intrinsic taking 2 arguments 755 class Crypto_SHA512_2Arg_Intrinsic 756 : DefaultAttrsIntrinsic<[llvm_v2i64_ty], [llvm_v2i64_ty, llvm_v2i64_ty], [IntrNoMem]>; 757 758 // SHA512 intrinsic taking 3 Arguments 759 class Crypto_SHA512_3Arg_Intrinsic 760 : DefaultAttrsIntrinsic<[llvm_v2i64_ty], [llvm_v2i64_ty, llvm_v2i64_ty, llvm_v2i64_ty], 761 [IntrNoMem]>; 762 763 // SHA3 Intrinsics taking 3 arguments 764 class Crypto_SHA3_3Arg_Intrinsic 765 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 766 [LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 767 [IntrNoMem]>; 768 769 // SHA3 Intrinsic taking 2 arguments 770 class Crypto_SHA3_2Arg_Intrinsic 771 : DefaultAttrsIntrinsic<[llvm_v2i64_ty], [llvm_v2i64_ty, llvm_v2i64_ty], 772 [IntrNoMem]>; 773 774 // SHA3 Intrinsic taking 3 Arguments 1 immediate 775 class Crypto_SHA3_2ArgImm_Intrinsic 776 : DefaultAttrsIntrinsic<[llvm_v2i64_ty], [llvm_v2i64_ty, llvm_v2i64_ty, llvm_i64_ty], 777 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 778 779 class Crypto_SM3_3Vector_Intrinsic 780 : Intrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty], 781 [IntrNoMem]>; 782 783 class Crypto_SM3_3VectorIndexed_Intrinsic 784 : Intrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty, llvm_v4i32_ty, llvm_i64_ty], 785 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 786 787 class Crypto_SM4_2Vector_Intrinsic 788 : Intrinsic<[llvm_v4i32_ty], [llvm_v4i32_ty, llvm_v4i32_ty], [IntrNoMem]>; 789} 790 791// AES 792def int_aarch64_crypto_aese : Crypto_AES_DataKey_Intrinsic; 793def int_aarch64_crypto_aesd : Crypto_AES_DataKey_Intrinsic; 794def int_aarch64_crypto_aesmc : Crypto_AES_Data_Intrinsic; 795def int_aarch64_crypto_aesimc : Crypto_AES_Data_Intrinsic; 796 797// SHA1 798def int_aarch64_crypto_sha1c : Crypto_SHA_5Hash4Schedule_Intrinsic; 799def int_aarch64_crypto_sha1p : Crypto_SHA_5Hash4Schedule_Intrinsic; 800def int_aarch64_crypto_sha1m : Crypto_SHA_5Hash4Schedule_Intrinsic; 801def int_aarch64_crypto_sha1h : Crypto_SHA_1Hash_Intrinsic; 802 803def int_aarch64_crypto_sha1su0 : Crypto_SHA_12Schedule_Intrinsic; 804def int_aarch64_crypto_sha1su1 : Crypto_SHA_8Schedule_Intrinsic; 805 806// SHA256 807def int_aarch64_crypto_sha256h : Crypto_SHA_8Hash4Schedule_Intrinsic; 808def int_aarch64_crypto_sha256h2 : Crypto_SHA_8Hash4Schedule_Intrinsic; 809def int_aarch64_crypto_sha256su0 : Crypto_SHA_8Schedule_Intrinsic; 810def int_aarch64_crypto_sha256su1 : Crypto_SHA_12Schedule_Intrinsic; 811 812//SHA3 813def int_aarch64_crypto_eor3s : Crypto_SHA3_3Arg_Intrinsic; 814def int_aarch64_crypto_eor3u : Crypto_SHA3_3Arg_Intrinsic; 815def int_aarch64_crypto_bcaxs : Crypto_SHA3_3Arg_Intrinsic; 816def int_aarch64_crypto_bcaxu : Crypto_SHA3_3Arg_Intrinsic; 817def int_aarch64_crypto_rax1 : Crypto_SHA3_2Arg_Intrinsic; 818def int_aarch64_crypto_xar : Crypto_SHA3_2ArgImm_Intrinsic; 819 820// SHA512 821def int_aarch64_crypto_sha512h : Crypto_SHA512_3Arg_Intrinsic; 822def int_aarch64_crypto_sha512h2 : Crypto_SHA512_3Arg_Intrinsic; 823def int_aarch64_crypto_sha512su0 : Crypto_SHA512_2Arg_Intrinsic; 824def int_aarch64_crypto_sha512su1 : Crypto_SHA512_3Arg_Intrinsic; 825 826//SM3 & SM4 827def int_aarch64_crypto_sm3partw1 : Crypto_SM3_3Vector_Intrinsic; 828def int_aarch64_crypto_sm3partw2 : Crypto_SM3_3Vector_Intrinsic; 829def int_aarch64_crypto_sm3ss1 : Crypto_SM3_3Vector_Intrinsic; 830def int_aarch64_crypto_sm3tt1a : Crypto_SM3_3VectorIndexed_Intrinsic; 831def int_aarch64_crypto_sm3tt1b : Crypto_SM3_3VectorIndexed_Intrinsic; 832def int_aarch64_crypto_sm3tt2a : Crypto_SM3_3VectorIndexed_Intrinsic; 833def int_aarch64_crypto_sm3tt2b : Crypto_SM3_3VectorIndexed_Intrinsic; 834def int_aarch64_crypto_sm4e : Crypto_SM4_2Vector_Intrinsic; 835def int_aarch64_crypto_sm4ekey : Crypto_SM4_2Vector_Intrinsic; 836 837//===----------------------------------------------------------------------===// 838// CRC32 839 840let TargetPrefix = "aarch64" in { 841 842def int_aarch64_crc32b : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 843 [IntrNoMem]>; 844def int_aarch64_crc32cb : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 845 [IntrNoMem]>; 846def int_aarch64_crc32h : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 847 [IntrNoMem]>; 848def int_aarch64_crc32ch : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 849 [IntrNoMem]>; 850def int_aarch64_crc32w : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 851 [IntrNoMem]>; 852def int_aarch64_crc32cw : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], 853 [IntrNoMem]>; 854def int_aarch64_crc32x : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i64_ty], 855 [IntrNoMem]>; 856def int_aarch64_crc32cx : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i64_ty], 857 [IntrNoMem]>; 858} 859 860//===----------------------------------------------------------------------===// 861// Memory Tagging Extensions (MTE) Intrinsics 862let TargetPrefix = "aarch64" in { 863def int_aarch64_irg : DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_ptr_ty, llvm_i64_ty], 864 [IntrNoMem, IntrHasSideEffects]>; 865def int_aarch64_addg : DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_ptr_ty, llvm_i64_ty], 866 [IntrNoMem]>; 867def int_aarch64_gmi : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_ptr_ty, llvm_i64_ty], 868 [IntrNoMem]>; 869def int_aarch64_ldg : DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_ptr_ty, llvm_ptr_ty], 870 [IntrReadMem]>; 871def int_aarch64_stg : DefaultAttrsIntrinsic<[], [llvm_ptr_ty, llvm_ptr_ty], 872 [IntrWriteMem]>; 873def int_aarch64_subp : DefaultAttrsIntrinsic<[llvm_i64_ty], [llvm_ptr_ty, llvm_ptr_ty], 874 [IntrNoMem]>; 875 876// The following are codegen-only intrinsics for stack instrumentation. 877 878// Generate a randomly tagged stack base pointer. 879def int_aarch64_irg_sp : DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_i64_ty], 880 [IntrNoMem, IntrHasSideEffects]>; 881 882// Transfer pointer tag with offset. 883// ptr1 = tagp(ptr0, baseptr, tag_offset) returns a pointer where 884// * address is the address in ptr0 885// * tag is a function of (tag in baseptr, tag_offset). 886// ** Beware, this is not the same function as implemented by the ADDG instruction! 887// Backend optimizations may change tag_offset; the only guarantee is that calls 888// to tagp with the same pair of (baseptr, tag_offset) will produce pointers 889// with the same tag value, assuming the set of excluded tags has not changed. 890// Address bits in baseptr and tag bits in ptr0 are ignored. 891// When offset between ptr0 and baseptr is a compile time constant, this can be emitted as 892// ADDG ptr1, baseptr, (ptr0 - baseptr), tag_offset 893// It is intended that ptr0 is an alloca address, and baseptr is the direct output of llvm.aarch64.irg.sp. 894def int_aarch64_tagp : DefaultAttrsIntrinsic<[llvm_anyptr_ty], [LLVMMatchType<0>, llvm_ptr_ty, llvm_i64_ty], 895 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 896 897// Update allocation tags for the memory range to match the tag in the pointer argument. 898def int_aarch64_settag : DefaultAttrsIntrinsic<[], [llvm_ptr_ty, llvm_i64_ty], 899 [IntrWriteMem, IntrArgMemOnly, NoCapture<ArgIndex<0>>, WriteOnly<ArgIndex<0>>]>; 900 901// Update allocation tags for the memory range to match the tag in the pointer argument, 902// and set memory contents to zero. 903def int_aarch64_settag_zero : DefaultAttrsIntrinsic<[], [llvm_ptr_ty, llvm_i64_ty], 904 [IntrWriteMem, IntrArgMemOnly, NoCapture<ArgIndex<0>>, WriteOnly<ArgIndex<0>>]>; 905 906// Update allocation tags for 16-aligned, 16-sized memory region, and store a pair 8-byte values. 907def int_aarch64_stgp : DefaultAttrsIntrinsic<[], [llvm_ptr_ty, llvm_i64_ty, llvm_i64_ty], 908 [IntrWriteMem, IntrArgMemOnly, NoCapture<ArgIndex<0>>, WriteOnly<ArgIndex<0>>]>; 909} 910 911//===----------------------------------------------------------------------===// 912// Memory Operations (MOPS) Intrinsics 913let TargetPrefix = "aarch64" in { 914 // Sizes are chosen to correspond to the llvm.memset intrinsic: ptr, i8, i64 915 def int_aarch64_mops_memset_tag : DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_ptr_ty, llvm_i8_ty, llvm_i64_ty], 916 [IntrWriteMem, IntrArgMemOnly, NoCapture<ArgIndex<0>>, WriteOnly<ArgIndex<0>>]>; 917} 918 919// Transactional Memory Extension (TME) Intrinsics 920let TargetPrefix = "aarch64" in { 921def int_aarch64_tstart : ClangBuiltin<"__builtin_arm_tstart">, 922 Intrinsic<[llvm_i64_ty], [], [IntrWillReturn]>; 923 924def int_aarch64_tcommit : ClangBuiltin<"__builtin_arm_tcommit">, Intrinsic<[], [], [IntrWillReturn]>; 925 926def int_aarch64_tcancel : ClangBuiltin<"__builtin_arm_tcancel">, 927 Intrinsic<[], [llvm_i64_ty], [IntrWillReturn, ImmArg<ArgIndex<0>>]>; 928 929def int_aarch64_ttest : ClangBuiltin<"__builtin_arm_ttest">, 930 Intrinsic<[llvm_i64_ty], [], 931 [IntrNoMem, IntrHasSideEffects, IntrWillReturn]>; 932 933// Armv8.7-A load/store 64-byte intrinsics 934defvar data512 = !listsplat(llvm_i64_ty, 8); 935def int_aarch64_ld64b: Intrinsic<data512, [llvm_ptr_ty]>; 936def int_aarch64_st64b: Intrinsic<[], !listconcat([llvm_ptr_ty], data512)>; 937def int_aarch64_st64bv: Intrinsic<[llvm_i64_ty], !listconcat([llvm_ptr_ty], data512)>; 938def int_aarch64_st64bv0: Intrinsic<[llvm_i64_ty], !listconcat([llvm_ptr_ty], data512)>; 939 940} 941 942def llvm_nxv1i1_ty : LLVMType<nxv1i1>; 943def llvm_nxv2i1_ty : LLVMType<nxv2i1>; 944def llvm_nxv4i1_ty : LLVMType<nxv4i1>; 945def llvm_nxv8i1_ty : LLVMType<nxv8i1>; 946def llvm_nxv16i1_ty : LLVMType<nxv16i1>; 947def llvm_nxv16i8_ty : LLVMType<nxv16i8>; 948def llvm_nxv4i32_ty : LLVMType<nxv4i32>; 949def llvm_nxv2i64_ty : LLVMType<nxv2i64>; 950def llvm_nxv8f16_ty : LLVMType<nxv8f16>; 951def llvm_nxv8bf16_ty : LLVMType<nxv8bf16>; 952def llvm_nxv4f32_ty : LLVMType<nxv4f32>; 953def llvm_nxv2f64_ty : LLVMType<nxv2f64>; 954 955let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 956 957 class AdvSIMD_1Vec_PredLoad_Intrinsic 958 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 959 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 960 LLVMPointerToElt<0>], 961 [IntrReadMem, IntrArgMemOnly]>; 962 963 class AdvSIMD_2Vec_PredLoad_Intrinsic 964 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>], 965 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 966 LLVMPointerToElt<0>], 967 [IntrReadMem, IntrArgMemOnly]>; 968 969 class AdvSIMD_3Vec_PredLoad_Intrinsic 970 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>], 971 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 972 LLVMPointerToElt<0>], 973 [IntrReadMem, IntrArgMemOnly]>; 974 975 class AdvSIMD_4Vec_PredLoad_Intrinsic 976 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, 977 LLVMMatchType<0>], 978 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 979 LLVMPointerToElt<0>], 980 [IntrReadMem, IntrArgMemOnly]>; 981 982 class AdvSIMD_1Vec_PredLoad_WriteFFR_Intrinsic 983 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 984 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 985 LLVMPointerToElt<0>], 986 [IntrInaccessibleMemOrArgMemOnly]>; 987 988 class AdvSIMD_1Vec_PredStore_Intrinsic 989 : DefaultAttrsIntrinsic<[], 990 [llvm_anyvector_ty, 991 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 992 LLVMPointerToElt<0>], 993 [IntrArgMemOnly, NoCapture<ArgIndex<2>>]>; 994 995 class AdvSIMD_2Vec_PredStore_Intrinsic 996 : DefaultAttrsIntrinsic<[], 997 [llvm_anyvector_ty, LLVMMatchType<0>, 998 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, LLVMPointerToElt<0>], 999 [IntrArgMemOnly, NoCapture<ArgIndex<3>>]>; 1000 1001 class AdvSIMD_3Vec_PredStore_Intrinsic 1002 : DefaultAttrsIntrinsic<[], 1003 [llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, 1004 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, LLVMPointerToElt<0>], 1005 [IntrArgMemOnly, NoCapture<ArgIndex<4>>]>; 1006 1007 class AdvSIMD_4Vec_PredStore_Intrinsic 1008 : DefaultAttrsIntrinsic<[], 1009 [llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, 1010 LLVMMatchType<0>, 1011 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, LLVMPointerToElt<0>], 1012 [IntrArgMemOnly, NoCapture<ArgIndex<5>>]>; 1013 1014 class AdvSIMD_SVE_Index_Intrinsic 1015 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1016 [LLVMVectorElementType<0>, 1017 LLVMVectorElementType<0>], 1018 [IntrNoMem]>; 1019 1020 class AdvSIMD_Merged1VectorArg_Intrinsic 1021 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1022 [LLVMMatchType<0>, 1023 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1024 LLVMMatchType<0>], 1025 [IntrNoMem]>; 1026 1027 class AdvSIMD_2VectorArgIndexed_Intrinsic 1028 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1029 [LLVMMatchType<0>, 1030 LLVMMatchType<0>, 1031 llvm_i32_ty], 1032 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 1033 1034 class AdvSIMD_3VectorArgIndexed_Intrinsic 1035 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1036 [LLVMMatchType<0>, 1037 LLVMMatchType<0>, 1038 LLVMMatchType<0>, 1039 llvm_i32_ty], 1040 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1041 1042 class AdvSIMD_Pred1VectorArg_Intrinsic 1043 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1044 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1045 LLVMMatchType<0>], 1046 [IntrNoMem]>; 1047 1048 class AdvSIMD_Pred2VectorArg_Intrinsic 1049 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1050 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1051 LLVMMatchType<0>, 1052 LLVMMatchType<0>], 1053 [IntrNoMem]>; 1054 1055 class AdvSIMD_Pred3VectorArg_Intrinsic 1056 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1057 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1058 LLVMMatchType<0>, 1059 LLVMMatchType<0>, 1060 LLVMMatchType<0>], 1061 [IntrNoMem]>; 1062 1063 class AdvSIMD_SVE_Compare_Intrinsic 1064 : DefaultAttrsIntrinsic<[LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>], 1065 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1066 llvm_anyvector_ty, 1067 LLVMMatchType<0>], 1068 [IntrNoMem]>; 1069 1070 class AdvSIMD_SVE_CompareWide_Intrinsic 1071 : DefaultAttrsIntrinsic<[LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>], 1072 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1073 llvm_anyvector_ty, 1074 llvm_nxv2i64_ty], 1075 [IntrNoMem]>; 1076 1077 class AdvSIMD_SVE_Saturating_Intrinsic 1078 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1079 [LLVMMatchType<0>, 1080 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>], 1081 [IntrNoMem]>; 1082 1083 class AdvSIMD_SVE_SaturatingWithPattern_Intrinsic 1084 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1085 [LLVMMatchType<0>, 1086 llvm_i32_ty, 1087 llvm_i32_ty], 1088 [IntrNoMem, ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>]>; 1089 1090 class AdvSIMD_SVE_Saturating_N_Intrinsic<LLVMType T> 1091 : DefaultAttrsIntrinsic<[T], 1092 [T, llvm_anyvector_ty], 1093 [IntrNoMem]>; 1094 1095 class AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<LLVMType T> 1096 : DefaultAttrsIntrinsic<[T], 1097 [T, llvm_i32_ty, llvm_i32_ty], 1098 [IntrNoMem, ImmArg<ArgIndex<1>>, ImmArg<ArgIndex<2>>]>; 1099 1100 class AdvSIMD_SVE_CNT_Intrinsic 1101 : DefaultAttrsIntrinsic<[LLVMVectorOfBitcastsToInt<0>], 1102 [LLVMVectorOfBitcastsToInt<0>, 1103 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1104 llvm_anyvector_ty], 1105 [IntrNoMem]>; 1106 1107 class AdvSIMD_SVE_ReduceWithInit_Intrinsic 1108 : DefaultAttrsIntrinsic<[LLVMVectorElementType<0>], 1109 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1110 LLVMVectorElementType<0>, 1111 llvm_anyvector_ty], 1112 [IntrNoMem]>; 1113 1114 class AdvSIMD_SVE_ShiftByImm_Intrinsic 1115 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1116 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1117 LLVMMatchType<0>, 1118 llvm_i32_ty], 1119 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 1120 1121 class AdvSIMD_SVE_ShiftWide_Intrinsic 1122 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1123 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1124 LLVMMatchType<0>, 1125 llvm_nxv2i64_ty], 1126 [IntrNoMem]>; 1127 1128 class AdvSIMD_SVE_Unpack_Intrinsic 1129 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1130 [LLVMSubdivide2VectorType<0>], 1131 [IntrNoMem]>; 1132 1133 class AdvSIMD_SVE_CADD_Intrinsic 1134 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1135 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1136 LLVMMatchType<0>, 1137 LLVMMatchType<0>, 1138 llvm_i32_ty], 1139 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1140 1141 class AdvSIMD_SVE_CMLA_Intrinsic 1142 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1143 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1144 LLVMMatchType<0>, 1145 LLVMMatchType<0>, 1146 LLVMMatchType<0>, 1147 llvm_i32_ty], 1148 [IntrNoMem, ImmArg<ArgIndex<4>>]>; 1149 1150 class AdvSIMD_SVE_CMLA_LANE_Intrinsic 1151 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1152 [LLVMMatchType<0>, 1153 LLVMMatchType<0>, 1154 LLVMMatchType<0>, 1155 llvm_i32_ty, 1156 llvm_i32_ty], 1157 [IntrNoMem, ImmArg<ArgIndex<3>>, ImmArg<ArgIndex<4>>]>; 1158 1159 class AdvSIMD_SVE_DUP_Intrinsic 1160 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1161 [LLVMMatchType<0>, 1162 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1163 LLVMVectorElementType<0>], 1164 [IntrNoMem]>; 1165 1166 class AdvSIMD_SVE_DUP_Unpred_Intrinsic 1167 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], [LLVMVectorElementType<0>], 1168 [IntrNoMem]>; 1169 1170 class AdvSIMD_SVE_DUPQ_Intrinsic 1171 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1172 [LLVMMatchType<0>, 1173 llvm_i64_ty], 1174 [IntrNoMem]>; 1175 1176 class AdvSIMD_SVE_EXPA_Intrinsic 1177 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1178 [LLVMVectorOfBitcastsToInt<0>], 1179 [IntrNoMem]>; 1180 1181 class AdvSIMD_SVE_FCVT_Intrinsic 1182 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1183 [LLVMMatchType<0>, 1184 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1185 llvm_anyvector_ty], 1186 [IntrNoMem]>; 1187 1188 class AdvSIMD_SVE_FCVTZS_Intrinsic 1189 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1190 [LLVMVectorOfBitcastsToInt<0>, 1191 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1192 llvm_anyvector_ty], 1193 [IntrNoMem]>; 1194 1195 class AdvSIMD_SVE_INSR_Intrinsic 1196 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1197 [LLVMMatchType<0>, 1198 LLVMVectorElementType<0>], 1199 [IntrNoMem]>; 1200 1201 class AdvSIMD_SVE_PTRUE_Intrinsic 1202 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1203 [llvm_i32_ty], 1204 [IntrNoMem, ImmArg<ArgIndex<0>>]>; 1205 1206 class AdvSIMD_SVE_PUNPKHI_Intrinsic 1207 : DefaultAttrsIntrinsic<[LLVMHalfElementsVectorType<0>], 1208 [llvm_anyvector_ty], 1209 [IntrNoMem]>; 1210 1211 class AdvSIMD_SVE_SCALE_Intrinsic 1212 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1213 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1214 LLVMMatchType<0>, 1215 LLVMVectorOfBitcastsToInt<0>], 1216 [IntrNoMem]>; 1217 1218 class AdvSIMD_SVE_SCVTF_Intrinsic 1219 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1220 [LLVMMatchType<0>, 1221 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1222 llvm_anyvector_ty], 1223 [IntrNoMem]>; 1224 1225 class AdvSIMD_SVE_TSMUL_Intrinsic 1226 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1227 [LLVMMatchType<0>, 1228 LLVMVectorOfBitcastsToInt<0>], 1229 [IntrNoMem]>; 1230 1231 class AdvSIMD_SVE_CNTB_Intrinsic 1232 : DefaultAttrsIntrinsic<[llvm_i64_ty], 1233 [llvm_i32_ty], 1234 [IntrNoMem, ImmArg<ArgIndex<0>>]>; 1235 1236 class AdvSIMD_SVE_CNTP_Intrinsic 1237 : DefaultAttrsIntrinsic<[llvm_i64_ty], 1238 [llvm_anyvector_ty, LLVMMatchType<0>], 1239 [IntrNoMem]>; 1240 1241 class AdvSIMD_SVE_DOT_Intrinsic 1242 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1243 [LLVMMatchType<0>, 1244 LLVMSubdivide4VectorType<0>, 1245 LLVMSubdivide4VectorType<0>], 1246 [IntrNoMem]>; 1247 1248 class AdvSIMD_SVE_DOT_Indexed_Intrinsic 1249 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1250 [LLVMMatchType<0>, 1251 LLVMSubdivide4VectorType<0>, 1252 LLVMSubdivide4VectorType<0>, 1253 llvm_i32_ty], 1254 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1255 1256 class AdvSIMD_SVE_PTEST_Intrinsic 1257 : DefaultAttrsIntrinsic<[llvm_i1_ty], 1258 [llvm_anyvector_ty, 1259 LLVMMatchType<0>], 1260 [IntrNoMem]>; 1261 1262 class AdvSIMD_SVE_TBL_Intrinsic 1263 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1264 [LLVMMatchType<0>, 1265 LLVMVectorOfBitcastsToInt<0>], 1266 [IntrNoMem]>; 1267 1268 class AdvSIMD_SVE2_TBX_Intrinsic 1269 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1270 [LLVMMatchType<0>, 1271 LLVMMatchType<0>, 1272 LLVMVectorOfBitcastsToInt<0>], 1273 [IntrNoMem]>; 1274 1275 class SVE2_1VectorArg_Long_Intrinsic 1276 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1277 [LLVMSubdivide2VectorType<0>, 1278 llvm_i32_ty], 1279 [IntrNoMem, ImmArg<ArgIndex<1>>]>; 1280 1281 class SVE2_2VectorArg_Long_Intrinsic 1282 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1283 [LLVMSubdivide2VectorType<0>, 1284 LLVMSubdivide2VectorType<0>], 1285 [IntrNoMem]>; 1286 1287 class SVE2_2VectorArgIndexed_Long_Intrinsic 1288 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1289 [LLVMSubdivide2VectorType<0>, 1290 LLVMSubdivide2VectorType<0>, 1291 llvm_i32_ty], 1292 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 1293 1294 class SVE2_2VectorArg_Wide_Intrinsic 1295 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1296 [LLVMMatchType<0>, 1297 LLVMSubdivide2VectorType<0>], 1298 [IntrNoMem]>; 1299 1300 class SVE2_2VectorArg_Pred_Long_Intrinsic 1301 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1302 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1303 LLVMMatchType<0>, 1304 LLVMSubdivide2VectorType<0>], 1305 [IntrNoMem]>; 1306 1307 class SVE2_3VectorArg_Long_Intrinsic 1308 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1309 [LLVMMatchType<0>, 1310 LLVMSubdivide2VectorType<0>, 1311 LLVMSubdivide2VectorType<0>], 1312 [IntrNoMem]>; 1313 1314 class SVE2_3VectorArgIndexed_Long_Intrinsic 1315 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1316 [LLVMMatchType<0>, 1317 LLVMSubdivide2VectorType<0>, 1318 LLVMSubdivide2VectorType<0>, 1319 llvm_i32_ty], 1320 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1321 1322 class SVE2_1VectorArg_Narrowing_Intrinsic 1323 : DefaultAttrsIntrinsic<[LLVMSubdivide2VectorType<0>], 1324 [llvm_anyvector_ty], 1325 [IntrNoMem]>; 1326 1327 class SVE2_Merged1VectorArg_Narrowing_Intrinsic 1328 : DefaultAttrsIntrinsic<[LLVMSubdivide2VectorType<0>], 1329 [LLVMSubdivide2VectorType<0>, 1330 llvm_anyvector_ty], 1331 [IntrNoMem]>; 1332 class SVE2_2VectorArg_Narrowing_Intrinsic 1333 : DefaultAttrsIntrinsic< 1334 [LLVMSubdivide2VectorType<0>], 1335 [llvm_anyvector_ty, LLVMMatchType<0>], 1336 [IntrNoMem]>; 1337 1338 class SVE2_Merged2VectorArg_Narrowing_Intrinsic 1339 : DefaultAttrsIntrinsic< 1340 [LLVMSubdivide2VectorType<0>], 1341 [LLVMSubdivide2VectorType<0>, llvm_anyvector_ty, LLVMMatchType<0>], 1342 [IntrNoMem]>; 1343 1344 class SVE2_1VectorArg_Imm_Narrowing_Intrinsic 1345 : DefaultAttrsIntrinsic<[LLVMSubdivide2VectorType<0>], 1346 [llvm_anyvector_ty, llvm_i32_ty], 1347 [IntrNoMem, ImmArg<ArgIndex<1>>]>; 1348 1349 class SVE2_2VectorArg_Imm_Narrowing_Intrinsic 1350 : DefaultAttrsIntrinsic<[LLVMSubdivide2VectorType<0>], 1351 [LLVMSubdivide2VectorType<0>, llvm_anyvector_ty, 1352 llvm_i32_ty], 1353 [IntrNoMem, ImmArg<ArgIndex<2>>]>; 1354 1355 class SVE2_CONFLICT_DETECT_Intrinsic 1356 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1357 [LLVMAnyPointerType<llvm_any_ty>, 1358 LLVMMatchType<1>]>; 1359 1360 class SVE2_3VectorArg_Indexed_Intrinsic 1361 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1362 [LLVMMatchType<0>, 1363 LLVMSubdivide2VectorType<0>, 1364 LLVMSubdivide2VectorType<0>, 1365 llvm_i32_ty], 1366 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1367 1368 class AdvSIMD_SVE_CDOT_LANE_Intrinsic 1369 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1370 [LLVMMatchType<0>, 1371 LLVMSubdivide4VectorType<0>, 1372 LLVMSubdivide4VectorType<0>, 1373 llvm_i32_ty, 1374 llvm_i32_ty], 1375 [IntrNoMem, ImmArg<ArgIndex<3>>, ImmArg<ArgIndex<4>>]>; 1376 1377 // NOTE: There is no relationship between these intrinsics beyond an attempt 1378 // to reuse currently identical class definitions. 1379 class AdvSIMD_SVE_LOGB_Intrinsic : AdvSIMD_SVE_CNT_Intrinsic; 1380 class AdvSIMD_SVE2_CADD_Intrinsic : AdvSIMD_2VectorArgIndexed_Intrinsic; 1381 class AdvSIMD_SVE2_CMLA_Intrinsic : AdvSIMD_3VectorArgIndexed_Intrinsic; 1382 1383 // This class of intrinsics are not intended to be useful within LLVM IR but 1384 // are instead here to support some of the more regid parts of the ACLE. 1385 class Builtin_SVCVT<LLVMType OUT, LLVMType PRED, LLVMType IN> 1386 : DefaultAttrsIntrinsic<[OUT], [OUT, PRED, IN], [IntrNoMem]>; 1387} 1388 1389//===----------------------------------------------------------------------===// 1390// SVE 1391 1392let TargetPrefix = "aarch64" in { // All intrinsics start with "llvm.aarch64.". 1393 1394class AdvSIMD_SVE_Reduce_Intrinsic 1395 : DefaultAttrsIntrinsic<[LLVMVectorElementType<0>], 1396 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1397 llvm_anyvector_ty], 1398 [IntrNoMem]>; 1399 1400class AdvSIMD_SVE_SADDV_Reduce_Intrinsic 1401 : DefaultAttrsIntrinsic<[llvm_i64_ty], 1402 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1403 llvm_anyvector_ty], 1404 [IntrNoMem]>; 1405 1406class AdvSIMD_SVE_WHILE_Intrinsic 1407 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1408 [llvm_anyint_ty, LLVMMatchType<1>], 1409 [IntrNoMem]>; 1410 1411class AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic 1412 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1413 [ 1414 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1415 LLVMPointerToElt<0>, 1416 LLVMScalarOrSameVectorWidth<0, llvm_i64_ty> 1417 ], 1418 [IntrReadMem, IntrArgMemOnly]>; 1419 1420class AdvSIMD_GatherLoad_SV_64b_Offsets_WriteFFR_Intrinsic 1421 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1422 [ 1423 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1424 LLVMPointerToElt<0>, 1425 LLVMScalarOrSameVectorWidth<0, llvm_i64_ty> 1426 ], 1427 [IntrInaccessibleMemOrArgMemOnly]>; 1428 1429class AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic 1430 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1431 [ 1432 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1433 LLVMPointerToElt<0>, 1434 LLVMScalarOrSameVectorWidth<0, llvm_i32_ty> 1435 ], 1436 [IntrReadMem, IntrArgMemOnly]>; 1437 1438class AdvSIMD_GatherLoad_SV_32b_Offsets_WriteFFR_Intrinsic 1439 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1440 [ 1441 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1442 LLVMPointerToElt<0>, 1443 LLVMScalarOrSameVectorWidth<0, llvm_i32_ty> 1444 ], 1445 [IntrInaccessibleMemOrArgMemOnly]>; 1446 1447class AdvSIMD_GatherLoad_VS_Intrinsic 1448 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1449 [ 1450 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1451 llvm_anyvector_ty, 1452 llvm_i64_ty 1453 ], 1454 [IntrReadMem]>; 1455 1456class AdvSIMD_GatherLoad_VS_WriteFFR_Intrinsic 1457 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1458 [ 1459 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1460 llvm_anyvector_ty, 1461 llvm_i64_ty 1462 ], 1463 [IntrInaccessibleMemOrArgMemOnly]>; 1464 1465class AdvSIMD_ScatterStore_SV_64b_Offsets_Intrinsic 1466 : DefaultAttrsIntrinsic<[], 1467 [ 1468 llvm_anyvector_ty, 1469 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1470 LLVMPointerToElt<0>, 1471 LLVMScalarOrSameVectorWidth<0, llvm_i64_ty> 1472 ], 1473 [IntrWriteMem, IntrArgMemOnly]>; 1474 1475class AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic 1476 : DefaultAttrsIntrinsic<[], 1477 [ 1478 llvm_anyvector_ty, 1479 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1480 LLVMPointerToElt<0>, 1481 LLVMScalarOrSameVectorWidth<0, llvm_i32_ty> 1482 ], 1483 [IntrWriteMem, IntrArgMemOnly]>; 1484 1485class AdvSIMD_ScatterStore_VS_Intrinsic 1486 : DefaultAttrsIntrinsic<[], 1487 [ 1488 llvm_anyvector_ty, 1489 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 1490 llvm_anyvector_ty, llvm_i64_ty 1491 ], 1492 [IntrWriteMem]>; 1493 1494 1495class SVE_gather_prf_SV 1496 : DefaultAttrsIntrinsic<[], 1497 [ 1498 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, // Predicate 1499 llvm_ptr_ty, // Base address 1500 llvm_anyvector_ty, // Offsets 1501 llvm_i32_ty // Prfop 1502 ], 1503 [IntrInaccessibleMemOrArgMemOnly, NoCapture<ArgIndex<1>>, ImmArg<ArgIndex<3>>]>; 1504 1505class SVE_gather_prf_VS 1506 : DefaultAttrsIntrinsic<[], 1507 [ 1508 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, // Predicate 1509 llvm_anyvector_ty, // Base addresses 1510 llvm_i64_ty, // Scalar offset 1511 llvm_i32_ty // Prfop 1512 ], 1513 [IntrInaccessibleMemOrArgMemOnly, ImmArg<ArgIndex<3>>]>; 1514 1515class SVE_MatMul_Intrinsic 1516 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 1517 [LLVMMatchType<0>, LLVMSubdivide4VectorType<0>, LLVMSubdivide4VectorType<0>], 1518 [IntrNoMem]>; 1519 1520class SVE_4Vec_BF16 1521 : DefaultAttrsIntrinsic<[llvm_nxv4f32_ty], 1522 [llvm_nxv4f32_ty, llvm_nxv8bf16_ty, llvm_nxv8bf16_ty], 1523 [IntrNoMem]>; 1524 1525class SVE_4Vec_BF16_Indexed 1526 : DefaultAttrsIntrinsic<[llvm_nxv4f32_ty], 1527 [llvm_nxv4f32_ty, llvm_nxv8bf16_ty, llvm_nxv8bf16_ty, llvm_i32_ty], 1528 [IntrNoMem, ImmArg<ArgIndex<3>>]>; 1529 1530// 1531// Loads 1532// 1533 1534def int_aarch64_sve_ld1 : AdvSIMD_1Vec_PredLoad_Intrinsic; 1535 1536def int_aarch64_sve_ld2_sret : AdvSIMD_2Vec_PredLoad_Intrinsic; 1537def int_aarch64_sve_ld3_sret : AdvSIMD_3Vec_PredLoad_Intrinsic; 1538def int_aarch64_sve_ld4_sret : AdvSIMD_4Vec_PredLoad_Intrinsic; 1539 1540def int_aarch64_sve_ldnt1 : AdvSIMD_1Vec_PredLoad_Intrinsic; 1541def int_aarch64_sve_ldnf1 : AdvSIMD_1Vec_PredLoad_WriteFFR_Intrinsic; 1542def int_aarch64_sve_ldff1 : AdvSIMD_1Vec_PredLoad_WriteFFR_Intrinsic; 1543 1544def int_aarch64_sve_ld1rq : AdvSIMD_1Vec_PredLoad_Intrinsic; 1545def int_aarch64_sve_ld1ro : AdvSIMD_1Vec_PredLoad_Intrinsic; 1546 1547// 1548// Stores 1549// 1550 1551def int_aarch64_sve_st1 : AdvSIMD_1Vec_PredStore_Intrinsic; 1552def int_aarch64_sve_st2 : AdvSIMD_2Vec_PredStore_Intrinsic; 1553def int_aarch64_sve_st3 : AdvSIMD_3Vec_PredStore_Intrinsic; 1554def int_aarch64_sve_st4 : AdvSIMD_4Vec_PredStore_Intrinsic; 1555 1556def int_aarch64_sve_stnt1 : AdvSIMD_1Vec_PredStore_Intrinsic; 1557 1558// 1559// Prefetches 1560// 1561 1562def int_aarch64_sve_prf 1563 : DefaultAttrsIntrinsic<[], [llvm_anyvector_ty, llvm_ptr_ty, llvm_i32_ty], 1564 [IntrArgMemOnly, ImmArg<ArgIndex<2>>]>; 1565 1566// Scalar + 32-bit scaled offset vector, zero extend, packed and 1567// unpacked. 1568def int_aarch64_sve_prfb_gather_uxtw_index : SVE_gather_prf_SV; 1569def int_aarch64_sve_prfh_gather_uxtw_index : SVE_gather_prf_SV; 1570def int_aarch64_sve_prfw_gather_uxtw_index : SVE_gather_prf_SV; 1571def int_aarch64_sve_prfd_gather_uxtw_index : SVE_gather_prf_SV; 1572 1573// Scalar + 32-bit scaled offset vector, sign extend, packed and 1574// unpacked. 1575def int_aarch64_sve_prfb_gather_sxtw_index : SVE_gather_prf_SV; 1576def int_aarch64_sve_prfw_gather_sxtw_index : SVE_gather_prf_SV; 1577def int_aarch64_sve_prfh_gather_sxtw_index : SVE_gather_prf_SV; 1578def int_aarch64_sve_prfd_gather_sxtw_index : SVE_gather_prf_SV; 1579 1580// Scalar + 64-bit scaled offset vector. 1581def int_aarch64_sve_prfb_gather_index : SVE_gather_prf_SV; 1582def int_aarch64_sve_prfh_gather_index : SVE_gather_prf_SV; 1583def int_aarch64_sve_prfw_gather_index : SVE_gather_prf_SV; 1584def int_aarch64_sve_prfd_gather_index : SVE_gather_prf_SV; 1585 1586// Vector + scalar. 1587def int_aarch64_sve_prfb_gather_scalar_offset : SVE_gather_prf_VS; 1588def int_aarch64_sve_prfh_gather_scalar_offset : SVE_gather_prf_VS; 1589def int_aarch64_sve_prfw_gather_scalar_offset : SVE_gather_prf_VS; 1590def int_aarch64_sve_prfd_gather_scalar_offset : SVE_gather_prf_VS; 1591 1592// 1593// Scalar to vector operations 1594// 1595 1596def int_aarch64_sve_dup : AdvSIMD_SVE_DUP_Intrinsic; 1597def int_aarch64_sve_dup_x : AdvSIMD_SVE_DUP_Unpred_Intrinsic; 1598 1599def int_aarch64_sve_index : AdvSIMD_SVE_Index_Intrinsic; 1600 1601// 1602// Address calculation 1603// 1604 1605def int_aarch64_sve_adrb : AdvSIMD_2VectorArg_Intrinsic; 1606def int_aarch64_sve_adrh : AdvSIMD_2VectorArg_Intrinsic; 1607def int_aarch64_sve_adrw : AdvSIMD_2VectorArg_Intrinsic; 1608def int_aarch64_sve_adrd : AdvSIMD_2VectorArg_Intrinsic; 1609 1610// 1611// Integer arithmetic 1612// 1613 1614def int_aarch64_sve_add : AdvSIMD_Pred2VectorArg_Intrinsic; 1615def int_aarch64_sve_add_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1616def int_aarch64_sve_sub : AdvSIMD_Pred2VectorArg_Intrinsic; 1617def int_aarch64_sve_sub_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1618def int_aarch64_sve_subr : AdvSIMD_Pred2VectorArg_Intrinsic; 1619 1620def int_aarch64_sve_pmul : AdvSIMD_2VectorArg_Intrinsic; 1621 1622def int_aarch64_sve_mul : AdvSIMD_Pred2VectorArg_Intrinsic; 1623def int_aarch64_sve_mul_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1624def int_aarch64_sve_mul_lane : AdvSIMD_2VectorArgIndexed_Intrinsic; 1625def int_aarch64_sve_smulh : AdvSIMD_Pred2VectorArg_Intrinsic; 1626def int_aarch64_sve_smulh_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1627def int_aarch64_sve_umulh : AdvSIMD_Pred2VectorArg_Intrinsic; 1628def int_aarch64_sve_umulh_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1629 1630def int_aarch64_sve_sdiv : AdvSIMD_Pred2VectorArg_Intrinsic; 1631def int_aarch64_sve_sdiv_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1632def int_aarch64_sve_udiv : AdvSIMD_Pred2VectorArg_Intrinsic; 1633def int_aarch64_sve_udiv_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1634def int_aarch64_sve_sdivr : AdvSIMD_Pred2VectorArg_Intrinsic; 1635def int_aarch64_sve_udivr : AdvSIMD_Pred2VectorArg_Intrinsic; 1636 1637def int_aarch64_sve_smax : AdvSIMD_Pred2VectorArg_Intrinsic; 1638def int_aarch64_sve_smax_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1639def int_aarch64_sve_umax : AdvSIMD_Pred2VectorArg_Intrinsic; 1640def int_aarch64_sve_umax_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1641def int_aarch64_sve_smin : AdvSIMD_Pred2VectorArg_Intrinsic; 1642def int_aarch64_sve_smin_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1643def int_aarch64_sve_umin : AdvSIMD_Pred2VectorArg_Intrinsic; 1644def int_aarch64_sve_umin_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1645def int_aarch64_sve_sabd : AdvSIMD_Pred2VectorArg_Intrinsic; 1646def int_aarch64_sve_sabd_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1647def int_aarch64_sve_uabd : AdvSIMD_Pred2VectorArg_Intrinsic; 1648def int_aarch64_sve_uabd_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1649 1650def int_aarch64_sve_mad : AdvSIMD_Pred3VectorArg_Intrinsic; 1651def int_aarch64_sve_msb : AdvSIMD_Pred3VectorArg_Intrinsic; 1652def int_aarch64_sve_mla : AdvSIMD_Pred3VectorArg_Intrinsic; 1653def int_aarch64_sve_mla_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 1654def int_aarch64_sve_mls : AdvSIMD_Pred3VectorArg_Intrinsic; 1655def int_aarch64_sve_mls_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 1656 1657def int_aarch64_sve_saddv : AdvSIMD_SVE_SADDV_Reduce_Intrinsic; 1658def int_aarch64_sve_uaddv : AdvSIMD_SVE_SADDV_Reduce_Intrinsic; 1659 1660def int_aarch64_sve_smaxv : AdvSIMD_SVE_Reduce_Intrinsic; 1661def int_aarch64_sve_umaxv : AdvSIMD_SVE_Reduce_Intrinsic; 1662def int_aarch64_sve_sminv : AdvSIMD_SVE_Reduce_Intrinsic; 1663def int_aarch64_sve_uminv : AdvSIMD_SVE_Reduce_Intrinsic; 1664 1665def int_aarch64_sve_orv : AdvSIMD_SVE_Reduce_Intrinsic; 1666def int_aarch64_sve_eorv : AdvSIMD_SVE_Reduce_Intrinsic; 1667def int_aarch64_sve_andv : AdvSIMD_SVE_Reduce_Intrinsic; 1668 1669def int_aarch64_sve_abs : AdvSIMD_Merged1VectorArg_Intrinsic; 1670def int_aarch64_sve_neg : AdvSIMD_Merged1VectorArg_Intrinsic; 1671 1672def int_aarch64_sve_sdot : AdvSIMD_SVE_DOT_Intrinsic; 1673def int_aarch64_sve_sdot_lane : AdvSIMD_SVE_DOT_Indexed_Intrinsic; 1674 1675def int_aarch64_sve_udot : AdvSIMD_SVE_DOT_Intrinsic; 1676def int_aarch64_sve_udot_lane : AdvSIMD_SVE_DOT_Indexed_Intrinsic; 1677 1678def int_aarch64_sve_sqadd_x : AdvSIMD_2VectorArg_Intrinsic; 1679def int_aarch64_sve_sqsub_x : AdvSIMD_2VectorArg_Intrinsic; 1680def int_aarch64_sve_uqadd_x : AdvSIMD_2VectorArg_Intrinsic; 1681def int_aarch64_sve_uqsub_x : AdvSIMD_2VectorArg_Intrinsic; 1682 1683// Shifts 1684 1685def int_aarch64_sve_asr : AdvSIMD_Pred2VectorArg_Intrinsic; 1686def int_aarch64_sve_asr_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1687def int_aarch64_sve_asr_wide : AdvSIMD_SVE_ShiftWide_Intrinsic; 1688def int_aarch64_sve_asrd : AdvSIMD_SVE_ShiftByImm_Intrinsic; 1689def int_aarch64_sve_insr : AdvSIMD_SVE_INSR_Intrinsic; 1690def int_aarch64_sve_lsl : AdvSIMD_Pred2VectorArg_Intrinsic; 1691def int_aarch64_sve_lsl_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1692def int_aarch64_sve_lsl_wide : AdvSIMD_SVE_ShiftWide_Intrinsic; 1693def int_aarch64_sve_lsr : AdvSIMD_Pred2VectorArg_Intrinsic; 1694def int_aarch64_sve_lsr_u : AdvSIMD_Pred2VectorArg_Intrinsic; 1695def int_aarch64_sve_lsr_wide : AdvSIMD_SVE_ShiftWide_Intrinsic; 1696 1697// 1698// Integer comparisons 1699// 1700 1701def int_aarch64_sve_cmpeq : AdvSIMD_SVE_Compare_Intrinsic; 1702def int_aarch64_sve_cmpge : AdvSIMD_SVE_Compare_Intrinsic; 1703def int_aarch64_sve_cmpgt : AdvSIMD_SVE_Compare_Intrinsic; 1704def int_aarch64_sve_cmphi : AdvSIMD_SVE_Compare_Intrinsic; 1705def int_aarch64_sve_cmphs : AdvSIMD_SVE_Compare_Intrinsic; 1706def int_aarch64_sve_cmpne : AdvSIMD_SVE_Compare_Intrinsic; 1707 1708def int_aarch64_sve_cmpeq_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1709def int_aarch64_sve_cmpge_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1710def int_aarch64_sve_cmpgt_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1711def int_aarch64_sve_cmphi_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1712def int_aarch64_sve_cmphs_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1713def int_aarch64_sve_cmple_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1714def int_aarch64_sve_cmplo_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1715def int_aarch64_sve_cmpls_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1716def int_aarch64_sve_cmplt_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1717def int_aarch64_sve_cmpne_wide : AdvSIMD_SVE_CompareWide_Intrinsic; 1718 1719// 1720// Counting bits 1721// 1722 1723def int_aarch64_sve_cls : AdvSIMD_Merged1VectorArg_Intrinsic; 1724def int_aarch64_sve_clz : AdvSIMD_Merged1VectorArg_Intrinsic; 1725def int_aarch64_sve_cnt : AdvSIMD_SVE_CNT_Intrinsic; 1726 1727// 1728// Counting elements 1729// 1730 1731def int_aarch64_sve_cntb : AdvSIMD_SVE_CNTB_Intrinsic; 1732def int_aarch64_sve_cnth : AdvSIMD_SVE_CNTB_Intrinsic; 1733def int_aarch64_sve_cntw : AdvSIMD_SVE_CNTB_Intrinsic; 1734def int_aarch64_sve_cntd : AdvSIMD_SVE_CNTB_Intrinsic; 1735 1736def int_aarch64_sve_cntp : AdvSIMD_SVE_CNTP_Intrinsic; 1737 1738// 1739// FFR manipulation 1740// 1741 1742def int_aarch64_sve_rdffr : ClangBuiltin<"__builtin_sve_svrdffr">, DefaultAttrsIntrinsic<[llvm_nxv16i1_ty], [], [IntrReadMem, IntrInaccessibleMemOnly]>; 1743def int_aarch64_sve_rdffr_z : ClangBuiltin<"__builtin_sve_svrdffr_z">, DefaultAttrsIntrinsic<[llvm_nxv16i1_ty], [llvm_nxv16i1_ty], [IntrReadMem, IntrInaccessibleMemOnly]>; 1744def int_aarch64_sve_setffr : ClangBuiltin<"__builtin_sve_svsetffr">, DefaultAttrsIntrinsic<[], [], [IntrWriteMem, IntrInaccessibleMemOnly]>; 1745def int_aarch64_sve_wrffr : ClangBuiltin<"__builtin_sve_svwrffr">, DefaultAttrsIntrinsic<[], [llvm_nxv16i1_ty], [IntrWriteMem, IntrInaccessibleMemOnly]>; 1746 1747// 1748// Saturating scalar arithmetic 1749// 1750 1751def int_aarch64_sve_sqdech : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1752def int_aarch64_sve_sqdecw : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1753def int_aarch64_sve_sqdecd : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1754def int_aarch64_sve_sqdecp : AdvSIMD_SVE_Saturating_Intrinsic; 1755 1756def int_aarch64_sve_sqdecb_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1757def int_aarch64_sve_sqdecb_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1758def int_aarch64_sve_sqdech_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1759def int_aarch64_sve_sqdech_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1760def int_aarch64_sve_sqdecw_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1761def int_aarch64_sve_sqdecw_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1762def int_aarch64_sve_sqdecd_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1763def int_aarch64_sve_sqdecd_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1764def int_aarch64_sve_sqdecp_n32 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i32_ty>; 1765def int_aarch64_sve_sqdecp_n64 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i64_ty>; 1766 1767def int_aarch64_sve_sqinch : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1768def int_aarch64_sve_sqincw : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1769def int_aarch64_sve_sqincd : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1770def int_aarch64_sve_sqincp : AdvSIMD_SVE_Saturating_Intrinsic; 1771 1772def int_aarch64_sve_sqincb_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1773def int_aarch64_sve_sqincb_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1774def int_aarch64_sve_sqinch_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1775def int_aarch64_sve_sqinch_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1776def int_aarch64_sve_sqincw_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1777def int_aarch64_sve_sqincw_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1778def int_aarch64_sve_sqincd_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1779def int_aarch64_sve_sqincd_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1780def int_aarch64_sve_sqincp_n32 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i32_ty>; 1781def int_aarch64_sve_sqincp_n64 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i64_ty>; 1782 1783def int_aarch64_sve_uqdech : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1784def int_aarch64_sve_uqdecw : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1785def int_aarch64_sve_uqdecd : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1786def int_aarch64_sve_uqdecp : AdvSIMD_SVE_Saturating_Intrinsic; 1787 1788def int_aarch64_sve_uqdecb_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1789def int_aarch64_sve_uqdecb_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1790def int_aarch64_sve_uqdech_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1791def int_aarch64_sve_uqdech_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1792def int_aarch64_sve_uqdecw_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1793def int_aarch64_sve_uqdecw_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1794def int_aarch64_sve_uqdecd_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1795def int_aarch64_sve_uqdecd_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1796def int_aarch64_sve_uqdecp_n32 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i32_ty>; 1797def int_aarch64_sve_uqdecp_n64 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i64_ty>; 1798 1799def int_aarch64_sve_uqinch : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1800def int_aarch64_sve_uqincw : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1801def int_aarch64_sve_uqincd : AdvSIMD_SVE_SaturatingWithPattern_Intrinsic; 1802def int_aarch64_sve_uqincp : AdvSIMD_SVE_Saturating_Intrinsic; 1803 1804def int_aarch64_sve_uqincb_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1805def int_aarch64_sve_uqincb_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1806def int_aarch64_sve_uqinch_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1807def int_aarch64_sve_uqinch_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1808def int_aarch64_sve_uqincw_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1809def int_aarch64_sve_uqincw_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1810def int_aarch64_sve_uqincd_n32 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i32_ty>; 1811def int_aarch64_sve_uqincd_n64 : AdvSIMD_SVE_SaturatingWithPattern_N_Intrinsic<llvm_i64_ty>; 1812def int_aarch64_sve_uqincp_n32 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i32_ty>; 1813def int_aarch64_sve_uqincp_n64 : AdvSIMD_SVE_Saturating_N_Intrinsic<llvm_i64_ty>; 1814 1815// 1816// Reversal 1817// 1818 1819def int_aarch64_sve_rbit : AdvSIMD_Merged1VectorArg_Intrinsic; 1820def int_aarch64_sve_revb : AdvSIMD_Merged1VectorArg_Intrinsic; 1821def int_aarch64_sve_revh : AdvSIMD_Merged1VectorArg_Intrinsic; 1822def int_aarch64_sve_revw : AdvSIMD_Merged1VectorArg_Intrinsic; 1823 1824// 1825// Permutations and selection 1826// 1827 1828def int_aarch64_sve_clasta : AdvSIMD_Pred2VectorArg_Intrinsic; 1829def int_aarch64_sve_clasta_n : AdvSIMD_SVE_ReduceWithInit_Intrinsic; 1830def int_aarch64_sve_clastb : AdvSIMD_Pred2VectorArg_Intrinsic; 1831def int_aarch64_sve_clastb_n : AdvSIMD_SVE_ReduceWithInit_Intrinsic; 1832def int_aarch64_sve_compact : AdvSIMD_Pred1VectorArg_Intrinsic; 1833def int_aarch64_sve_dupq_lane : AdvSIMD_SVE_DUPQ_Intrinsic; 1834def int_aarch64_sve_ext : AdvSIMD_2VectorArgIndexed_Intrinsic; 1835def int_aarch64_sve_sel : AdvSIMD_Pred2VectorArg_Intrinsic; 1836def int_aarch64_sve_lasta : AdvSIMD_SVE_Reduce_Intrinsic; 1837def int_aarch64_sve_lastb : AdvSIMD_SVE_Reduce_Intrinsic; 1838def int_aarch64_sve_rev : AdvSIMD_1VectorArg_Intrinsic; 1839def int_aarch64_sve_splice : AdvSIMD_Pred2VectorArg_Intrinsic; 1840def int_aarch64_sve_sunpkhi : AdvSIMD_SVE_Unpack_Intrinsic; 1841def int_aarch64_sve_sunpklo : AdvSIMD_SVE_Unpack_Intrinsic; 1842def int_aarch64_sve_tbl : AdvSIMD_SVE_TBL_Intrinsic; 1843def int_aarch64_sve_trn1 : AdvSIMD_2VectorArg_Intrinsic; 1844def int_aarch64_sve_trn2 : AdvSIMD_2VectorArg_Intrinsic; 1845def int_aarch64_sve_trn1q : AdvSIMD_2VectorArg_Intrinsic; 1846def int_aarch64_sve_trn2q : AdvSIMD_2VectorArg_Intrinsic; 1847def int_aarch64_sve_uunpkhi : AdvSIMD_SVE_Unpack_Intrinsic; 1848def int_aarch64_sve_uunpklo : AdvSIMD_SVE_Unpack_Intrinsic; 1849def int_aarch64_sve_uzp1 : AdvSIMD_2VectorArg_Intrinsic; 1850def int_aarch64_sve_uzp2 : AdvSIMD_2VectorArg_Intrinsic; 1851def int_aarch64_sve_uzp1q : AdvSIMD_2VectorArg_Intrinsic; 1852def int_aarch64_sve_uzp2q : AdvSIMD_2VectorArg_Intrinsic; 1853def int_aarch64_sve_zip1 : AdvSIMD_2VectorArg_Intrinsic; 1854def int_aarch64_sve_zip2 : AdvSIMD_2VectorArg_Intrinsic; 1855def int_aarch64_sve_zip1q : AdvSIMD_2VectorArg_Intrinsic; 1856def int_aarch64_sve_zip2q : AdvSIMD_2VectorArg_Intrinsic; 1857 1858// 1859// Logical operations 1860// 1861 1862def int_aarch64_sve_and : AdvSIMD_Pred2VectorArg_Intrinsic; 1863def int_aarch64_sve_bic : AdvSIMD_Pred2VectorArg_Intrinsic; 1864def int_aarch64_sve_cnot : AdvSIMD_Merged1VectorArg_Intrinsic; 1865def int_aarch64_sve_eor : AdvSIMD_Pred2VectorArg_Intrinsic; 1866def int_aarch64_sve_not : AdvSIMD_Merged1VectorArg_Intrinsic; 1867def int_aarch64_sve_orr : AdvSIMD_Pred2VectorArg_Intrinsic; 1868 1869// 1870// Conversion 1871// 1872 1873def int_aarch64_sve_sxtb : AdvSIMD_Merged1VectorArg_Intrinsic; 1874def int_aarch64_sve_sxth : AdvSIMD_Merged1VectorArg_Intrinsic; 1875def int_aarch64_sve_sxtw : AdvSIMD_Merged1VectorArg_Intrinsic; 1876def int_aarch64_sve_uxtb : AdvSIMD_Merged1VectorArg_Intrinsic; 1877def int_aarch64_sve_uxth : AdvSIMD_Merged1VectorArg_Intrinsic; 1878def int_aarch64_sve_uxtw : AdvSIMD_Merged1VectorArg_Intrinsic; 1879 1880// 1881// While comparisons 1882// 1883 1884def int_aarch64_sve_whilele : AdvSIMD_SVE_WHILE_Intrinsic; 1885def int_aarch64_sve_whilelo : AdvSIMD_SVE_WHILE_Intrinsic; 1886def int_aarch64_sve_whilels : AdvSIMD_SVE_WHILE_Intrinsic; 1887def int_aarch64_sve_whilelt : AdvSIMD_SVE_WHILE_Intrinsic; 1888def int_aarch64_sve_whilege : AdvSIMD_SVE_WHILE_Intrinsic; 1889def int_aarch64_sve_whilegt : AdvSIMD_SVE_WHILE_Intrinsic; 1890def int_aarch64_sve_whilehs : AdvSIMD_SVE_WHILE_Intrinsic; 1891def int_aarch64_sve_whilehi : AdvSIMD_SVE_WHILE_Intrinsic; 1892 1893// 1894// Floating-point arithmetic 1895// 1896 1897def int_aarch64_sve_fabd : AdvSIMD_Pred2VectorArg_Intrinsic; 1898def int_aarch64_sve_fabs : AdvSIMD_Merged1VectorArg_Intrinsic; 1899def int_aarch64_sve_fadd : AdvSIMD_Pred2VectorArg_Intrinsic; 1900def int_aarch64_sve_fcadd : AdvSIMD_SVE_CADD_Intrinsic; 1901def int_aarch64_sve_fcmla : AdvSIMD_SVE_CMLA_Intrinsic; 1902def int_aarch64_sve_fcmla_lane : AdvSIMD_SVE_CMLA_LANE_Intrinsic; 1903def int_aarch64_sve_fdiv : AdvSIMD_Pred2VectorArg_Intrinsic; 1904def int_aarch64_sve_fdivr : AdvSIMD_Pred2VectorArg_Intrinsic; 1905def int_aarch64_sve_fexpa_x : AdvSIMD_SVE_EXPA_Intrinsic; 1906def int_aarch64_sve_fmad : AdvSIMD_Pred3VectorArg_Intrinsic; 1907def int_aarch64_sve_fmax : AdvSIMD_Pred2VectorArg_Intrinsic; 1908def int_aarch64_sve_fmaxnm : AdvSIMD_Pred2VectorArg_Intrinsic; 1909def int_aarch64_sve_fmin : AdvSIMD_Pred2VectorArg_Intrinsic; 1910def int_aarch64_sve_fminnm : AdvSIMD_Pred2VectorArg_Intrinsic; 1911def int_aarch64_sve_fmla : AdvSIMD_Pred3VectorArg_Intrinsic; 1912def int_aarch64_sve_fmla_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 1913def int_aarch64_sve_fmls : AdvSIMD_Pred3VectorArg_Intrinsic; 1914def int_aarch64_sve_fmls_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 1915def int_aarch64_sve_fmsb : AdvSIMD_Pred3VectorArg_Intrinsic; 1916def int_aarch64_sve_fmul : AdvSIMD_Pred2VectorArg_Intrinsic; 1917def int_aarch64_sve_fmulx : AdvSIMD_Pred2VectorArg_Intrinsic; 1918def int_aarch64_sve_fneg : AdvSIMD_Merged1VectorArg_Intrinsic; 1919def int_aarch64_sve_fmul_lane : AdvSIMD_2VectorArgIndexed_Intrinsic; 1920def int_aarch64_sve_fnmad : AdvSIMD_Pred3VectorArg_Intrinsic; 1921def int_aarch64_sve_fnmla : AdvSIMD_Pred3VectorArg_Intrinsic; 1922def int_aarch64_sve_fnmls : AdvSIMD_Pred3VectorArg_Intrinsic; 1923def int_aarch64_sve_fnmsb : AdvSIMD_Pred3VectorArg_Intrinsic; 1924def int_aarch64_sve_frecpe_x : AdvSIMD_1VectorArg_Intrinsic; 1925def int_aarch64_sve_frecps_x : AdvSIMD_2VectorArg_Intrinsic; 1926def int_aarch64_sve_frecpx : AdvSIMD_Merged1VectorArg_Intrinsic; 1927def int_aarch64_sve_frinta : AdvSIMD_Merged1VectorArg_Intrinsic; 1928def int_aarch64_sve_frinti : AdvSIMD_Merged1VectorArg_Intrinsic; 1929def int_aarch64_sve_frintm : AdvSIMD_Merged1VectorArg_Intrinsic; 1930def int_aarch64_sve_frintn : AdvSIMD_Merged1VectorArg_Intrinsic; 1931def int_aarch64_sve_frintp : AdvSIMD_Merged1VectorArg_Intrinsic; 1932def int_aarch64_sve_frintx : AdvSIMD_Merged1VectorArg_Intrinsic; 1933def int_aarch64_sve_frintz : AdvSIMD_Merged1VectorArg_Intrinsic; 1934def int_aarch64_sve_frsqrte_x : AdvSIMD_1VectorArg_Intrinsic; 1935def int_aarch64_sve_frsqrts_x : AdvSIMD_2VectorArg_Intrinsic; 1936def int_aarch64_sve_fscale : AdvSIMD_SVE_SCALE_Intrinsic; 1937def int_aarch64_sve_fsqrt : AdvSIMD_Merged1VectorArg_Intrinsic; 1938def int_aarch64_sve_fsub : AdvSIMD_Pred2VectorArg_Intrinsic; 1939def int_aarch64_sve_fsubr : AdvSIMD_Pred2VectorArg_Intrinsic; 1940def int_aarch64_sve_ftmad_x : AdvSIMD_2VectorArgIndexed_Intrinsic; 1941def int_aarch64_sve_ftsmul_x : AdvSIMD_SVE_TSMUL_Intrinsic; 1942def int_aarch64_sve_ftssel_x : AdvSIMD_SVE_TSMUL_Intrinsic; 1943 1944// 1945// Floating-point reductions 1946// 1947 1948def int_aarch64_sve_fadda : AdvSIMD_SVE_ReduceWithInit_Intrinsic; 1949def int_aarch64_sve_faddv : AdvSIMD_SVE_Reduce_Intrinsic; 1950def int_aarch64_sve_fmaxv : AdvSIMD_SVE_Reduce_Intrinsic; 1951def int_aarch64_sve_fmaxnmv : AdvSIMD_SVE_Reduce_Intrinsic; 1952def int_aarch64_sve_fminv : AdvSIMD_SVE_Reduce_Intrinsic; 1953def int_aarch64_sve_fminnmv : AdvSIMD_SVE_Reduce_Intrinsic; 1954 1955// 1956// Floating-point conversions 1957// 1958 1959def int_aarch64_sve_fcvt : AdvSIMD_SVE_FCVT_Intrinsic; 1960def int_aarch64_sve_fcvtzs : AdvSIMD_SVE_FCVTZS_Intrinsic; 1961def int_aarch64_sve_fcvtzu : AdvSIMD_SVE_FCVTZS_Intrinsic; 1962def int_aarch64_sve_scvtf : AdvSIMD_SVE_SCVTF_Intrinsic; 1963def int_aarch64_sve_ucvtf : AdvSIMD_SVE_SCVTF_Intrinsic; 1964 1965// 1966// Floating-point comparisons 1967// 1968 1969def int_aarch64_sve_facge : AdvSIMD_SVE_Compare_Intrinsic; 1970def int_aarch64_sve_facgt : AdvSIMD_SVE_Compare_Intrinsic; 1971 1972def int_aarch64_sve_fcmpeq : AdvSIMD_SVE_Compare_Intrinsic; 1973def int_aarch64_sve_fcmpge : AdvSIMD_SVE_Compare_Intrinsic; 1974def int_aarch64_sve_fcmpgt : AdvSIMD_SVE_Compare_Intrinsic; 1975def int_aarch64_sve_fcmpne : AdvSIMD_SVE_Compare_Intrinsic; 1976def int_aarch64_sve_fcmpuo : AdvSIMD_SVE_Compare_Intrinsic; 1977 1978def int_aarch64_sve_fcvtzs_i32f16 : Builtin_SVCVT<llvm_nxv4i32_ty, llvm_nxv4i1_ty, llvm_nxv8f16_ty>; 1979def int_aarch64_sve_fcvtzs_i32f64 : Builtin_SVCVT<llvm_nxv4i32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 1980def int_aarch64_sve_fcvtzs_i64f16 : Builtin_SVCVT<llvm_nxv2i64_ty, llvm_nxv2i1_ty, llvm_nxv8f16_ty>; 1981def int_aarch64_sve_fcvtzs_i64f32 : Builtin_SVCVT<llvm_nxv2i64_ty, llvm_nxv2i1_ty, llvm_nxv4f32_ty>; 1982 1983def int_aarch64_sve_fcvt_bf16f32 : Builtin_SVCVT<llvm_nxv8bf16_ty, llvm_nxv8i1_ty, llvm_nxv4f32_ty>; 1984def int_aarch64_sve_fcvtnt_bf16f32 : Builtin_SVCVT<llvm_nxv8bf16_ty, llvm_nxv8i1_ty, llvm_nxv4f32_ty>; 1985 1986def int_aarch64_sve_fcvtzu_i32f16 : Builtin_SVCVT<llvm_nxv4i32_ty, llvm_nxv4i1_ty, llvm_nxv8f16_ty>; 1987def int_aarch64_sve_fcvtzu_i32f64 : Builtin_SVCVT<llvm_nxv4i32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 1988def int_aarch64_sve_fcvtzu_i64f16 : Builtin_SVCVT<llvm_nxv2i64_ty, llvm_nxv2i1_ty, llvm_nxv8f16_ty>; 1989def int_aarch64_sve_fcvtzu_i64f32 : Builtin_SVCVT<llvm_nxv2i64_ty, llvm_nxv2i1_ty, llvm_nxv4f32_ty>; 1990 1991def int_aarch64_sve_fcvt_f16f32 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv4i1_ty, llvm_nxv4f32_ty>; 1992def int_aarch64_sve_fcvt_f16f64 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 1993def int_aarch64_sve_fcvt_f32f64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 1994 1995def int_aarch64_sve_fcvt_f32f16 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv4i1_ty, llvm_nxv8f16_ty>; 1996def int_aarch64_sve_fcvt_f64f16 : Builtin_SVCVT<llvm_nxv2f64_ty, llvm_nxv2i1_ty, llvm_nxv8f16_ty>; 1997def int_aarch64_sve_fcvt_f64f32 : Builtin_SVCVT<llvm_nxv2f64_ty, llvm_nxv2i1_ty, llvm_nxv4f32_ty>; 1998 1999def int_aarch64_sve_fcvtlt_f32f16 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv4i1_ty, llvm_nxv8f16_ty>; 2000def int_aarch64_sve_fcvtlt_f64f32 : Builtin_SVCVT<llvm_nxv2f64_ty, llvm_nxv2i1_ty, llvm_nxv4f32_ty>; 2001def int_aarch64_sve_fcvtnt_f16f32 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv4i1_ty, llvm_nxv4f32_ty>; 2002def int_aarch64_sve_fcvtnt_f32f64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 2003 2004def int_aarch64_sve_fcvtx_f32f64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 2005def int_aarch64_sve_fcvtxnt_f32f64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2f64_ty>; 2006 2007def int_aarch64_sve_scvtf_f16i32 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv4i1_ty, llvm_nxv4i32_ty>; 2008def int_aarch64_sve_scvtf_f16i64 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv2i1_ty, llvm_nxv2i64_ty>; 2009def int_aarch64_sve_scvtf_f32i64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2i64_ty>; 2010def int_aarch64_sve_scvtf_f64i32 : Builtin_SVCVT<llvm_nxv2f64_ty, llvm_nxv2i1_ty, llvm_nxv4i32_ty>; 2011 2012def int_aarch64_sve_ucvtf_f16i32 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv4i1_ty, llvm_nxv4i32_ty>; 2013def int_aarch64_sve_ucvtf_f16i64 : Builtin_SVCVT<llvm_nxv8f16_ty, llvm_nxv2i1_ty, llvm_nxv2i64_ty>; 2014def int_aarch64_sve_ucvtf_f32i64 : Builtin_SVCVT<llvm_nxv4f32_ty, llvm_nxv2i1_ty, llvm_nxv2i64_ty>; 2015def int_aarch64_sve_ucvtf_f64i32 : Builtin_SVCVT<llvm_nxv2f64_ty, llvm_nxv2i1_ty, llvm_nxv4i32_ty>; 2016 2017// 2018// Predicate creation 2019// 2020 2021def int_aarch64_sve_ptrue : AdvSIMD_SVE_PTRUE_Intrinsic; 2022 2023// 2024// Predicate operations 2025// 2026 2027def int_aarch64_sve_and_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2028def int_aarch64_sve_bic_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2029def int_aarch64_sve_brka : AdvSIMD_Merged1VectorArg_Intrinsic; 2030def int_aarch64_sve_brka_z : AdvSIMD_Pred1VectorArg_Intrinsic; 2031def int_aarch64_sve_brkb : AdvSIMD_Merged1VectorArg_Intrinsic; 2032def int_aarch64_sve_brkb_z : AdvSIMD_Pred1VectorArg_Intrinsic; 2033def int_aarch64_sve_brkn_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2034def int_aarch64_sve_brkpa_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2035def int_aarch64_sve_brkpb_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2036def int_aarch64_sve_eor_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2037def int_aarch64_sve_nand_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2038def int_aarch64_sve_nor_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2039def int_aarch64_sve_orn_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2040def int_aarch64_sve_orr_z : AdvSIMD_Pred2VectorArg_Intrinsic; 2041def int_aarch64_sve_pfirst : AdvSIMD_Pred1VectorArg_Intrinsic; 2042def int_aarch64_sve_pnext : AdvSIMD_Pred1VectorArg_Intrinsic; 2043def int_aarch64_sve_punpkhi : AdvSIMD_SVE_PUNPKHI_Intrinsic; 2044def int_aarch64_sve_punpklo : AdvSIMD_SVE_PUNPKHI_Intrinsic; 2045 2046// 2047// Testing predicates 2048// 2049 2050def int_aarch64_sve_ptest_any : AdvSIMD_SVE_PTEST_Intrinsic; 2051def int_aarch64_sve_ptest_first : AdvSIMD_SVE_PTEST_Intrinsic; 2052def int_aarch64_sve_ptest_last : AdvSIMD_SVE_PTEST_Intrinsic; 2053 2054// 2055// Reinterpreting data 2056// 2057 2058def int_aarch64_sve_convert_from_svbool : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 2059 [llvm_nxv16i1_ty], 2060 [IntrNoMem]>; 2061 2062def int_aarch64_sve_convert_to_svbool : DefaultAttrsIntrinsic<[llvm_nxv16i1_ty], 2063 [llvm_anyvector_ty], 2064 [IntrNoMem]>; 2065 2066// 2067// Gather loads: scalar base + vector offsets 2068// 2069 2070// 64 bit unscaled offsets 2071def int_aarch64_sve_ld1_gather : AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic; 2072 2073// 64 bit scaled offsets 2074def int_aarch64_sve_ld1_gather_index : AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic; 2075 2076// 32 bit unscaled offsets, sign (sxtw) or zero (zxtw) extended to 64 bits 2077def int_aarch64_sve_ld1_gather_sxtw : AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic; 2078def int_aarch64_sve_ld1_gather_uxtw : AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic; 2079 2080// 32 bit scaled offsets, sign (sxtw) or zero (zxtw) extended to 64 bits 2081def int_aarch64_sve_ld1_gather_sxtw_index : AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic; 2082def int_aarch64_sve_ld1_gather_uxtw_index : AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic; 2083 2084// 2085// Gather loads: vector base + scalar offset 2086// 2087 2088def int_aarch64_sve_ld1_gather_scalar_offset : AdvSIMD_GatherLoad_VS_Intrinsic; 2089 2090 2091// 2092// First-faulting gather loads: scalar base + vector offsets 2093// 2094 2095// 64 bit unscaled offsets 2096def int_aarch64_sve_ldff1_gather : AdvSIMD_GatherLoad_SV_64b_Offsets_WriteFFR_Intrinsic; 2097 2098// 64 bit scaled offsets 2099def int_aarch64_sve_ldff1_gather_index : AdvSIMD_GatherLoad_SV_64b_Offsets_WriteFFR_Intrinsic; 2100 2101// 32 bit unscaled offsets, sign (sxtw) or zero (uxtw) extended to 64 bits 2102def int_aarch64_sve_ldff1_gather_sxtw : AdvSIMD_GatherLoad_SV_32b_Offsets_WriteFFR_Intrinsic; 2103def int_aarch64_sve_ldff1_gather_uxtw : AdvSIMD_GatherLoad_SV_32b_Offsets_WriteFFR_Intrinsic; 2104 2105// 32 bit scaled offsets, sign (sxtw) or zero (uxtw) extended to 64 bits 2106def int_aarch64_sve_ldff1_gather_sxtw_index : AdvSIMD_GatherLoad_SV_32b_Offsets_WriteFFR_Intrinsic; 2107def int_aarch64_sve_ldff1_gather_uxtw_index : AdvSIMD_GatherLoad_SV_32b_Offsets_WriteFFR_Intrinsic; 2108 2109// 2110// First-faulting gather loads: vector base + scalar offset 2111// 2112 2113def int_aarch64_sve_ldff1_gather_scalar_offset : AdvSIMD_GatherLoad_VS_WriteFFR_Intrinsic; 2114 2115 2116// 2117// Non-temporal gather loads: scalar base + vector offsets 2118// 2119 2120// 64 bit unscaled offsets 2121def int_aarch64_sve_ldnt1_gather : AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic; 2122 2123// 64 bit indices 2124def int_aarch64_sve_ldnt1_gather_index : AdvSIMD_GatherLoad_SV_64b_Offsets_Intrinsic; 2125 2126// 32 bit unscaled offsets, zero (zxtw) extended to 64 bits 2127def int_aarch64_sve_ldnt1_gather_uxtw : AdvSIMD_GatherLoad_SV_32b_Offsets_Intrinsic; 2128 2129// 2130// Non-temporal gather loads: vector base + scalar offset 2131// 2132 2133def int_aarch64_sve_ldnt1_gather_scalar_offset : AdvSIMD_GatherLoad_VS_Intrinsic; 2134 2135// 2136// Scatter stores: scalar base + vector offsets 2137// 2138 2139// 64 bit unscaled offsets 2140def int_aarch64_sve_st1_scatter : AdvSIMD_ScatterStore_SV_64b_Offsets_Intrinsic; 2141 2142// 64 bit scaled offsets 2143def int_aarch64_sve_st1_scatter_index 2144 : AdvSIMD_ScatterStore_SV_64b_Offsets_Intrinsic; 2145 2146// 32 bit unscaled offsets, sign (sxtw) or zero (zxtw) extended to 64 bits 2147def int_aarch64_sve_st1_scatter_sxtw 2148 : AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic; 2149 2150def int_aarch64_sve_st1_scatter_uxtw 2151 : AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic; 2152 2153// 32 bit scaled offsets, sign (sxtw) or zero (zxtw) extended to 64 bits 2154def int_aarch64_sve_st1_scatter_sxtw_index 2155 : AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic; 2156 2157def int_aarch64_sve_st1_scatter_uxtw_index 2158 : AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic; 2159 2160// 2161// Scatter stores: vector base + scalar offset 2162// 2163 2164def int_aarch64_sve_st1_scatter_scalar_offset : AdvSIMD_ScatterStore_VS_Intrinsic; 2165 2166// 2167// Non-temporal scatter stores: scalar base + vector offsets 2168// 2169 2170// 64 bit unscaled offsets 2171def int_aarch64_sve_stnt1_scatter : AdvSIMD_ScatterStore_SV_64b_Offsets_Intrinsic; 2172 2173// 64 bit indices 2174def int_aarch64_sve_stnt1_scatter_index 2175 : AdvSIMD_ScatterStore_SV_64b_Offsets_Intrinsic; 2176 2177// 32 bit unscaled offsets, zero (zxtw) extended to 64 bits 2178def int_aarch64_sve_stnt1_scatter_uxtw : AdvSIMD_ScatterStore_SV_32b_Offsets_Intrinsic; 2179 2180// 2181// Non-temporal scatter stores: vector base + scalar offset 2182// 2183 2184def int_aarch64_sve_stnt1_scatter_scalar_offset : AdvSIMD_ScatterStore_VS_Intrinsic; 2185 2186// 2187// SVE2 - Uniform DSP operations 2188// 2189 2190def int_aarch64_sve_saba : AdvSIMD_3VectorArg_Intrinsic; 2191def int_aarch64_sve_shadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2192def int_aarch64_sve_shsub : AdvSIMD_Pred2VectorArg_Intrinsic; 2193def int_aarch64_sve_shsubr : AdvSIMD_Pred2VectorArg_Intrinsic; 2194def int_aarch64_sve_sli : AdvSIMD_2VectorArgIndexed_Intrinsic; 2195def int_aarch64_sve_sqabs : AdvSIMD_Merged1VectorArg_Intrinsic; 2196def int_aarch64_sve_sqadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2197def int_aarch64_sve_sqdmulh : AdvSIMD_2VectorArg_Intrinsic; 2198def int_aarch64_sve_sqdmulh_lane : AdvSIMD_2VectorArgIndexed_Intrinsic; 2199def int_aarch64_sve_sqneg : AdvSIMD_Merged1VectorArg_Intrinsic; 2200def int_aarch64_sve_sqrdmlah : AdvSIMD_3VectorArg_Intrinsic; 2201def int_aarch64_sve_sqrdmlah_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 2202def int_aarch64_sve_sqrdmlsh : AdvSIMD_3VectorArg_Intrinsic; 2203def int_aarch64_sve_sqrdmlsh_lane : AdvSIMD_3VectorArgIndexed_Intrinsic; 2204def int_aarch64_sve_sqrdmulh : AdvSIMD_2VectorArg_Intrinsic; 2205def int_aarch64_sve_sqrdmulh_lane : AdvSIMD_2VectorArgIndexed_Intrinsic; 2206def int_aarch64_sve_sqrshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2207def int_aarch64_sve_sqshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2208def int_aarch64_sve_sqshlu : AdvSIMD_SVE_ShiftByImm_Intrinsic; 2209def int_aarch64_sve_sqsub : AdvSIMD_Pred2VectorArg_Intrinsic; 2210def int_aarch64_sve_sqsubr : AdvSIMD_Pred2VectorArg_Intrinsic; 2211def int_aarch64_sve_srhadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2212def int_aarch64_sve_sri : AdvSIMD_2VectorArgIndexed_Intrinsic; 2213def int_aarch64_sve_srshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2214def int_aarch64_sve_srshr : AdvSIMD_SVE_ShiftByImm_Intrinsic; 2215def int_aarch64_sve_srsra : AdvSIMD_2VectorArgIndexed_Intrinsic; 2216def int_aarch64_sve_ssra : AdvSIMD_2VectorArgIndexed_Intrinsic; 2217def int_aarch64_sve_suqadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2218def int_aarch64_sve_uaba : AdvSIMD_3VectorArg_Intrinsic; 2219def int_aarch64_sve_uhadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2220def int_aarch64_sve_uhsub : AdvSIMD_Pred2VectorArg_Intrinsic; 2221def int_aarch64_sve_uhsubr : AdvSIMD_Pred2VectorArg_Intrinsic; 2222def int_aarch64_sve_uqadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2223def int_aarch64_sve_uqrshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2224def int_aarch64_sve_uqshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2225def int_aarch64_sve_uqsub : AdvSIMD_Pred2VectorArg_Intrinsic; 2226def int_aarch64_sve_uqsubr : AdvSIMD_Pred2VectorArg_Intrinsic; 2227def int_aarch64_sve_urecpe : AdvSIMD_Merged1VectorArg_Intrinsic; 2228def int_aarch64_sve_urhadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2229def int_aarch64_sve_urshl : AdvSIMD_Pred2VectorArg_Intrinsic; 2230def int_aarch64_sve_urshr : AdvSIMD_SVE_ShiftByImm_Intrinsic; 2231def int_aarch64_sve_ursqrte : AdvSIMD_Merged1VectorArg_Intrinsic; 2232def int_aarch64_sve_ursra : AdvSIMD_2VectorArgIndexed_Intrinsic; 2233def int_aarch64_sve_usqadd : AdvSIMD_Pred2VectorArg_Intrinsic; 2234def int_aarch64_sve_usra : AdvSIMD_2VectorArgIndexed_Intrinsic; 2235 2236// 2237// SVE2 - Widening DSP operations 2238// 2239 2240def int_aarch64_sve_sabalb : SVE2_3VectorArg_Long_Intrinsic; 2241def int_aarch64_sve_sabalt : SVE2_3VectorArg_Long_Intrinsic; 2242def int_aarch64_sve_sabdlb : SVE2_2VectorArg_Long_Intrinsic; 2243def int_aarch64_sve_sabdlt : SVE2_2VectorArg_Long_Intrinsic; 2244def int_aarch64_sve_saddlb : SVE2_2VectorArg_Long_Intrinsic; 2245def int_aarch64_sve_saddlt : SVE2_2VectorArg_Long_Intrinsic; 2246def int_aarch64_sve_saddwb : SVE2_2VectorArg_Wide_Intrinsic; 2247def int_aarch64_sve_saddwt : SVE2_2VectorArg_Wide_Intrinsic; 2248def int_aarch64_sve_sshllb : SVE2_1VectorArg_Long_Intrinsic; 2249def int_aarch64_sve_sshllt : SVE2_1VectorArg_Long_Intrinsic; 2250def int_aarch64_sve_ssublb : SVE2_2VectorArg_Long_Intrinsic; 2251def int_aarch64_sve_ssublt : SVE2_2VectorArg_Long_Intrinsic; 2252def int_aarch64_sve_ssubwb : SVE2_2VectorArg_Wide_Intrinsic; 2253def int_aarch64_sve_ssubwt : SVE2_2VectorArg_Wide_Intrinsic; 2254def int_aarch64_sve_uabalb : SVE2_3VectorArg_Long_Intrinsic; 2255def int_aarch64_sve_uabalt : SVE2_3VectorArg_Long_Intrinsic; 2256def int_aarch64_sve_uabdlb : SVE2_2VectorArg_Long_Intrinsic; 2257def int_aarch64_sve_uabdlt : SVE2_2VectorArg_Long_Intrinsic; 2258def int_aarch64_sve_uaddlb : SVE2_2VectorArg_Long_Intrinsic; 2259def int_aarch64_sve_uaddlt : SVE2_2VectorArg_Long_Intrinsic; 2260def int_aarch64_sve_uaddwb : SVE2_2VectorArg_Wide_Intrinsic; 2261def int_aarch64_sve_uaddwt : SVE2_2VectorArg_Wide_Intrinsic; 2262def int_aarch64_sve_ushllb : SVE2_1VectorArg_Long_Intrinsic; 2263def int_aarch64_sve_ushllt : SVE2_1VectorArg_Long_Intrinsic; 2264def int_aarch64_sve_usublb : SVE2_2VectorArg_Long_Intrinsic; 2265def int_aarch64_sve_usublt : SVE2_2VectorArg_Long_Intrinsic; 2266def int_aarch64_sve_usubwb : SVE2_2VectorArg_Wide_Intrinsic; 2267def int_aarch64_sve_usubwt : SVE2_2VectorArg_Wide_Intrinsic; 2268 2269// 2270// SVE2 - Non-widening pairwise arithmetic 2271// 2272 2273def int_aarch64_sve_addp : AdvSIMD_Pred2VectorArg_Intrinsic; 2274def int_aarch64_sve_faddp : AdvSIMD_Pred2VectorArg_Intrinsic; 2275def int_aarch64_sve_fmaxp : AdvSIMD_Pred2VectorArg_Intrinsic; 2276def int_aarch64_sve_fmaxnmp : AdvSIMD_Pred2VectorArg_Intrinsic; 2277def int_aarch64_sve_fminp : AdvSIMD_Pred2VectorArg_Intrinsic; 2278def int_aarch64_sve_fminnmp : AdvSIMD_Pred2VectorArg_Intrinsic; 2279def int_aarch64_sve_smaxp : AdvSIMD_Pred2VectorArg_Intrinsic; 2280def int_aarch64_sve_sminp : AdvSIMD_Pred2VectorArg_Intrinsic; 2281def int_aarch64_sve_umaxp : AdvSIMD_Pred2VectorArg_Intrinsic; 2282def int_aarch64_sve_uminp : AdvSIMD_Pred2VectorArg_Intrinsic; 2283 2284// 2285// SVE2 - Widening pairwise arithmetic 2286// 2287 2288def int_aarch64_sve_sadalp : SVE2_2VectorArg_Pred_Long_Intrinsic; 2289def int_aarch64_sve_uadalp : SVE2_2VectorArg_Pred_Long_Intrinsic; 2290 2291// 2292// SVE2 - Uniform complex integer arithmetic 2293// 2294 2295def int_aarch64_sve_cadd_x : AdvSIMD_SVE2_CADD_Intrinsic; 2296def int_aarch64_sve_sqcadd_x : AdvSIMD_SVE2_CADD_Intrinsic; 2297def int_aarch64_sve_cmla_x : AdvSIMD_SVE2_CMLA_Intrinsic; 2298def int_aarch64_sve_cmla_lane_x : AdvSIMD_SVE_CMLA_LANE_Intrinsic; 2299def int_aarch64_sve_sqrdcmlah_x : AdvSIMD_SVE2_CMLA_Intrinsic; 2300def int_aarch64_sve_sqrdcmlah_lane_x : AdvSIMD_SVE_CMLA_LANE_Intrinsic; 2301 2302// 2303// SVE2 - Widening complex integer arithmetic 2304// 2305 2306def int_aarch64_sve_saddlbt : SVE2_2VectorArg_Long_Intrinsic; 2307def int_aarch64_sve_ssublbt : SVE2_2VectorArg_Long_Intrinsic; 2308def int_aarch64_sve_ssubltb : SVE2_2VectorArg_Long_Intrinsic; 2309 2310// 2311// SVE2 - Widening complex integer dot product 2312// 2313 2314def int_aarch64_sve_cdot : AdvSIMD_SVE_DOT_Indexed_Intrinsic; 2315def int_aarch64_sve_cdot_lane : AdvSIMD_SVE_CDOT_LANE_Intrinsic; 2316 2317// 2318// SVE2 - Floating-point widening multiply-accumulate 2319// 2320 2321def int_aarch64_sve_fmlalb : SVE2_3VectorArg_Long_Intrinsic; 2322def int_aarch64_sve_fmlalb_lane : SVE2_3VectorArgIndexed_Long_Intrinsic; 2323def int_aarch64_sve_fmlalt : SVE2_3VectorArg_Long_Intrinsic; 2324def int_aarch64_sve_fmlalt_lane : SVE2_3VectorArgIndexed_Long_Intrinsic; 2325def int_aarch64_sve_fmlslb : SVE2_3VectorArg_Long_Intrinsic; 2326def int_aarch64_sve_fmlslb_lane : SVE2_3VectorArgIndexed_Long_Intrinsic; 2327def int_aarch64_sve_fmlslt : SVE2_3VectorArg_Long_Intrinsic; 2328def int_aarch64_sve_fmlslt_lane : SVE2_3VectorArgIndexed_Long_Intrinsic; 2329 2330// 2331// SVE2 - Floating-point integer binary logarithm 2332// 2333 2334def int_aarch64_sve_flogb : AdvSIMD_SVE_LOGB_Intrinsic; 2335 2336// 2337// SVE2 - Vector histogram count 2338// 2339 2340def int_aarch64_sve_histcnt : AdvSIMD_Pred2VectorArg_Intrinsic; 2341def int_aarch64_sve_histseg : AdvSIMD_2VectorArg_Intrinsic; 2342 2343// 2344// SVE2 - Character match 2345// 2346 2347def int_aarch64_sve_match : AdvSIMD_SVE_Compare_Intrinsic; 2348def int_aarch64_sve_nmatch : AdvSIMD_SVE_Compare_Intrinsic; 2349 2350// 2351// SVE2 - Unary narrowing operations 2352// 2353 2354def int_aarch64_sve_sqxtnb : SVE2_1VectorArg_Narrowing_Intrinsic; 2355def int_aarch64_sve_sqxtnt : SVE2_Merged1VectorArg_Narrowing_Intrinsic; 2356def int_aarch64_sve_sqxtunb : SVE2_1VectorArg_Narrowing_Intrinsic; 2357def int_aarch64_sve_sqxtunt : SVE2_Merged1VectorArg_Narrowing_Intrinsic; 2358def int_aarch64_sve_uqxtnb : SVE2_1VectorArg_Narrowing_Intrinsic; 2359def int_aarch64_sve_uqxtnt : SVE2_Merged1VectorArg_Narrowing_Intrinsic; 2360 2361// 2362// SVE2 - Binary narrowing DSP operations 2363// 2364def int_aarch64_sve_addhnb : SVE2_2VectorArg_Narrowing_Intrinsic; 2365def int_aarch64_sve_addhnt : SVE2_Merged2VectorArg_Narrowing_Intrinsic; 2366 2367def int_aarch64_sve_raddhnb : SVE2_2VectorArg_Narrowing_Intrinsic; 2368def int_aarch64_sve_raddhnt : SVE2_Merged2VectorArg_Narrowing_Intrinsic; 2369 2370def int_aarch64_sve_subhnb : SVE2_2VectorArg_Narrowing_Intrinsic; 2371def int_aarch64_sve_subhnt : SVE2_Merged2VectorArg_Narrowing_Intrinsic; 2372 2373def int_aarch64_sve_rsubhnb : SVE2_2VectorArg_Narrowing_Intrinsic; 2374def int_aarch64_sve_rsubhnt : SVE2_Merged2VectorArg_Narrowing_Intrinsic; 2375 2376// Narrowing shift right 2377def int_aarch64_sve_shrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2378def int_aarch64_sve_shrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2379 2380def int_aarch64_sve_rshrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2381def int_aarch64_sve_rshrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2382 2383// Saturating shift right - signed input/output 2384def int_aarch64_sve_sqshrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2385def int_aarch64_sve_sqshrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2386 2387def int_aarch64_sve_sqrshrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2388def int_aarch64_sve_sqrshrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2389 2390// Saturating shift right - unsigned input/output 2391def int_aarch64_sve_uqshrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2392def int_aarch64_sve_uqshrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2393 2394def int_aarch64_sve_uqrshrnb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2395def int_aarch64_sve_uqrshrnt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2396 2397// Saturating shift right - signed input, unsigned output 2398def int_aarch64_sve_sqshrunb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2399def int_aarch64_sve_sqshrunt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2400 2401def int_aarch64_sve_sqrshrunb : SVE2_1VectorArg_Imm_Narrowing_Intrinsic; 2402def int_aarch64_sve_sqrshrunt : SVE2_2VectorArg_Imm_Narrowing_Intrinsic; 2403 2404// SVE2 MLA LANE. 2405def int_aarch64_sve_smlalb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2406def int_aarch64_sve_smlalt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2407def int_aarch64_sve_umlalb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2408def int_aarch64_sve_umlalt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2409def int_aarch64_sve_smlslb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2410def int_aarch64_sve_smlslt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2411def int_aarch64_sve_umlslb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2412def int_aarch64_sve_umlslt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2413def int_aarch64_sve_smullb_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2414def int_aarch64_sve_smullt_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2415def int_aarch64_sve_umullb_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2416def int_aarch64_sve_umullt_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2417def int_aarch64_sve_sqdmlalb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2418def int_aarch64_sve_sqdmlalt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2419def int_aarch64_sve_sqdmlslb_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2420def int_aarch64_sve_sqdmlslt_lane : SVE2_3VectorArg_Indexed_Intrinsic; 2421def int_aarch64_sve_sqdmullb_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2422def int_aarch64_sve_sqdmullt_lane : SVE2_2VectorArgIndexed_Long_Intrinsic; 2423 2424// SVE2 MLA Unpredicated. 2425def int_aarch64_sve_smlalb : SVE2_3VectorArg_Long_Intrinsic; 2426def int_aarch64_sve_smlalt : SVE2_3VectorArg_Long_Intrinsic; 2427def int_aarch64_sve_umlalb : SVE2_3VectorArg_Long_Intrinsic; 2428def int_aarch64_sve_umlalt : SVE2_3VectorArg_Long_Intrinsic; 2429def int_aarch64_sve_smlslb : SVE2_3VectorArg_Long_Intrinsic; 2430def int_aarch64_sve_smlslt : SVE2_3VectorArg_Long_Intrinsic; 2431def int_aarch64_sve_umlslb : SVE2_3VectorArg_Long_Intrinsic; 2432def int_aarch64_sve_umlslt : SVE2_3VectorArg_Long_Intrinsic; 2433def int_aarch64_sve_smullb : SVE2_2VectorArg_Long_Intrinsic; 2434def int_aarch64_sve_smullt : SVE2_2VectorArg_Long_Intrinsic; 2435def int_aarch64_sve_umullb : SVE2_2VectorArg_Long_Intrinsic; 2436def int_aarch64_sve_umullt : SVE2_2VectorArg_Long_Intrinsic; 2437 2438def int_aarch64_sve_sqdmlalb : SVE2_3VectorArg_Long_Intrinsic; 2439def int_aarch64_sve_sqdmlalt : SVE2_3VectorArg_Long_Intrinsic; 2440def int_aarch64_sve_sqdmlslb : SVE2_3VectorArg_Long_Intrinsic; 2441def int_aarch64_sve_sqdmlslt : SVE2_3VectorArg_Long_Intrinsic; 2442def int_aarch64_sve_sqdmullb : SVE2_2VectorArg_Long_Intrinsic; 2443def int_aarch64_sve_sqdmullt : SVE2_2VectorArg_Long_Intrinsic; 2444def int_aarch64_sve_sqdmlalbt : SVE2_3VectorArg_Long_Intrinsic; 2445def int_aarch64_sve_sqdmlslbt : SVE2_3VectorArg_Long_Intrinsic; 2446 2447// SVE2 ADDSUB Long Unpredicated. 2448def int_aarch64_sve_adclb : AdvSIMD_3VectorArg_Intrinsic; 2449def int_aarch64_sve_adclt : AdvSIMD_3VectorArg_Intrinsic; 2450def int_aarch64_sve_sbclb : AdvSIMD_3VectorArg_Intrinsic; 2451def int_aarch64_sve_sbclt : AdvSIMD_3VectorArg_Intrinsic; 2452 2453// 2454// SVE2 - Polynomial arithmetic 2455// 2456def int_aarch64_sve_eorbt : AdvSIMD_3VectorArg_Intrinsic; 2457def int_aarch64_sve_eortb : AdvSIMD_3VectorArg_Intrinsic; 2458def int_aarch64_sve_pmullb_pair : AdvSIMD_2VectorArg_Intrinsic; 2459def int_aarch64_sve_pmullt_pair : AdvSIMD_2VectorArg_Intrinsic; 2460 2461// 2462// SVE2 bitwise ternary operations. 2463// 2464def int_aarch64_sve_eor3 : AdvSIMD_3VectorArg_Intrinsic; 2465def int_aarch64_sve_bcax : AdvSIMD_3VectorArg_Intrinsic; 2466def int_aarch64_sve_bsl : AdvSIMD_3VectorArg_Intrinsic; 2467def int_aarch64_sve_bsl1n : AdvSIMD_3VectorArg_Intrinsic; 2468def int_aarch64_sve_bsl2n : AdvSIMD_3VectorArg_Intrinsic; 2469def int_aarch64_sve_nbsl : AdvSIMD_3VectorArg_Intrinsic; 2470def int_aarch64_sve_xar : AdvSIMD_2VectorArgIndexed_Intrinsic; 2471 2472// 2473// SVE2 - Optional AES, SHA-3 and SM4 2474// 2475 2476def int_aarch64_sve_aesd : ClangBuiltin<"__builtin_sve_svaesd_u8">, 2477 DefaultAttrsIntrinsic<[llvm_nxv16i8_ty], 2478 [llvm_nxv16i8_ty, llvm_nxv16i8_ty], 2479 [IntrNoMem]>; 2480def int_aarch64_sve_aesimc : ClangBuiltin<"__builtin_sve_svaesimc_u8">, 2481 DefaultAttrsIntrinsic<[llvm_nxv16i8_ty], 2482 [llvm_nxv16i8_ty], 2483 [IntrNoMem]>; 2484def int_aarch64_sve_aese : ClangBuiltin<"__builtin_sve_svaese_u8">, 2485 DefaultAttrsIntrinsic<[llvm_nxv16i8_ty], 2486 [llvm_nxv16i8_ty, llvm_nxv16i8_ty], 2487 [IntrNoMem]>; 2488def int_aarch64_sve_aesmc : ClangBuiltin<"__builtin_sve_svaesmc_u8">, 2489 DefaultAttrsIntrinsic<[llvm_nxv16i8_ty], 2490 [llvm_nxv16i8_ty], 2491 [IntrNoMem]>; 2492def int_aarch64_sve_rax1 : ClangBuiltin<"__builtin_sve_svrax1_u64">, 2493 DefaultAttrsIntrinsic<[llvm_nxv2i64_ty], 2494 [llvm_nxv2i64_ty, llvm_nxv2i64_ty], 2495 [IntrNoMem]>; 2496def int_aarch64_sve_sm4e : ClangBuiltin<"__builtin_sve_svsm4e_u32">, 2497 DefaultAttrsIntrinsic<[llvm_nxv4i32_ty], 2498 [llvm_nxv4i32_ty, llvm_nxv4i32_ty], 2499 [IntrNoMem]>; 2500def int_aarch64_sve_sm4ekey : ClangBuiltin<"__builtin_sve_svsm4ekey_u32">, 2501 DefaultAttrsIntrinsic<[llvm_nxv4i32_ty], 2502 [llvm_nxv4i32_ty, llvm_nxv4i32_ty], 2503 [IntrNoMem]>; 2504// 2505// SVE2 - Extended table lookup/permute 2506// 2507 2508def int_aarch64_sve_tbl2 : AdvSIMD_SVE2_TBX_Intrinsic; 2509def int_aarch64_sve_tbx : AdvSIMD_SVE2_TBX_Intrinsic; 2510 2511// 2512// SVE2 - Optional bit permutation 2513// 2514 2515def int_aarch64_sve_bdep_x : AdvSIMD_2VectorArg_Intrinsic; 2516def int_aarch64_sve_bext_x : AdvSIMD_2VectorArg_Intrinsic; 2517def int_aarch64_sve_bgrp_x : AdvSIMD_2VectorArg_Intrinsic; 2518 2519 2520// 2521// SVE ACLE: 7.3. INT8 matrix multiply extensions 2522// 2523def int_aarch64_sve_ummla : SVE_MatMul_Intrinsic; 2524def int_aarch64_sve_smmla : SVE_MatMul_Intrinsic; 2525def int_aarch64_sve_usmmla : SVE_MatMul_Intrinsic; 2526 2527def int_aarch64_sve_usdot : AdvSIMD_SVE_DOT_Intrinsic; 2528def int_aarch64_sve_usdot_lane : AdvSIMD_SVE_DOT_Indexed_Intrinsic; 2529def int_aarch64_sve_sudot_lane : AdvSIMD_SVE_DOT_Indexed_Intrinsic; 2530 2531// 2532// SVE ACLE: 7.4/5. FP64/FP32 matrix multiply extensions 2533// 2534def int_aarch64_sve_fmmla : AdvSIMD_3VectorArg_Intrinsic; 2535 2536// 2537// SVE ACLE: 7.2. BFloat16 extensions 2538// 2539 2540def int_aarch64_sve_bfdot : SVE_4Vec_BF16; 2541def int_aarch64_sve_bfmlalb : SVE_4Vec_BF16; 2542def int_aarch64_sve_bfmlalt : SVE_4Vec_BF16; 2543 2544def int_aarch64_sve_bfmmla : SVE_4Vec_BF16; 2545 2546def int_aarch64_sve_bfdot_lane_v2 : SVE_4Vec_BF16_Indexed; 2547def int_aarch64_sve_bfmlalb_lane_v2 : SVE_4Vec_BF16_Indexed; 2548def int_aarch64_sve_bfmlalt_lane_v2 : SVE_4Vec_BF16_Indexed; 2549} 2550 2551// 2552// SVE2 - Contiguous conflict detection 2553// 2554 2555def int_aarch64_sve_whilerw_b : SVE2_CONFLICT_DETECT_Intrinsic; 2556def int_aarch64_sve_whilerw_h : SVE2_CONFLICT_DETECT_Intrinsic; 2557def int_aarch64_sve_whilerw_s : SVE2_CONFLICT_DETECT_Intrinsic; 2558def int_aarch64_sve_whilerw_d : SVE2_CONFLICT_DETECT_Intrinsic; 2559def int_aarch64_sve_whilewr_b : SVE2_CONFLICT_DETECT_Intrinsic; 2560def int_aarch64_sve_whilewr_h : SVE2_CONFLICT_DETECT_Intrinsic; 2561def int_aarch64_sve_whilewr_s : SVE2_CONFLICT_DETECT_Intrinsic; 2562def int_aarch64_sve_whilewr_d : SVE2_CONFLICT_DETECT_Intrinsic; 2563 2564// Scalable Matrix Extension (SME) Intrinsics 2565let TargetPrefix = "aarch64" in { 2566 class SME_Load_Store_Intrinsic<LLVMType pred_ty> 2567 : DefaultAttrsIntrinsic<[], 2568 [pred_ty, llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty], [ImmArg<ArgIndex<2>>]>; 2569 2570 // Loads 2571 def int_aarch64_sme_ld1b_horiz : SME_Load_Store_Intrinsic<llvm_nxv16i1_ty>; 2572 def int_aarch64_sme_ld1h_horiz : SME_Load_Store_Intrinsic<llvm_nxv8i1_ty>; 2573 def int_aarch64_sme_ld1w_horiz : SME_Load_Store_Intrinsic<llvm_nxv4i1_ty>; 2574 def int_aarch64_sme_ld1d_horiz : SME_Load_Store_Intrinsic<llvm_nxv2i1_ty>; 2575 def int_aarch64_sme_ld1q_horiz : SME_Load_Store_Intrinsic<llvm_nxv1i1_ty>; 2576 def int_aarch64_sme_ld1b_vert : SME_Load_Store_Intrinsic<llvm_nxv16i1_ty>; 2577 def int_aarch64_sme_ld1h_vert : SME_Load_Store_Intrinsic<llvm_nxv8i1_ty>; 2578 def int_aarch64_sme_ld1w_vert : SME_Load_Store_Intrinsic<llvm_nxv4i1_ty>; 2579 def int_aarch64_sme_ld1d_vert : SME_Load_Store_Intrinsic<llvm_nxv2i1_ty>; 2580 def int_aarch64_sme_ld1q_vert : SME_Load_Store_Intrinsic<llvm_nxv1i1_ty>; 2581 2582 // Stores 2583 def int_aarch64_sme_st1b_horiz : SME_Load_Store_Intrinsic<llvm_nxv16i1_ty>; 2584 def int_aarch64_sme_st1h_horiz : SME_Load_Store_Intrinsic<llvm_nxv8i1_ty>; 2585 def int_aarch64_sme_st1w_horiz : SME_Load_Store_Intrinsic<llvm_nxv4i1_ty>; 2586 def int_aarch64_sme_st1d_horiz : SME_Load_Store_Intrinsic<llvm_nxv2i1_ty>; 2587 def int_aarch64_sme_st1q_horiz : SME_Load_Store_Intrinsic<llvm_nxv1i1_ty>; 2588 def int_aarch64_sme_st1b_vert : SME_Load_Store_Intrinsic<llvm_nxv16i1_ty>; 2589 def int_aarch64_sme_st1h_vert : SME_Load_Store_Intrinsic<llvm_nxv8i1_ty>; 2590 def int_aarch64_sme_st1w_vert : SME_Load_Store_Intrinsic<llvm_nxv4i1_ty>; 2591 def int_aarch64_sme_st1d_vert : SME_Load_Store_Intrinsic<llvm_nxv2i1_ty>; 2592 def int_aarch64_sme_st1q_vert : SME_Load_Store_Intrinsic<llvm_nxv1i1_ty>; 2593 2594 // Spill + fill 2595 def int_aarch64_sme_ldr : DefaultAttrsIntrinsic< 2596 [], [llvm_i32_ty, llvm_ptr_ty]>; 2597 def int_aarch64_sme_str : DefaultAttrsIntrinsic< 2598 [], [llvm_i32_ty, llvm_ptr_ty]>; 2599 2600 class SME_TileToVector_Intrinsic 2601 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 2602 [LLVMMatchType<0>, LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2603 llvm_i32_ty, llvm_i32_ty], [ImmArg<ArgIndex<2>>]>; 2604 class SME_VectorToTile_Intrinsic 2605 : DefaultAttrsIntrinsic<[], 2606 [llvm_i32_ty, llvm_i32_ty, LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2607 llvm_anyvector_ty], [ImmArg<ArgIndex<0>>]>; 2608 2609 def int_aarch64_sme_read_horiz : SME_TileToVector_Intrinsic; 2610 def int_aarch64_sme_read_vert : SME_TileToVector_Intrinsic; 2611 def int_aarch64_sme_write_horiz : SME_VectorToTile_Intrinsic; 2612 def int_aarch64_sme_write_vert : SME_VectorToTile_Intrinsic; 2613 2614 def int_aarch64_sme_readq_horiz : SME_TileToVector_Intrinsic; 2615 def int_aarch64_sme_readq_vert : SME_TileToVector_Intrinsic; 2616 def int_aarch64_sme_writeq_horiz : SME_VectorToTile_Intrinsic; 2617 def int_aarch64_sme_writeq_vert : SME_VectorToTile_Intrinsic; 2618 2619 def int_aarch64_sme_zero : DefaultAttrsIntrinsic<[], [llvm_i32_ty], [ImmArg<ArgIndex<0>>]>; 2620 2621 class SME_OuterProduct_Intrinsic 2622 : DefaultAttrsIntrinsic<[], 2623 [llvm_i32_ty, 2624 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2625 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2626 LLVMMatchType<0>, 2627 llvm_anyvector_ty], [ImmArg<ArgIndex<0>>]>; 2628 2629 def int_aarch64_sme_mopa : SME_OuterProduct_Intrinsic; 2630 def int_aarch64_sme_mops : SME_OuterProduct_Intrinsic; 2631 2632 def int_aarch64_sme_mopa_wide : SME_OuterProduct_Intrinsic; 2633 def int_aarch64_sme_mops_wide : SME_OuterProduct_Intrinsic; 2634 2635 def int_aarch64_sme_smopa_wide : SME_OuterProduct_Intrinsic; 2636 def int_aarch64_sme_smops_wide : SME_OuterProduct_Intrinsic; 2637 def int_aarch64_sme_umopa_wide : SME_OuterProduct_Intrinsic; 2638 def int_aarch64_sme_umops_wide : SME_OuterProduct_Intrinsic; 2639 def int_aarch64_sme_sumopa_wide : SME_OuterProduct_Intrinsic; 2640 def int_aarch64_sme_sumops_wide : SME_OuterProduct_Intrinsic; 2641 def int_aarch64_sme_usmopa_wide : SME_OuterProduct_Intrinsic; 2642 def int_aarch64_sme_usmops_wide : SME_OuterProduct_Intrinsic; 2643 2644 class SME_AddVectorToTile_Intrinsic 2645 : DefaultAttrsIntrinsic<[], 2646 [llvm_i32_ty, 2647 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2648 LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2649 llvm_anyvector_ty], [ImmArg<ArgIndex<0>>]>; 2650 2651 def int_aarch64_sme_addha : SME_AddVectorToTile_Intrinsic; 2652 def int_aarch64_sme_addva : SME_AddVectorToTile_Intrinsic; 2653 2654 // 2655 // Counting elements 2656 // 2657 2658 class AdvSIMD_SME_CNTSB_Intrinsic 2659 : DefaultAttrsIntrinsic<[llvm_i64_ty], [], [IntrNoMem]>; 2660 2661 def int_aarch64_sme_cntsb : AdvSIMD_SME_CNTSB_Intrinsic; 2662 def int_aarch64_sme_cntsh : AdvSIMD_SME_CNTSB_Intrinsic; 2663 def int_aarch64_sme_cntsw : AdvSIMD_SME_CNTSB_Intrinsic; 2664 def int_aarch64_sme_cntsd : AdvSIMD_SME_CNTSB_Intrinsic; 2665 2666 // 2667 // PSTATE Functions 2668 // 2669 2670 def int_aarch64_sme_get_tpidr2 2671 : DefaultAttrsIntrinsic<[llvm_i64_ty], [], 2672 [IntrNoMem, IntrHasSideEffects]>; 2673 def int_aarch64_sme_set_tpidr2 2674 : DefaultAttrsIntrinsic<[], [llvm_i64_ty], 2675 [IntrNoMem, IntrHasSideEffects]>; 2676 2677 def int_aarch64_sme_za_enable 2678 : DefaultAttrsIntrinsic<[], [], [IntrNoMem, IntrHasSideEffects]>; 2679 def int_aarch64_sme_za_disable 2680 : DefaultAttrsIntrinsic<[], [], [IntrNoMem, IntrHasSideEffects]>; 2681 2682 // Clamp 2683 // 2684 2685 def int_aarch64_sve_sclamp : AdvSIMD_3VectorArg_Intrinsic; 2686 def int_aarch64_sve_uclamp : AdvSIMD_3VectorArg_Intrinsic; 2687 def int_aarch64_sve_fclamp : AdvSIMD_3VectorArg_Intrinsic; 2688 2689 2690 // 2691 // Reversal 2692 // 2693 2694 def int_aarch64_sve_revd : AdvSIMD_Merged1VectorArg_Intrinsic; 2695 2696 // 2697 // Predicate selection 2698 // 2699 2700 def int_aarch64_sve_psel 2701 : DefaultAttrsIntrinsic<[llvm_anyvector_ty], 2702 [LLVMScalarOrSameVectorWidth<0, llvm_i1_ty>, 2703 LLVMMatchType<0>, llvm_i32_ty]>; 2704 2705 // 2706 // Predicate-pair intrinsics 2707 // 2708 foreach cmp = ["ge", "gt", "hi", "hs", "le", "lo", "ls", "lt"] in { 2709 def int_aarch64_sve_while # cmp # _x2 2710 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>], 2711 [llvm_i64_ty, llvm_i64_ty], [IntrNoMem]>; 2712 } 2713 2714 // 2715 // SME2 Intrinsics 2716 // 2717 2718 class SME2_Matrix_ArrayVector_Single_Single_Intrinsic 2719 : DefaultAttrsIntrinsic<[], 2720 [llvm_i32_ty, 2721 llvm_anyvector_ty, LLVMMatchType<0>], 2722 []>; 2723 2724 class SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic 2725 : DefaultAttrsIntrinsic<[], 2726 [llvm_i32_ty, 2727 llvm_anyvector_ty, LLVMMatchType<0>, 2728 LLVMMatchType<0>], 2729 []>; 2730 2731 class SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic 2732 : DefaultAttrsIntrinsic<[], 2733 [llvm_i32_ty, 2734 llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>, 2735 LLVMMatchType<0>], 2736 []>; 2737 2738 class SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic 2739 : DefaultAttrsIntrinsic<[], 2740 [llvm_i32_ty, 2741 llvm_anyvector_ty, LLVMMatchType<0>, 2742 LLVMMatchType<0>, LLVMMatchType<0>], 2743 []>; 2744 2745 class SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic 2746 : DefaultAttrsIntrinsic<[], 2747 [llvm_i32_ty, 2748 llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>, 2749 LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 2750 []>; 2751 2752 class SME2_Matrix_ArrayVector_Single_Index_Intrinsic 2753 : DefaultAttrsIntrinsic<[], 2754 [llvm_i32_ty, 2755 llvm_anyvector_ty, 2756 LLVMMatchType<0>, llvm_i32_ty], 2757 [ImmArg<ArgIndex<3>>]>; 2758 2759 class SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic 2760 : DefaultAttrsIntrinsic<[], 2761 [llvm_i32_ty, 2762 llvm_anyvector_ty, LLVMMatchType<0>, 2763 LLVMMatchType<0>, llvm_i32_ty], 2764 [ImmArg<ArgIndex<4>>]>; 2765 2766 class SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic 2767 : DefaultAttrsIntrinsic<[], 2768 [llvm_i32_ty, 2769 llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>, 2770 LLVMMatchType<0>, llvm_i32_ty], 2771 [ImmArg<ArgIndex<6>>]>; 2772 2773 class SME2_ZA_Write_VG2_Intrinsic 2774 : DefaultAttrsIntrinsic<[], 2775 [llvm_i32_ty, 2776 llvm_anyvector_ty, LLVMMatchType<0>], 2777 []>; 2778 2779 class SME2_ZA_Write_VG4_Intrinsic 2780 : DefaultAttrsIntrinsic<[], 2781 [llvm_i32_ty, 2782 llvm_anyvector_ty, LLVMMatchType<0>, 2783 LLVMMatchType<0>, LLVMMatchType<0>], 2784 []>; 2785 2786 class SME2_CVT_VG2_SINGLE_Intrinsic 2787 : DefaultAttrsIntrinsic<[LLVMSubdivide2VectorType<0>], 2788 [llvm_anyvector_ty, LLVMMatchType<0>], 2789 [IntrNoMem]>; 2790 2791 class SME2_CVT_VG2_SINGLE_BF16_Intrinsic 2792 : DefaultAttrsIntrinsic<[llvm_nxv8bf16_ty], 2793 [llvm_nxv4f32_ty, llvm_nxv4f32_ty], 2794 [IntrNoMem]>; 2795 2796 class SME2_CVT_VG4_SINGLE_Intrinsic 2797 : DefaultAttrsIntrinsic<[LLVMSubdivide4VectorType<0>], 2798 [llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 2799 [IntrNoMem]>; 2800 2801 class SME2_CVT_FtoI_VG2_Intrinsic 2802 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>], 2803 [LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>], 2804 [IntrNoMem]>; 2805 2806 class SME2_CVT_ItoF_VG2_Intrinsic 2807 : DefaultAttrsIntrinsic<[LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>], 2808 [llvm_anyvector_ty, LLVMMatchType<0>], 2809 [IntrNoMem]>; 2810 2811 class SME2_CVT_FtoI_VG4_Intrinsic 2812 : DefaultAttrsIntrinsic<[llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 2813 [LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>, 2814 LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>], 2815 [IntrNoMem]>; 2816 2817 class SME2_CVT_ItoF_VG4_Intrinsic 2818 : DefaultAttrsIntrinsic<[LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>, 2819 LLVMVectorOfBitcastsToInt<0>, LLVMVectorOfBitcastsToInt<0>], 2820 [llvm_anyvector_ty, LLVMMatchType<0>, LLVMMatchType<0>, LLVMMatchType<0>], 2821 [IntrNoMem]>; 2822 2823 // 2824 // Multi-vector fused multiply-add/subtract 2825 // 2826 2827 def int_aarch64_sme_fmla_single_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic; 2828 def int_aarch64_sme_fmls_single_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic; 2829 def int_aarch64_sme_fmla_single_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic; 2830 def int_aarch64_sme_fmls_single_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic; 2831 2832 def int_aarch64_sme_fmla_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic; 2833 def int_aarch64_sme_fmls_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic; 2834 def int_aarch64_sme_fmla_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic; 2835 def int_aarch64_sme_fmls_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic; 2836 2837 def int_aarch64_sme_fmla_lane_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic; 2838 def int_aarch64_sme_fmls_lane_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic; 2839 def int_aarch64_sme_fmla_lane_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2840 def int_aarch64_sme_fmls_lane_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2841 2842 // 2843 // Multi-vector multiply-add/subtract long 2844 // 2845 2846 foreach ty = ["f", "s", "u"] in { 2847 foreach instr = ["mlal", "mlsl"] in { 2848 def int_aarch64_sme_ # ty # instr # _single_vg2x1 : SME2_Matrix_ArrayVector_Single_Single_Intrinsic; 2849 def int_aarch64_sme_ # ty # instr # _single_vg2x2 : SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic; 2850 def int_aarch64_sme_ # ty # instr # _single_vg2x4 : SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic; 2851 2852 def int_aarch64_sme_ # ty # instr # _vg2x2 : SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic; 2853 def int_aarch64_sme_ # ty # instr # _vg2x4 : SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic; 2854 2855 def int_aarch64_sme_ # ty # instr # _lane_vg2x1 : SME2_Matrix_ArrayVector_Single_Index_Intrinsic; 2856 def int_aarch64_sme_ # ty # instr # _lane_vg2x2 : SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic; 2857 def int_aarch64_sme_ # ty # instr # _lane_vg2x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2858 } 2859 } 2860 2861 // 2862 // Multi-vector vertical dot-products 2863 // 2864 2865 def int_aarch64_sme_fvdot_lane_za32_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic; 2866 2867 foreach ty = ["s", "u"] in { 2868 def int_aarch64_sme_ #ty # vdot_lane_za32_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Index_Intrinsic; 2869 def int_aarch64_sme_ #ty # vdot_lane_za32_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2870 def int_aarch64_sme_ #ty # vdot_lane_za64_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2871 } 2872 2873 def int_aarch64_sme_suvdot_lane_za32_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2874 def int_aarch64_sme_usvdot_lane_za32_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Index_Intrinsic; 2875 2876 // 2877 // Multi-vector floating-point CVT from single-precision to interleaved half-precision/BFloat16 2878 // 2879 def int_aarch64_sve_fcvtn_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2880 def int_aarch64_sve_bfcvtn_x2 : SME2_CVT_VG2_SINGLE_BF16_Intrinsic; 2881 2882 // 2883 // Multi-vector convert to/from floating-point. 2884 // 2885 def int_aarch64_sve_fcvt_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2886 def int_aarch64_sve_bfcvt_x2 : SME2_CVT_VG2_SINGLE_BF16_Intrinsic; 2887 def int_aarch64_sve_fcvts_x2 : SME2_CVT_FtoI_VG2_Intrinsic; 2888 def int_aarch64_sve_fcvtu_x2 : SME2_CVT_FtoI_VG2_Intrinsic; 2889 def int_aarch64_sve_scvtf_x2 : SME2_CVT_ItoF_VG2_Intrinsic; 2890 def int_aarch64_sve_ucvtf_x2 : SME2_CVT_ItoF_VG2_Intrinsic; 2891 def int_aarch64_sve_fcvts_x4 : SME2_CVT_FtoI_VG4_Intrinsic; 2892 def int_aarch64_sve_fcvtu_x4 : SME2_CVT_FtoI_VG4_Intrinsic; 2893 def int_aarch64_sve_scvtf_x4 : SME2_CVT_ItoF_VG4_Intrinsic; 2894 def int_aarch64_sve_ucvtf_x4 : SME2_CVT_ItoF_VG4_Intrinsic; 2895 2896 // 2897 // Multi-vector saturating extract narrow 2898 // 2899 def int_aarch64_sve_sqcvt_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2900 def int_aarch64_sve_uqcvt_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2901 def int_aarch64_sve_sqcvtu_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2902 def int_aarch64_sve_sqcvt_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2903 def int_aarch64_sve_uqcvt_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2904 def int_aarch64_sve_sqcvtu_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2905 2906 // 2907 // Multi-vector saturating extract narrow and interleave 2908 // 2909 def int_aarch64_sve_sqcvtn_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2910 def int_aarch64_sve_uqcvtn_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2911 def int_aarch64_sve_sqcvtun_x2 : SME2_CVT_VG2_SINGLE_Intrinsic; 2912 def int_aarch64_sve_sqcvtn_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2913 def int_aarch64_sve_uqcvtn_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2914 def int_aarch64_sve_sqcvtun_x4 : SME2_CVT_VG4_SINGLE_Intrinsic; 2915 2916 // 2917 // Multi-Single add/sub 2918 // 2919 def int_aarch64_sme_add_write_single_za_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic; 2920 def int_aarch64_sme_sub_write_single_za_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Single_Intrinsic; 2921 def int_aarch64_sme_add_write_single_za_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic; 2922 def int_aarch64_sme_sub_write_single_za_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Single_Intrinsic; 2923 2924 // 2925 // Multi-Multi add/sub 2926 // 2927 def int_aarch64_sme_add_write_za_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic; 2928 def int_aarch64_sme_sub_write_za_vg1x2 : SME2_Matrix_ArrayVector_VG2_Multi_Multi_Intrinsic; 2929 def int_aarch64_sme_add_write_za_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic; 2930 def int_aarch64_sme_sub_write_za_vg1x4 : SME2_Matrix_ArrayVector_VG4_Multi_Multi_Intrinsic; 2931} 2932