| ... | ... | @@ -1,1603 +1,1528 @@ |
| 1 | | const Feature = @import("std").target.Feature; |
| 2 | | const Cpu = @import("std").target.Cpu; |
| 3 | | |
| 4 | | pub const feature_aes = Feature{ |
| 5 | | .name = "aes", |
| 6 | | .llvm_name = "aes", |
| 7 | | .description = "Enable AES support", |
| 8 | | .dependencies = &[_]*const Feature { |
| 9 | | &feature_fpArmv8, |
| 10 | | }, |
| 11 | | }; |
| 12 | | |
| 13 | | pub const feature_am = Feature{ |
| 14 | | .name = "am", |
| 15 | | .llvm_name = "am", |
| 16 | | .description = "Enable v8.4-A Activity Monitors extension", |
| 17 | | .dependencies = &[_]*const Feature { |
| 18 | | }, |
| 19 | | }; |
| 20 | | |
| 21 | | pub const feature_aggressiveFma = Feature{ |
| 22 | | .name = "aggressiveFma", |
| 23 | | .llvm_name = "aggressive-fma", |
| 24 | | .description = "Enable Aggressive FMA for floating-point.", |
| 25 | | .dependencies = &[_]*const Feature { |
| 26 | | }, |
| 27 | | }; |
| 28 | | |
| 29 | | pub const feature_altnzcv = Feature{ |
| 30 | | .name = "altnzcv", |
| 31 | | .llvm_name = "altnzcv", |
| 32 | | .description = "Enable alternative NZCV format for floating point comparisons", |
| 33 | | .dependencies = &[_]*const Feature { |
| 34 | | }, |
| 35 | | }; |
| 36 | | |
| 37 | | pub const feature_alternateSextloadCvtF32Pattern = Feature{ |
| 38 | | .name = "alternateSextloadCvtF32Pattern", |
| 39 | | .llvm_name = "alternate-sextload-cvt-f32-pattern", |
| 40 | | .description = "Use alternative pattern for sextload convert to f32", |
| 41 | | .dependencies = &[_]*const Feature { |
| 42 | | }, |
| 43 | | }; |
| 44 | | |
| 45 | | pub const feature_arithBccFusion = Feature{ |
| 46 | | .name = "arithBccFusion", |
| 47 | | .llvm_name = "arith-bcc-fusion", |
| 48 | | .description = "CPU fuses arithmetic+bcc operations", |
| 49 | | .dependencies = &[_]*const Feature { |
| 50 | | }, |
| 51 | | }; |
| 52 | | |
| 53 | | pub const feature_arithCbzFusion = Feature{ |
| 54 | | .name = "arithCbzFusion", |
| 55 | | .llvm_name = "arith-cbz-fusion", |
| 56 | | .description = "CPU fuses arithmetic + cbz/cbnz operations", |
| 57 | | .dependencies = &[_]*const Feature { |
| 58 | | }, |
| 59 | | }; |
| 60 | | |
| 61 | | pub const feature_balanceFpOps = Feature{ |
| 62 | | .name = "balanceFpOps", |
| 63 | | .llvm_name = "balance-fp-ops", |
| 64 | | .description = "balance mix of odd and even D-registers for fp multiply(-accumulate) ops", |
| 65 | | .dependencies = &[_]*const Feature { |
| 66 | | }, |
| 67 | | }; |
| 68 | | |
| 69 | | pub const feature_bti = Feature{ |
| 70 | | .name = "bti", |
| 71 | | .llvm_name = "bti", |
| 72 | | .description = "Enable Branch Target Identification", |
| 73 | | .dependencies = &[_]*const Feature { |
| 74 | | }, |
| 75 | | }; |
| 76 | | |
| 77 | | pub const feature_ccidx = Feature{ |
| 78 | | .name = "ccidx", |
| 79 | | .llvm_name = "ccidx", |
| 80 | | .description = "Enable v8.3-A Extend of the CCSIDR number of sets", |
| 81 | | .dependencies = &[_]*const Feature { |
| 82 | | }, |
| 83 | | }; |
| 84 | | |
| 85 | | pub const feature_ccpp = Feature{ |
| 86 | | .name = "ccpp", |
| 87 | | .llvm_name = "ccpp", |
| 88 | | .description = "Enable v8.2 data Cache Clean to Point of Persistence", |
| 89 | | .dependencies = &[_]*const Feature { |
| 90 | | }, |
| 91 | | }; |
| 92 | | |
| 93 | | pub const feature_crc = Feature{ |
| 94 | | .name = "crc", |
| 95 | | .llvm_name = "crc", |
| 96 | | .description = "Enable ARMv8 CRC-32 checksum instructions", |
| 97 | | .dependencies = &[_]*const Feature { |
| 98 | | }, |
| 99 | | }; |
| 100 | | |
| 101 | | pub const feature_ccdp = Feature{ |
| 102 | | .name = "ccdp", |
| 103 | | .llvm_name = "ccdp", |
| 104 | | .description = "Enable v8.5 Cache Clean to Point of Deep Persistence", |
| 105 | | .dependencies = &[_]*const Feature { |
| 106 | | }, |
| 107 | | }; |
| 108 | | |
| 109 | | pub const feature_callSavedX8 = Feature{ |
| 110 | | .name = "callSavedX8", |
| 111 | | .llvm_name = "call-saved-x8", |
| 112 | | .description = "Make X8 callee saved.", |
| 113 | | .dependencies = &[_]*const Feature { |
| 114 | | }, |
| 115 | | }; |
| 116 | | |
| 117 | | pub const feature_callSavedX9 = Feature{ |
| 118 | | .name = "callSavedX9", |
| 119 | | .llvm_name = "call-saved-x9", |
| 120 | | .description = "Make X9 callee saved.", |
| 121 | | .dependencies = &[_]*const Feature { |
| 122 | | }, |
| 123 | | }; |
| 124 | | |
| 125 | | pub const feature_callSavedX10 = Feature{ |
| 126 | | .name = "callSavedX10", |
| 127 | | .llvm_name = "call-saved-x10", |
| 128 | | .description = "Make X10 callee saved.", |
| 129 | | .dependencies = &[_]*const Feature { |
| 130 | | }, |
| 131 | | }; |
| 132 | | |
| 133 | | pub const feature_callSavedX11 = Feature{ |
| 134 | | .name = "callSavedX11", |
| 135 | | .llvm_name = "call-saved-x11", |
| 136 | | .description = "Make X11 callee saved.", |
| 137 | | .dependencies = &[_]*const Feature { |
| 138 | | }, |
| 139 | | }; |
| 140 | | |
| 141 | | pub const feature_callSavedX12 = Feature{ |
| 142 | | .name = "callSavedX12", |
| 143 | | .llvm_name = "call-saved-x12", |
| 144 | | .description = "Make X12 callee saved.", |
| 145 | | .dependencies = &[_]*const Feature { |
| 146 | | }, |
| 147 | | }; |
| 148 | | |
| 149 | | pub const feature_callSavedX13 = Feature{ |
| 150 | | .name = "callSavedX13", |
| 151 | | .llvm_name = "call-saved-x13", |
| 152 | | .description = "Make X13 callee saved.", |
| 153 | | .dependencies = &[_]*const Feature { |
| 154 | | }, |
| 155 | | }; |
| 156 | | |
| 157 | | pub const feature_callSavedX14 = Feature{ |
| 158 | | .name = "callSavedX14", |
| 159 | | .llvm_name = "call-saved-x14", |
| 160 | | .description = "Make X14 callee saved.", |
| 161 | | .dependencies = &[_]*const Feature { |
| 162 | | }, |
| 163 | | }; |
| 164 | | |
| 165 | | pub const feature_callSavedX15 = Feature{ |
| 166 | | .name = "callSavedX15", |
| 167 | | .llvm_name = "call-saved-x15", |
| 168 | | .description = "Make X15 callee saved.", |
| 169 | | .dependencies = &[_]*const Feature { |
| 170 | | }, |
| 171 | | }; |
| 172 | | |
| 173 | | pub const feature_callSavedX18 = Feature{ |
| 174 | | .name = "callSavedX18", |
| 175 | | .llvm_name = "call-saved-x18", |
| 176 | | .description = "Make X18 callee saved.", |
| 177 | | .dependencies = &[_]*const Feature { |
| 178 | | }, |
| 179 | | }; |
| 180 | | |
| 181 | | pub const feature_complxnum = Feature{ |
| 182 | | .name = "complxnum", |
| 183 | | .llvm_name = "complxnum", |
| 184 | | .description = "Enable v8.3-A Floating-point complex number support", |
| 185 | | .dependencies = &[_]*const Feature { |
| 186 | | &feature_fpArmv8, |
| 187 | | }, |
| 188 | | }; |
| 189 | | |
| 190 | | pub const feature_crypto = Feature{ |
| 191 | | .name = "crypto", |
| 192 | | .llvm_name = "crypto", |
| 193 | | .description = "Enable cryptographic instructions", |
| 194 | | .dependencies = &[_]*const Feature { |
| 195 | | &feature_fpArmv8, |
| 196 | | }, |
| 197 | | }; |
| 198 | | |
| 199 | | pub const feature_customCheapAsMove = Feature{ |
| 200 | | .name = "customCheapAsMove", |
| 201 | | .llvm_name = "custom-cheap-as-move", |
| 202 | | .description = "Use custom handling of cheap instructions", |
| 203 | | .dependencies = &[_]*const Feature { |
| 204 | | }, |
| 205 | | }; |
| 206 | | |
| 207 | | pub const feature_dit = Feature{ |
| 208 | | .name = "dit", |
| 209 | | .llvm_name = "dit", |
| 210 | | .description = "Enable v8.4-A Data Independent Timing instructions", |
| 211 | | .dependencies = &[_]*const Feature { |
| 212 | | }, |
| 213 | | }; |
| 214 | | |
| 215 | | pub const feature_disableLatencySchedHeuristic = Feature{ |
| 216 | | .name = "disableLatencySchedHeuristic", |
| 217 | | .llvm_name = "disable-latency-sched-heuristic", |
| 218 | | .description = "Disable latency scheduling heuristic", |
| 219 | | .dependencies = &[_]*const Feature { |
| 220 | | }, |
| 221 | | }; |
| 222 | | |
| 223 | | pub const feature_dotprod = Feature{ |
| 224 | | .name = "dotprod", |
| 225 | | .llvm_name = "dotprod", |
| 226 | | .description = "Enable dot product support", |
| 227 | | .dependencies = &[_]*const Feature { |
| 228 | | }, |
| 229 | | }; |
| 230 | | |
| 231 | | pub const feature_exynosCheapAsMove = Feature{ |
| 232 | | .name = "exynosCheapAsMove", |
| 233 | | .llvm_name = "exynos-cheap-as-move", |
| 234 | | .description = "Use Exynos specific handling of cheap instructions", |
| 235 | | .dependencies = &[_]*const Feature { |
| 236 | | &feature_customCheapAsMove, |
| 237 | | }, |
| 238 | | }; |
| 239 | | |
| 240 | | pub const feature_fmi = Feature{ |
| 241 | | .name = "fmi", |
| 242 | | .llvm_name = "fmi", |
| 243 | | .description = "Enable v8.4-A Flag Manipulation Instructions", |
| 244 | | .dependencies = &[_]*const Feature { |
| 245 | | }, |
| 246 | | }; |
| 247 | | |
| 248 | | pub const feature_fp16fml = Feature{ |
| 249 | | .name = "fp16fml", |
| 250 | | .llvm_name = "fp16fml", |
| 251 | | .description = "Enable FP16 FML instructions", |
| 252 | | .dependencies = &[_]*const Feature { |
| 253 | | &feature_fpArmv8, |
| 254 | | }, |
| 255 | | }; |
| 256 | | |
| 257 | | pub const feature_fpArmv8 = Feature{ |
| 258 | | .name = "fpArmv8", |
| 259 | | .llvm_name = "fp-armv8", |
| 260 | | .description = "Enable ARMv8 FP", |
| 261 | | .dependencies = &[_]*const Feature { |
| 262 | | }, |
| 263 | | }; |
| 264 | | |
| 265 | | pub const feature_fptoint = Feature{ |
| 266 | | .name = "fptoint", |
| 267 | | .llvm_name = "fptoint", |
| 268 | | .description = "Enable FRInt[32|64][Z|X] instructions that round a floating-point number to an integer (in FP format) forcing it to fit into a 32- or 64-bit int", |
| 269 | | .dependencies = &[_]*const Feature { |
| 270 | | }, |
| 271 | | }; |
| 272 | | |
| 273 | | pub const feature_force32bitJumpTables = Feature{ |
| 274 | | .name = "force32bitJumpTables", |
| 275 | | .llvm_name = "force-32bit-jump-tables", |
| 276 | | .description = "Force jump table entries to be 32-bits wide except at MinSize", |
| 277 | | .dependencies = &[_]*const Feature { |
| 278 | | }, |
| 279 | | }; |
| 280 | | |
| 281 | | pub const feature_fullfp16 = Feature{ |
| 282 | | .name = "fullfp16", |
| 283 | | .llvm_name = "fullfp16", |
| 284 | | .description = "Full FP16", |
| 285 | | .dependencies = &[_]*const Feature { |
| 286 | | &feature_fpArmv8, |
| 287 | | }, |
| 288 | | }; |
| 289 | | |
| 290 | | pub const feature_fuseAes = Feature{ |
| 291 | | .name = "fuseAes", |
| 292 | | .llvm_name = "fuse-aes", |
| 293 | | .description = "CPU fuses AES crypto operations", |
| 294 | | .dependencies = &[_]*const Feature { |
| 295 | | }, |
| 296 | | }; |
| 297 | | |
| 298 | | pub const feature_fuseAddress = Feature{ |
| 299 | | .name = "fuseAddress", |
| 300 | | .llvm_name = "fuse-address", |
| 301 | | .description = "CPU fuses address generation and memory operations", |
| 302 | | .dependencies = &[_]*const Feature { |
| 303 | | }, |
| 304 | | }; |
| 305 | | |
| 306 | | pub const feature_fuseArithLogic = Feature{ |
| 307 | | .name = "fuseArithLogic", |
| 308 | | .llvm_name = "fuse-arith-logic", |
| 309 | | .description = "CPU fuses arithmetic and logic operations", |
| 310 | | .dependencies = &[_]*const Feature { |
| 311 | | }, |
| 312 | | }; |
| 313 | | |
| 314 | | pub const feature_fuseCsel = Feature{ |
| 315 | | .name = "fuseCsel", |
| 316 | | .llvm_name = "fuse-csel", |
| 317 | | .description = "CPU fuses conditional select operations", |
| 318 | | .dependencies = &[_]*const Feature { |
| 319 | | }, |
| 320 | | }; |
| 321 | | |
| 322 | | pub const feature_fuseCryptoEor = Feature{ |
| 323 | | .name = "fuseCryptoEor", |
| 324 | | .llvm_name = "fuse-crypto-eor", |
| 325 | | .description = "CPU fuses AES/PMULL and EOR operations", |
| 326 | | .dependencies = &[_]*const Feature { |
| 327 | | }, |
| 328 | | }; |
| 329 | | |
| 330 | | pub const feature_fuseLiterals = Feature{ |
| 331 | | .name = "fuseLiterals", |
| 332 | | .llvm_name = "fuse-literals", |
| 333 | | .description = "CPU fuses literal generation operations", |
| 334 | | .dependencies = &[_]*const Feature { |
| 335 | | }, |
| 336 | | }; |
| 337 | | |
| 338 | | pub const feature_jsconv = Feature{ |
| 339 | | .name = "jsconv", |
| 340 | | .llvm_name = "jsconv", |
| 341 | | .description = "Enable v8.3-A JavaScript FP conversion enchancement", |
| 342 | | .dependencies = &[_]*const Feature { |
| 343 | | &feature_fpArmv8, |
| 344 | | }, |
| 345 | | }; |
| 346 | | |
| 347 | | pub const feature_lor = Feature{ |
| 348 | | .name = "lor", |
| 349 | | .llvm_name = "lor", |
| 350 | | .description = "Enables ARM v8.1 Limited Ordering Regions extension", |
| 351 | | .dependencies = &[_]*const Feature { |
| 352 | | }, |
| 353 | | }; |
| 354 | | |
| 355 | | pub const feature_lse = Feature{ |
| 356 | | .name = "lse", |
| 357 | | .llvm_name = "lse", |
| 358 | | .description = "Enable ARMv8.1 Large System Extension (LSE) atomic instructions", |
| 359 | | .dependencies = &[_]*const Feature { |
| 360 | | }, |
| 361 | | }; |
| 362 | | |
| 363 | | pub const feature_lslFast = Feature{ |
| 364 | | .name = "lslFast", |
| 365 | | .llvm_name = "lsl-fast", |
| 366 | | .description = "CPU has a fastpath logical shift of up to 3 places", |
| 367 | | .dependencies = &[_]*const Feature { |
| 368 | | }, |
| 369 | | }; |
| 370 | | |
| 371 | | pub const feature_mpam = Feature{ |
| 372 | | .name = "mpam", |
| 373 | | .llvm_name = "mpam", |
| 374 | | .description = "Enable v8.4-A Memory system Partitioning and Monitoring extension", |
| 375 | | .dependencies = &[_]*const Feature { |
| 376 | | }, |
| 377 | | }; |
| 378 | | |
| 379 | | pub const feature_mte = Feature{ |
| 380 | | .name = "mte", |
| 381 | | .llvm_name = "mte", |
| 382 | | .description = "Enable Memory Tagging Extension", |
| 383 | | .dependencies = &[_]*const Feature { |
| 384 | | }, |
| 385 | | }; |
| 386 | | |
| 387 | | pub const feature_neon = Feature{ |
| 388 | | .name = "neon", |
| 389 | | .llvm_name = "neon", |
| 390 | | .description = "Enable Advanced SIMD instructions", |
| 391 | | .dependencies = &[_]*const Feature { |
| 392 | | &feature_fpArmv8, |
| 393 | | }, |
| 394 | | }; |
| 395 | | |
| 396 | | pub const feature_nv = Feature{ |
| 397 | | .name = "nv", |
| 398 | | .llvm_name = "nv", |
| 399 | | .description = "Enable v8.4-A Nested Virtualization Enchancement", |
| 400 | | .dependencies = &[_]*const Feature { |
| 401 | | }, |
| 402 | | }; |
| 403 | | |
| 404 | | pub const feature_noNegImmediates = Feature{ |
| 405 | | .name = "noNegImmediates", |
| 406 | | .llvm_name = "no-neg-immediates", |
| 407 | | .description = "Convert immediates and instructions to their negated or complemented equivalent when the immediate does not fit in the encoding.", |
| 408 | | .dependencies = &[_]*const Feature { |
| 409 | | }, |
| 410 | | }; |
| 411 | | |
| 412 | | pub const feature_pa = Feature{ |
| 413 | | .name = "pa", |
| 414 | | .llvm_name = "pa", |
| 415 | | .description = "Enable v8.3-A Pointer Authentication enchancement", |
| 416 | | .dependencies = &[_]*const Feature { |
| 417 | | }, |
| 418 | | }; |
| 419 | | |
| 420 | | pub const feature_pan = Feature{ |
| 421 | | .name = "pan", |
| 422 | | .llvm_name = "pan", |
| 423 | | .description = "Enables ARM v8.1 Privileged Access-Never extension", |
| 424 | | .dependencies = &[_]*const Feature { |
| 425 | | }, |
| 426 | | }; |
| 427 | | |
| 428 | | pub const feature_panRwv = Feature{ |
| 429 | | .name = "panRwv", |
| 430 | | .llvm_name = "pan-rwv", |
| 431 | | .description = "Enable v8.2 PAN s1e1R and s1e1W Variants", |
| 432 | | .dependencies = &[_]*const Feature { |
| 433 | | &feature_pan, |
| 434 | | }, |
| 435 | | }; |
| 436 | | |
| 437 | | pub const feature_perfmon = Feature{ |
| 438 | | .name = "perfmon", |
| 439 | | .llvm_name = "perfmon", |
| 440 | | .description = "Enable ARMv8 PMUv3 Performance Monitors extension", |
| 441 | | .dependencies = &[_]*const Feature { |
| 442 | | }, |
| 443 | | }; |
| 444 | | |
| 445 | | pub const feature_usePostraScheduler = Feature{ |
| 446 | | .name = "usePostraScheduler", |
| 447 | | .llvm_name = "use-postra-scheduler", |
| 448 | | .description = "Schedule again after register allocation", |
| 449 | | .dependencies = &[_]*const Feature { |
| 450 | | }, |
| 451 | | }; |
| 452 | | |
| 453 | | pub const feature_predres = Feature{ |
| 454 | | .name = "predres", |
| 455 | | .llvm_name = "predres", |
| 456 | | .description = "Enable v8.5a execution and data prediction invalidation instructions", |
| 457 | | .dependencies = &[_]*const Feature { |
| 458 | | }, |
| 459 | | }; |
| 460 | | |
| 461 | | pub const feature_predictableSelectExpensive = Feature{ |
| 462 | | .name = "predictableSelectExpensive", |
| 463 | | .llvm_name = "predictable-select-expensive", |
| 464 | | .description = "Prefer likely predicted branches over selects", |
| 465 | | .dependencies = &[_]*const Feature { |
| 466 | | }, |
| 467 | | }; |
| 468 | | |
| 469 | | pub const feature_uaops = Feature{ |
| 470 | | .name = "uaops", |
| 471 | | .llvm_name = "uaops", |
| 472 | | .description = "Enable v8.2 UAO PState", |
| 473 | | .dependencies = &[_]*const Feature { |
| 474 | | }, |
| 475 | | }; |
| 476 | | |
| 477 | | pub const feature_ras = Feature{ |
| 478 | | .name = "ras", |
| 479 | | .llvm_name = "ras", |
| 480 | | .description = "Enable ARMv8 Reliability, Availability and Serviceability Extensions", |
| 481 | | .dependencies = &[_]*const Feature { |
| 482 | | }, |
| 483 | | }; |
| 484 | | |
| 485 | | pub const feature_rasv8_4 = Feature{ |
| 486 | | .name = "rasv8_4", |
| 487 | | .llvm_name = "rasv8_4", |
| 488 | | .description = "Enable v8.4-A Reliability, Availability and Serviceability extension", |
| 489 | | .dependencies = &[_]*const Feature { |
| 490 | | &feature_ras, |
| 491 | | }, |
| 492 | | }; |
| 493 | | |
| 494 | | pub const feature_rcpc = Feature{ |
| 495 | | .name = "rcpc", |
| 496 | | .llvm_name = "rcpc", |
| 497 | | .description = "Enable support for RCPC extension", |
| 498 | | .dependencies = &[_]*const Feature { |
| 499 | | }, |
| 500 | | }; |
| 501 | | |
| 502 | | pub const feature_rcpcImmo = Feature{ |
| 503 | | .name = "rcpcImmo", |
| 504 | | .llvm_name = "rcpc-immo", |
| 505 | | .description = "Enable v8.4-A RCPC instructions with Immediate Offsets", |
| 506 | | .dependencies = &[_]*const Feature { |
| 507 | | &feature_rcpc, |
| 508 | | }, |
| 509 | | }; |
| 510 | | |
| 511 | | pub const feature_rdm = Feature{ |
| 512 | | .name = "rdm", |
| 513 | | .llvm_name = "rdm", |
| 514 | | .description = "Enable ARMv8.1 Rounding Double Multiply Add/Subtract instructions", |
| 515 | | .dependencies = &[_]*const Feature { |
| 516 | | }, |
| 517 | | }; |
| 518 | | |
| 519 | | pub const feature_rand = Feature{ |
| 520 | | .name = "rand", |
| 521 | | .llvm_name = "rand", |
| 522 | | .description = "Enable Random Number generation instructions", |
| 523 | | .dependencies = &[_]*const Feature { |
| 524 | | }, |
| 525 | | }; |
| 526 | | |
| 527 | | pub const feature_reserveX1 = Feature{ |
| 528 | | .name = "reserveX1", |
| 529 | | .llvm_name = "reserve-x1", |
| 530 | | .description = "Reserve X1, making it unavailable as a GPR", |
| 531 | | .dependencies = &[_]*const Feature { |
| 532 | | }, |
| 533 | | }; |
| 534 | | |
| 535 | | pub const feature_reserveX2 = Feature{ |
| 536 | | .name = "reserveX2", |
| 537 | | .llvm_name = "reserve-x2", |
| 538 | | .description = "Reserve X2, making it unavailable as a GPR", |
| 539 | | .dependencies = &[_]*const Feature { |
| 540 | | }, |
| 541 | | }; |
| 542 | | |
| 543 | | pub const feature_reserveX3 = Feature{ |
| 544 | | .name = "reserveX3", |
| 545 | | .llvm_name = "reserve-x3", |
| 546 | | .description = "Reserve X3, making it unavailable as a GPR", |
| 547 | | .dependencies = &[_]*const Feature { |
| 548 | | }, |
| 549 | | }; |
| 550 | | |
| 551 | | pub const feature_reserveX4 = Feature{ |
| 552 | | .name = "reserveX4", |
| 553 | | .llvm_name = "reserve-x4", |
| 554 | | .description = "Reserve X4, making it unavailable as a GPR", |
| 555 | | .dependencies = &[_]*const Feature { |
| 556 | | }, |
| 557 | | }; |
| 558 | | |
| 559 | | pub const feature_reserveX5 = Feature{ |
| 560 | | .name = "reserveX5", |
| 561 | | .llvm_name = "reserve-x5", |
| 562 | | .description = "Reserve X5, making it unavailable as a GPR", |
| 563 | | .dependencies = &[_]*const Feature { |
| 564 | | }, |
| 565 | | }; |
| 566 | | |
| 567 | | pub const feature_reserveX6 = Feature{ |
| 568 | | .name = "reserveX6", |
| 569 | | .llvm_name = "reserve-x6", |
| 570 | | .description = "Reserve X6, making it unavailable as a GPR", |
| 571 | | .dependencies = &[_]*const Feature { |
| 572 | | }, |
| 573 | | }; |
| 574 | | |
| 575 | | pub const feature_reserveX7 = Feature{ |
| 576 | | .name = "reserveX7", |
| 577 | | .llvm_name = "reserve-x7", |
| 578 | | .description = "Reserve X7, making it unavailable as a GPR", |
| 579 | | .dependencies = &[_]*const Feature { |
| 580 | | }, |
| 581 | | }; |
| 582 | | |
| 583 | | pub const feature_reserveX9 = Feature{ |
| 584 | | .name = "reserveX9", |
| 585 | | .llvm_name = "reserve-x9", |
| 586 | | .description = "Reserve X9, making it unavailable as a GPR", |
| 587 | | .dependencies = &[_]*const Feature { |
| 588 | | }, |
| 589 | | }; |
| 590 | | |
| 591 | | pub const feature_reserveX10 = Feature{ |
| 592 | | .name = "reserveX10", |
| 593 | | .llvm_name = "reserve-x10", |
| 594 | | .description = "Reserve X10, making it unavailable as a GPR", |
| 595 | | .dependencies = &[_]*const Feature { |
| 596 | | }, |
| 597 | | }; |
| 598 | | |
| 599 | | pub const feature_reserveX11 = Feature{ |
| 600 | | .name = "reserveX11", |
| 601 | | .llvm_name = "reserve-x11", |
| 602 | | .description = "Reserve X11, making it unavailable as a GPR", |
| 603 | | .dependencies = &[_]*const Feature { |
| 604 | | }, |
| 605 | | }; |
| 606 | | |
| 607 | | pub const feature_reserveX12 = Feature{ |
| 608 | | .name = "reserveX12", |
| 609 | | .llvm_name = "reserve-x12", |
| 610 | | .description = "Reserve X12, making it unavailable as a GPR", |
| 611 | | .dependencies = &[_]*const Feature { |
| 612 | | }, |
| 613 | | }; |
| 614 | | |
| 615 | | pub const feature_reserveX13 = Feature{ |
| 616 | | .name = "reserveX13", |
| 617 | | .llvm_name = "reserve-x13", |
| 618 | | .description = "Reserve X13, making it unavailable as a GPR", |
| 619 | | .dependencies = &[_]*const Feature { |
| 620 | | }, |
| 621 | | }; |
| 622 | | |
| 623 | | pub const feature_reserveX14 = Feature{ |
| 624 | | .name = "reserveX14", |
| 625 | | .llvm_name = "reserve-x14", |
| 626 | | .description = "Reserve X14, making it unavailable as a GPR", |
| 627 | | .dependencies = &[_]*const Feature { |
| 628 | | }, |
| 629 | | }; |
| 630 | | |
| 631 | | pub const feature_reserveX15 = Feature{ |
| 632 | | .name = "reserveX15", |
| 633 | | .llvm_name = "reserve-x15", |
| 634 | | .description = "Reserve X15, making it unavailable as a GPR", |
| 635 | | .dependencies = &[_]*const Feature { |
| 636 | | }, |
| 637 | | }; |
| 638 | | |
| 639 | | pub const feature_reserveX18 = Feature{ |
| 640 | | .name = "reserveX18", |
| 641 | | .llvm_name = "reserve-x18", |
| 642 | | .description = "Reserve X18, making it unavailable as a GPR", |
| 643 | | .dependencies = &[_]*const Feature { |
| 644 | | }, |
| 645 | | }; |
| 646 | | |
| 647 | | pub const feature_reserveX20 = Feature{ |
| 648 | | .name = "reserveX20", |
| 649 | | .llvm_name = "reserve-x20", |
| 650 | | .description = "Reserve X20, making it unavailable as a GPR", |
| 651 | | .dependencies = &[_]*const Feature { |
| 652 | | }, |
| 653 | | }; |
| 654 | | |
| 655 | | pub const feature_reserveX21 = Feature{ |
| 656 | | .name = "reserveX21", |
| 657 | | .llvm_name = "reserve-x21", |
| 658 | | .description = "Reserve X21, making it unavailable as a GPR", |
| 659 | | .dependencies = &[_]*const Feature { |
| 660 | | }, |
| 661 | | }; |
| 662 | | |
| 663 | | pub const feature_reserveX22 = Feature{ |
| 664 | | .name = "reserveX22", |
| 665 | | .llvm_name = "reserve-x22", |
| 666 | | .description = "Reserve X22, making it unavailable as a GPR", |
| 667 | | .dependencies = &[_]*const Feature { |
| 668 | | }, |
| 669 | | }; |
| 670 | | |
| 671 | | pub const feature_reserveX23 = Feature{ |
| 672 | | .name = "reserveX23", |
| 673 | | .llvm_name = "reserve-x23", |
| 674 | | .description = "Reserve X23, making it unavailable as a GPR", |
| 675 | | .dependencies = &[_]*const Feature { |
| 676 | | }, |
| 677 | | }; |
| 678 | | |
| 679 | | pub const feature_reserveX24 = Feature{ |
| 680 | | .name = "reserveX24", |
| 681 | | .llvm_name = "reserve-x24", |
| 682 | | .description = "Reserve X24, making it unavailable as a GPR", |
| 683 | | .dependencies = &[_]*const Feature { |
| 684 | | }, |
| 685 | | }; |
| 686 | | |
| 687 | | pub const feature_reserveX25 = Feature{ |
| 688 | | .name = "reserveX25", |
| 689 | | .llvm_name = "reserve-x25", |
| 690 | | .description = "Reserve X25, making it unavailable as a GPR", |
| 691 | | .dependencies = &[_]*const Feature { |
| 692 | | }, |
| 693 | | }; |
| 694 | | |
| 695 | | pub const feature_reserveX26 = Feature{ |
| 696 | | .name = "reserveX26", |
| 697 | | .llvm_name = "reserve-x26", |
| 698 | | .description = "Reserve X26, making it unavailable as a GPR", |
| 699 | | .dependencies = &[_]*const Feature { |
| 700 | | }, |
| 701 | | }; |
| 702 | | |
| 703 | | pub const feature_reserveX27 = Feature{ |
| 704 | | .name = "reserveX27", |
| 705 | | .llvm_name = "reserve-x27", |
| 706 | | .description = "Reserve X27, making it unavailable as a GPR", |
| 707 | | .dependencies = &[_]*const Feature { |
| 708 | | }, |
| 709 | | }; |
| 710 | | |
| 711 | | pub const feature_reserveX28 = Feature{ |
| 712 | | .name = "reserveX28", |
| 713 | | .llvm_name = "reserve-x28", |
| 714 | | .description = "Reserve X28, making it unavailable as a GPR", |
| 715 | | .dependencies = &[_]*const Feature { |
| 716 | | }, |
| 717 | | }; |
| 718 | | |
| 719 | | pub const feature_sb = Feature{ |
| 720 | | .name = "sb", |
| 721 | | .llvm_name = "sb", |
| 722 | | .description = "Enable v8.5 Speculation Barrier", |
| 723 | | .dependencies = &[_]*const Feature { |
| 724 | | }, |
| 725 | | }; |
| 726 | | |
| 727 | | pub const feature_sel2 = Feature{ |
| 728 | | .name = "sel2", |
| 729 | | .llvm_name = "sel2", |
| 730 | | .description = "Enable v8.4-A Secure Exception Level 2 extension", |
| 731 | | .dependencies = &[_]*const Feature { |
| 732 | | }, |
| 733 | | }; |
| 734 | | |
| 735 | | pub const feature_sha2 = Feature{ |
| 736 | | .name = "sha2", |
| 737 | | .llvm_name = "sha2", |
| 738 | | .description = "Enable SHA1 and SHA256 support", |
| 739 | | .dependencies = &[_]*const Feature { |
| 740 | | &feature_fpArmv8, |
| 741 | | }, |
| 742 | | }; |
| 743 | | |
| 744 | | pub const feature_sha3 = Feature{ |
| 745 | | .name = "sha3", |
| 746 | | .llvm_name = "sha3", |
| 747 | | .description = "Enable SHA512 and SHA3 support", |
| 748 | | .dependencies = &[_]*const Feature { |
| 749 | | &feature_fpArmv8, |
| 750 | | }, |
| 751 | | }; |
| 752 | | |
| 753 | | pub const feature_sm4 = Feature{ |
| 754 | | .name = "sm4", |
| 755 | | .llvm_name = "sm4", |
| 756 | | .description = "Enable SM3 and SM4 support", |
| 757 | | .dependencies = &[_]*const Feature { |
| 758 | | &feature_fpArmv8, |
| 759 | | }, |
| 760 | | }; |
| 761 | | |
| 762 | | pub const feature_spe = Feature{ |
| 763 | | .name = "spe", |
| 764 | | .llvm_name = "spe", |
| 765 | | .description = "Enable Statistical Profiling extension", |
| 766 | | .dependencies = &[_]*const Feature { |
| 767 | | }, |
| 768 | | }; |
| 769 | | |
| 770 | | pub const feature_ssbs = Feature{ |
| 771 | | .name = "ssbs", |
| 772 | | .llvm_name = "ssbs", |
| 773 | | .description = "Enable Speculative Store Bypass Safe bit", |
| 774 | | .dependencies = &[_]*const Feature { |
| 775 | | }, |
| 776 | | }; |
| 777 | | |
| 778 | | pub const feature_sve = Feature{ |
| 779 | | .name = "sve", |
| 780 | | .llvm_name = "sve", |
| 781 | | .description = "Enable Scalable Vector Extension (SVE) instructions", |
| 782 | | .dependencies = &[_]*const Feature { |
| 783 | | }, |
| 784 | | }; |
| 785 | | |
| 786 | | pub const feature_sve2 = Feature{ |
| 787 | | .name = "sve2", |
| 788 | | .llvm_name = "sve2", |
| 789 | | .description = "Enable Scalable Vector Extension 2 (SVE2) instructions", |
| 790 | | .dependencies = &[_]*const Feature { |
| 791 | | &feature_sve, |
| 792 | | }, |
| 793 | | }; |
| 794 | | |
| 795 | | pub const feature_sve2Aes = Feature{ |
| 796 | | .name = "sve2Aes", |
| 797 | | .llvm_name = "sve2-aes", |
| 798 | | .description = "Enable AES SVE2 instructions", |
| 799 | | .dependencies = &[_]*const Feature { |
| 800 | | &feature_sve, |
| 801 | | &feature_fpArmv8, |
| 802 | | }, |
| 803 | | }; |
| 804 | | |
| 805 | | pub const feature_sve2Bitperm = Feature{ |
| 806 | | .name = "sve2Bitperm", |
| 807 | | .llvm_name = "sve2-bitperm", |
| 808 | | .description = "Enable bit permutation SVE2 instructions", |
| 809 | | .dependencies = &[_]*const Feature { |
| 810 | | &feature_sve, |
| 811 | | }, |
| 812 | | }; |
| 813 | | |
| 814 | | pub const feature_sve2Sha3 = Feature{ |
| 815 | | .name = "sve2Sha3", |
| 816 | | .llvm_name = "sve2-sha3", |
| 817 | | .description = "Enable SHA3 SVE2 instructions", |
| 818 | | .dependencies = &[_]*const Feature { |
| 819 | | &feature_sve, |
| 820 | | &feature_fpArmv8, |
| 821 | | }, |
| 822 | | }; |
| 823 | | |
| 824 | | pub const feature_sve2Sm4 = Feature{ |
| 825 | | .name = "sve2Sm4", |
| 826 | | .llvm_name = "sve2-sm4", |
| 827 | | .description = "Enable SM4 SVE2 instructions", |
| 828 | | .dependencies = &[_]*const Feature { |
| 829 | | &feature_sve, |
| 830 | | &feature_fpArmv8, |
| 831 | | }, |
| 832 | | }; |
| 833 | | |
| 834 | | pub const feature_slowMisaligned128store = Feature{ |
| 835 | | .name = "slowMisaligned128store", |
| 836 | | .llvm_name = "slow-misaligned-128store", |
| 837 | | .description = "Misaligned 128 bit stores are slow", |
| 838 | | .dependencies = &[_]*const Feature { |
| 839 | | }, |
| 840 | | }; |
| 841 | | |
| 842 | | pub const feature_slowPaired128 = Feature{ |
| 843 | | .name = "slowPaired128", |
| 844 | | .llvm_name = "slow-paired-128", |
| 845 | | .description = "Paired 128 bit loads and stores are slow", |
| 846 | | .dependencies = &[_]*const Feature { |
| 847 | | }, |
| 848 | | }; |
| 849 | | |
| 850 | | pub const feature_slowStrqroStore = Feature{ |
| 851 | | .name = "slowStrqroStore", |
| 852 | | .llvm_name = "slow-strqro-store", |
| 853 | | .description = "STR of Q register with register offset is slow", |
| 854 | | .dependencies = &[_]*const Feature { |
| 855 | | }, |
| 856 | | }; |
| 857 | | |
| 858 | | pub const feature_specrestrict = Feature{ |
| 859 | | .name = "specrestrict", |
| 860 | | .llvm_name = "specrestrict", |
| 861 | | .description = "Enable architectural speculation restriction", |
| 862 | | .dependencies = &[_]*const Feature { |
| 863 | | }, |
| 864 | | }; |
| 865 | | |
| 866 | | pub const feature_strictAlign = Feature{ |
| 867 | | .name = "strictAlign", |
| 868 | | .llvm_name = "strict-align", |
| 869 | | .description = "Disallow all unaligned memory access", |
| 870 | | .dependencies = &[_]*const Feature { |
| 871 | | }, |
| 872 | | }; |
| 873 | | |
| 874 | | pub const feature_tlbRmi = Feature{ |
| 875 | | .name = "tlbRmi", |
| 876 | | .llvm_name = "tlb-rmi", |
| 877 | | .description = "Enable v8.4-A TLB Range and Maintenance Instructions", |
| 878 | | .dependencies = &[_]*const Feature { |
| 879 | | }, |
| 880 | | }; |
| 881 | | |
| 882 | | pub const feature_tracev84 = Feature{ |
| 883 | | .name = "tracev84", |
| 884 | | .llvm_name = "tracev8.4", |
| 885 | | .description = "Enable v8.4-A Trace extension", |
| 886 | | .dependencies = &[_]*const Feature { |
| 887 | | }, |
| 888 | | }; |
| 889 | | |
| 890 | | pub const feature_useAa = Feature{ |
| 891 | | .name = "useAa", |
| 892 | | .llvm_name = "use-aa", |
| 893 | | .description = "Use alias analysis during codegen", |
| 894 | | .dependencies = &[_]*const Feature { |
| 895 | | }, |
| 896 | | }; |
| 897 | | |
| 898 | | pub const feature_tpidrEl1 = Feature{ |
| 899 | | .name = "tpidrEl1", |
| 900 | | .llvm_name = "tpidr-el1", |
| 901 | | .description = "Permit use of TPIDR_EL1 for the TLS base", |
| 902 | | .dependencies = &[_]*const Feature { |
| 903 | | }, |
| 904 | | }; |
| 905 | | |
| 906 | | pub const feature_tpidrEl2 = Feature{ |
| 907 | | .name = "tpidrEl2", |
| 908 | | .llvm_name = "tpidr-el2", |
| 909 | | .description = "Permit use of TPIDR_EL2 for the TLS base", |
| 910 | | .dependencies = &[_]*const Feature { |
| 911 | | }, |
| 912 | | }; |
| 913 | | |
| 914 | | pub const feature_tpidrEl3 = Feature{ |
| 915 | | .name = "tpidrEl3", |
| 916 | | .llvm_name = "tpidr-el3", |
| 917 | | .description = "Permit use of TPIDR_EL3 for the TLS base", |
| 918 | | .dependencies = &[_]*const Feature { |
| 919 | | }, |
| 920 | | }; |
| 921 | | |
| 922 | | pub const feature_useReciprocalSquareRoot = Feature{ |
| 923 | | .name = "useReciprocalSquareRoot", |
| 924 | | .llvm_name = "use-reciprocal-square-root", |
| 925 | | .description = "Use the reciprocal square root approximation", |
| 926 | | .dependencies = &[_]*const Feature { |
| 927 | | }, |
| 928 | | }; |
| 929 | | |
| 930 | | pub const feature_vh = Feature{ |
| 931 | | .name = "vh", |
| 932 | | .llvm_name = "vh", |
| 933 | | .description = "Enables ARM v8.1 Virtual Host extension", |
| 934 | | .dependencies = &[_]*const Feature { |
| 935 | | }, |
| 936 | | }; |
| 937 | | |
| 938 | | pub const feature_zcm = Feature{ |
| 939 | | .name = "zcm", |
| 940 | | .llvm_name = "zcm", |
| 941 | | .description = "Has zero-cycle register moves", |
| 942 | | .dependencies = &[_]*const Feature { |
| 943 | | }, |
| 944 | | }; |
| 945 | | |
| 946 | | pub const feature_zcz = Feature{ |
| 947 | | .name = "zcz", |
| 948 | | .llvm_name = "zcz", |
| 949 | | .description = "Has zero-cycle zeroing instructions", |
| 950 | | .dependencies = &[_]*const Feature { |
| 951 | | &feature_zczFp, |
| 952 | | &feature_zczGp, |
| 953 | | }, |
| 954 | | }; |
| 955 | | |
| 956 | | pub const feature_zczFp = Feature{ |
| 957 | | .name = "zczFp", |
| 958 | | .llvm_name = "zcz-fp", |
| 959 | | .description = "Has zero-cycle zeroing instructions for FP registers", |
| 960 | | .dependencies = &[_]*const Feature { |
| 961 | | }, |
| 962 | | }; |
| 963 | | |
| 964 | | pub const feature_zczFpWorkaround = Feature{ |
| 965 | | .name = "zczFpWorkaround", |
| 966 | | .llvm_name = "zcz-fp-workaround", |
| 967 | | .description = "The zero-cycle floating-point zeroing instruction has a bug", |
| 968 | | .dependencies = &[_]*const Feature { |
| 969 | | }, |
| 970 | | }; |
| 971 | | |
| 972 | | pub const feature_zczGp = Feature{ |
| 973 | | .name = "zczGp", |
| 974 | | .llvm_name = "zcz-gp", |
| 975 | | .description = "Has zero-cycle zeroing instructions for generic registers", |
| 976 | | .dependencies = &[_]*const Feature { |
| 977 | | }, |
| 978 | | }; |
| 979 | | |
| 980 | | pub const features = &[_]*const Feature { |
| 981 | | &feature_aes, |
| 982 | | &feature_am, |
| 983 | | &feature_aggressiveFma, |
| 984 | | &feature_altnzcv, |
| 985 | | &feature_alternateSextloadCvtF32Pattern, |
| 986 | | &feature_arithBccFusion, |
| 987 | | &feature_arithCbzFusion, |
| 988 | | &feature_balanceFpOps, |
| 989 | | &feature_bti, |
| 990 | | &feature_ccidx, |
| 991 | | &feature_ccpp, |
| 992 | | &feature_crc, |
| 993 | | &feature_ccdp, |
| 994 | | &feature_callSavedX8, |
| 995 | | &feature_callSavedX9, |
| 996 | | &feature_callSavedX10, |
| 997 | | &feature_callSavedX11, |
| 998 | | &feature_callSavedX12, |
| 999 | | &feature_callSavedX13, |
| 1000 | | &feature_callSavedX14, |
| 1001 | | &feature_callSavedX15, |
| 1002 | | &feature_callSavedX18, |
| 1003 | | &feature_complxnum, |
| 1004 | | &feature_crypto, |
| 1005 | | &feature_customCheapAsMove, |
| 1006 | | &feature_dit, |
| 1007 | | &feature_disableLatencySchedHeuristic, |
| 1008 | | &feature_dotprod, |
| 1009 | | &feature_exynosCheapAsMove, |
| 1010 | | &feature_fmi, |
| 1011 | | &feature_fp16fml, |
| 1012 | | &feature_fpArmv8, |
| 1013 | | &feature_fptoint, |
| 1014 | | &feature_force32bitJumpTables, |
| 1015 | | &feature_fullfp16, |
| 1016 | | &feature_fuseAes, |
| 1017 | | &feature_fuseAddress, |
| 1018 | | &feature_fuseArithLogic, |
| 1019 | | &feature_fuseCsel, |
| 1020 | | &feature_fuseCryptoEor, |
| 1021 | | &feature_fuseLiterals, |
| 1022 | | &feature_jsconv, |
| 1023 | | &feature_lor, |
| 1024 | | &feature_lse, |
| 1025 | | &feature_lslFast, |
| 1026 | | &feature_mpam, |
| 1027 | | &feature_mte, |
| 1028 | | &feature_neon, |
| 1029 | | &feature_nv, |
| 1030 | | &feature_noNegImmediates, |
| 1031 | | &feature_pa, |
| 1032 | | &feature_pan, |
| 1033 | | &feature_panRwv, |
| 1034 | | &feature_perfmon, |
| 1035 | | &feature_usePostraScheduler, |
| 1036 | | &feature_predres, |
| 1037 | | &feature_predictableSelectExpensive, |
| 1038 | | &feature_uaops, |
| 1039 | | &feature_ras, |
| 1040 | | &feature_rasv8_4, |
| 1041 | | &feature_rcpc, |
| 1042 | | &feature_rcpcImmo, |
| 1043 | | &feature_rdm, |
| 1044 | | &feature_rand, |
| 1045 | | &feature_reserveX1, |
| 1046 | | &feature_reserveX2, |
| 1047 | | &feature_reserveX3, |
| 1048 | | &feature_reserveX4, |
| 1049 | | &feature_reserveX5, |
| 1050 | | &feature_reserveX6, |
| 1051 | | &feature_reserveX7, |
| 1052 | | &feature_reserveX9, |
| 1053 | | &feature_reserveX10, |
| 1054 | | &feature_reserveX11, |
| 1055 | | &feature_reserveX12, |
| 1056 | | &feature_reserveX13, |
| 1057 | | &feature_reserveX14, |
| 1058 | | &feature_reserveX15, |
| 1059 | | &feature_reserveX18, |
| 1060 | | &feature_reserveX20, |
| 1061 | | &feature_reserveX21, |
| 1062 | | &feature_reserveX22, |
| 1063 | | &feature_reserveX23, |
| 1064 | | &feature_reserveX24, |
| 1065 | | &feature_reserveX25, |
| 1066 | | &feature_reserveX26, |
| 1067 | | &feature_reserveX27, |
| 1068 | | &feature_reserveX28, |
| 1069 | | &feature_sb, |
| 1070 | | &feature_sel2, |
| 1071 | | &feature_sha2, |
| 1072 | | &feature_sha3, |
| 1073 | | &feature_sm4, |
| 1074 | | &feature_spe, |
| 1075 | | &feature_ssbs, |
| 1076 | | &feature_sve, |
| 1077 | | &feature_sve2, |
| 1078 | | &feature_sve2Aes, |
| 1079 | | &feature_sve2Bitperm, |
| 1080 | | &feature_sve2Sha3, |
| 1081 | | &feature_sve2Sm4, |
| 1082 | | &feature_slowMisaligned128store, |
| 1083 | | &feature_slowPaired128, |
| 1084 | | &feature_slowStrqroStore, |
| 1085 | | &feature_specrestrict, |
| 1086 | | &feature_strictAlign, |
| 1087 | | &feature_tlbRmi, |
| 1088 | | &feature_tracev84, |
| 1089 | | &feature_useAa, |
| 1090 | | &feature_tpidrEl1, |
| 1091 | | &feature_tpidrEl2, |
| 1092 | | &feature_tpidrEl3, |
| 1093 | | &feature_useReciprocalSquareRoot, |
| 1094 | | &feature_vh, |
| 1095 | | &feature_zcm, |
| 1096 | | &feature_zcz, |
| 1097 | | &feature_zczFp, |
| 1098 | | &feature_zczFpWorkaround, |
| 1099 | | &feature_zczGp, |
| 1100 | | }; |
| 1101 | | |
| 1102 | | pub const cpu_appleLatest = Cpu{ |
| 1103 | | .name = "appleLatest", |
| 1104 | | .llvm_name = "apple-latest", |
| 1105 | | .dependencies = &[_]*const Feature { |
| 1106 | | &feature_arithCbzFusion, |
| 1107 | | &feature_zczFpWorkaround, |
| 1108 | | &feature_alternateSextloadCvtF32Pattern, |
| 1109 | | &feature_fuseCryptoEor, |
| 1110 | | &feature_zcm, |
| 1111 | | &feature_zczGp, |
| 1112 | | &feature_perfmon, |
| 1113 | | &feature_disableLatencySchedHeuristic, |
| 1114 | | &feature_fpArmv8, |
| 1115 | | &feature_zczFp, |
| 1116 | | &feature_arithBccFusion, |
| 1117 | | &feature_fuseAes, |
| 1118 | | }, |
| 1119 | | }; |
| 1120 | | |
| 1121 | | pub const cpu_cortexA35 = Cpu{ |
| 1122 | | .name = "cortexA35", |
| 1123 | | .llvm_name = "cortex-a35", |
| 1124 | | .dependencies = &[_]*const Feature { |
| 1125 | | &feature_perfmon, |
| 1126 | | &feature_fpArmv8, |
| 1127 | | &feature_crc, |
| 1128 | | }, |
| 1129 | | }; |
| 1130 | | |
| 1131 | | pub const cpu_cortexA53 = Cpu{ |
| 1132 | | .name = "cortexA53", |
| 1133 | | .llvm_name = "cortex-a53", |
| 1134 | | .dependencies = &[_]*const Feature { |
| 1135 | | &feature_customCheapAsMove, |
| 1136 | | &feature_crc, |
| 1137 | | &feature_perfmon, |
| 1138 | | &feature_useAa, |
| 1139 | | &feature_fpArmv8, |
| 1140 | | &feature_fuseAes, |
| 1141 | | &feature_balanceFpOps, |
| 1142 | | &feature_usePostraScheduler, |
| 1143 | | }, |
| 1144 | | }; |
| 1145 | | |
| 1146 | | pub const cpu_cortexA55 = Cpu{ |
| 1147 | | .name = "cortexA55", |
| 1148 | | .llvm_name = "cortex-a55", |
| 1149 | | .dependencies = &[_]*const Feature { |
| 1150 | | &feature_ccpp, |
| 1151 | | &feature_rcpc, |
| 1152 | | &feature_uaops, |
| 1153 | | &feature_rdm, |
| 1154 | | &feature_ras, |
| 1155 | | &feature_lse, |
| 1156 | | &feature_crc, |
| 1157 | | &feature_perfmon, |
| 1158 | | &feature_fpArmv8, |
| 1159 | | &feature_vh, |
| 1160 | | &feature_fuseAes, |
| 1161 | | &feature_lor, |
| 1162 | | &feature_dotprod, |
| 1163 | | &feature_pan, |
| 1164 | | }, |
| 1165 | | }; |
| 1166 | | |
| 1167 | | pub const cpu_cortexA57 = Cpu{ |
| 1168 | | .name = "cortexA57", |
| 1169 | | .llvm_name = "cortex-a57", |
| 1170 | | .dependencies = &[_]*const Feature { |
| 1171 | | &feature_fuseLiterals, |
| 1172 | | &feature_predictableSelectExpensive, |
| 1173 | | &feature_customCheapAsMove, |
| 1174 | | &feature_crc, |
| 1175 | | &feature_perfmon, |
| 1176 | | &feature_fpArmv8, |
| 1177 | | &feature_fuseAes, |
| 1178 | | &feature_balanceFpOps, |
| 1179 | | &feature_usePostraScheduler, |
| 1180 | | }, |
| 1181 | | }; |
| 1182 | | |
| 1183 | | pub const cpu_cortexA72 = Cpu{ |
| 1184 | | .name = "cortexA72", |
| 1185 | | .llvm_name = "cortex-a72", |
| 1186 | | .dependencies = &[_]*const Feature { |
| 1187 | | &feature_fuseAes, |
| 1188 | | &feature_fpArmv8, |
| 1189 | | &feature_perfmon, |
| 1190 | | &feature_crc, |
| 1191 | | }, |
| 1192 | | }; |
| 1193 | | |
| 1194 | | pub const cpu_cortexA73 = Cpu{ |
| 1195 | | .name = "cortexA73", |
| 1196 | | .llvm_name = "cortex-a73", |
| 1197 | | .dependencies = &[_]*const Feature { |
| 1198 | | &feature_fuseAes, |
| 1199 | | &feature_fpArmv8, |
| 1200 | | &feature_perfmon, |
| 1201 | | &feature_crc, |
| 1202 | | }, |
| 1203 | | }; |
| 1204 | | |
| 1205 | | pub const cpu_cortexA75 = Cpu{ |
| 1206 | | .name = "cortexA75", |
| 1207 | | .llvm_name = "cortex-a75", |
| 1208 | | .dependencies = &[_]*const Feature { |
| 1209 | | &feature_ccpp, |
| 1210 | | &feature_rcpc, |
| 1211 | | &feature_uaops, |
| 1212 | | &feature_rdm, |
| 1213 | | &feature_ras, |
| 1214 | | &feature_lse, |
| 1215 | | &feature_crc, |
| 1216 | | &feature_perfmon, |
| 1217 | | &feature_fpArmv8, |
| 1218 | | &feature_vh, |
| 1219 | | &feature_fuseAes, |
| 1220 | | &feature_lor, |
| 1221 | | &feature_dotprod, |
| 1222 | | &feature_pan, |
| 1223 | | }, |
| 1224 | | }; |
| 1225 | | |
| 1226 | | pub const cpu_cortexA76 = Cpu{ |
| 1227 | | .name = "cortexA76", |
| 1228 | | .llvm_name = "cortex-a76", |
| 1229 | | .dependencies = &[_]*const Feature { |
| 1230 | | &feature_ccpp, |
| 1231 | | &feature_rcpc, |
| 1232 | | &feature_uaops, |
| 1233 | | &feature_rdm, |
| 1234 | | &feature_ras, |
| 1235 | | &feature_lse, |
| 1236 | | &feature_crc, |
| 1237 | | &feature_fpArmv8, |
| 1238 | | &feature_vh, |
| 1239 | | &feature_lor, |
| 1240 | | &feature_ssbs, |
| 1241 | | &feature_dotprod, |
| 1242 | | &feature_pan, |
| 1243 | | }, |
| 1244 | | }; |
| 1245 | | |
| 1246 | | pub const cpu_cortexA76ae = Cpu{ |
| 1247 | | .name = "cortexA76ae", |
| 1248 | | .llvm_name = "cortex-a76ae", |
| 1249 | | .dependencies = &[_]*const Feature { |
| 1250 | | &feature_ccpp, |
| 1251 | | &feature_rcpc, |
| 1252 | | &feature_uaops, |
| 1253 | | &feature_rdm, |
| 1254 | | &feature_ras, |
| 1255 | | &feature_lse, |
| 1256 | | &feature_crc, |
| 1257 | | &feature_fpArmv8, |
| 1258 | | &feature_vh, |
| 1259 | | &feature_lor, |
| 1260 | | &feature_ssbs, |
| 1261 | | &feature_dotprod, |
| 1262 | | &feature_pan, |
| 1263 | | }, |
| 1264 | | }; |
| 1265 | | |
| 1266 | | pub const cpu_cyclone = Cpu{ |
| 1267 | | .name = "cyclone", |
| 1268 | | .llvm_name = "cyclone", |
| 1269 | | .dependencies = &[_]*const Feature { |
| 1270 | | &feature_arithCbzFusion, |
| 1271 | | &feature_zczFpWorkaround, |
| 1272 | | &feature_alternateSextloadCvtF32Pattern, |
| 1273 | | &feature_fuseCryptoEor, |
| 1274 | | &feature_zcm, |
| 1275 | | &feature_zczGp, |
| 1276 | | &feature_perfmon, |
| 1277 | | &feature_disableLatencySchedHeuristic, |
| 1278 | | &feature_fpArmv8, |
| 1279 | | &feature_zczFp, |
| 1280 | | &feature_arithBccFusion, |
| 1281 | | &feature_fuseAes, |
| 1282 | | }, |
| 1283 | | }; |
| 1284 | | |
| 1285 | | pub const cpu_exynosM1 = Cpu{ |
| 1286 | | .name = "exynosM1", |
| 1287 | | .llvm_name = "exynos-m1", |
| 1288 | | .dependencies = &[_]*const Feature { |
| 1289 | | &feature_customCheapAsMove, |
| 1290 | | &feature_crc, |
| 1291 | | &feature_force32bitJumpTables, |
| 1292 | | &feature_perfmon, |
| 1293 | | &feature_slowMisaligned128store, |
| 1294 | | &feature_useReciprocalSquareRoot, |
| 1295 | | &feature_fpArmv8, |
| 1296 | | &feature_zczFp, |
| 1297 | | &feature_fuseAes, |
| 1298 | | &feature_slowPaired128, |
| 1299 | | &feature_usePostraScheduler, |
| 1300 | | }, |
| 1301 | | }; |
| 1302 | | |
| 1303 | | pub const cpu_exynosM2 = Cpu{ |
| 1304 | | .name = "exynosM2", |
| 1305 | | .llvm_name = "exynos-m2", |
| 1306 | | .dependencies = &[_]*const Feature { |
| 1307 | | &feature_customCheapAsMove, |
| 1308 | | &feature_crc, |
| 1309 | | &feature_force32bitJumpTables, |
| 1310 | | &feature_perfmon, |
| 1311 | | &feature_slowMisaligned128store, |
| 1312 | | &feature_fpArmv8, |
| 1313 | | &feature_zczFp, |
| 1314 | | &feature_fuseAes, |
| 1315 | | &feature_slowPaired128, |
| 1316 | | &feature_usePostraScheduler, |
| 1317 | | }, |
| 1318 | | }; |
| 1319 | | |
| 1320 | | pub const cpu_exynosM3 = Cpu{ |
| 1321 | | .name = "exynosM3", |
| 1322 | | .llvm_name = "exynos-m3", |
| 1323 | | .dependencies = &[_]*const Feature { |
| 1324 | | &feature_fuseLiterals, |
| 1325 | | &feature_predictableSelectExpensive, |
| 1326 | | &feature_customCheapAsMove, |
| 1327 | | &feature_crc, |
| 1328 | | &feature_force32bitJumpTables, |
| 1329 | | &feature_fuseAddress, |
| 1330 | | &feature_fuseCsel, |
| 1331 | | &feature_perfmon, |
| 1332 | | &feature_fpArmv8, |
| 1333 | | &feature_zczFp, |
| 1334 | | &feature_fuseAes, |
| 1335 | | &feature_lslFast, |
| 1336 | | &feature_usePostraScheduler, |
| 1337 | | }, |
| 1338 | | }; |
| 1339 | | |
| 1340 | | pub const cpu_exynosM4 = Cpu{ |
| 1341 | | .name = "exynosM4", |
| 1342 | | .llvm_name = "exynos-m4", |
| 1343 | | .dependencies = &[_]*const Feature { |
| 1344 | | &feature_arithCbzFusion, |
| 1345 | | &feature_customCheapAsMove, |
| 1346 | | &feature_lse, |
| 1347 | | &feature_zczFp, |
| 1348 | | &feature_lslFast, |
| 1349 | | &feature_lor, |
| 1350 | | &feature_fuseLiterals, |
| 1351 | | &feature_ccpp, |
| 1352 | | &feature_ras, |
| 1353 | | &feature_fpArmv8, |
| 1354 | | &feature_fuseAes, |
| 1355 | | &feature_pan, |
| 1356 | | &feature_fuseArithLogic, |
| 1357 | | &feature_crc, |
| 1358 | | &feature_force32bitJumpTables, |
| 1359 | | &feature_fuseAddress, |
| 1360 | | &feature_fuseCsel, |
| 1361 | | &feature_arithBccFusion, |
| 1362 | | &feature_uaops, |
| 1363 | | &feature_rdm, |
| 1364 | | &feature_zczGp, |
| 1365 | | &feature_perfmon, |
| 1366 | | &feature_vh, |
| 1367 | | &feature_usePostraScheduler, |
| 1368 | | &feature_dotprod, |
| 1369 | | }, |
| 1370 | | }; |
| 1371 | | |
| 1372 | | pub const cpu_exynosM5 = Cpu{ |
| 1373 | | .name = "exynosM5", |
| 1374 | | .llvm_name = "exynos-m5", |
| 1375 | | .dependencies = &[_]*const Feature { |
| 1376 | | &feature_arithCbzFusion, |
| 1377 | | &feature_customCheapAsMove, |
| 1378 | | &feature_lse, |
| 1379 | | &feature_zczFp, |
| 1380 | | &feature_lslFast, |
| 1381 | | &feature_lor, |
| 1382 | | &feature_fuseLiterals, |
| 1383 | | &feature_ccpp, |
| 1384 | | &feature_ras, |
| 1385 | | &feature_fpArmv8, |
| 1386 | | &feature_fuseAes, |
| 1387 | | &feature_pan, |
| 1388 | | &feature_fuseArithLogic, |
| 1389 | | &feature_crc, |
| 1390 | | &feature_force32bitJumpTables, |
| 1391 | | &feature_fuseAddress, |
| 1392 | | &feature_fuseCsel, |
| 1393 | | &feature_arithBccFusion, |
| 1394 | | &feature_uaops, |
| 1395 | | &feature_rdm, |
| 1396 | | &feature_zczGp, |
| 1397 | | &feature_perfmon, |
| 1398 | | &feature_vh, |
| 1399 | | &feature_usePostraScheduler, |
| 1400 | | &feature_dotprod, |
| 1401 | | }, |
| 1402 | | }; |
| 1403 | | |
| 1404 | | pub const cpu_falkor = Cpu{ |
| 1405 | | .name = "falkor", |
| 1406 | | .llvm_name = "falkor", |
| 1407 | | .dependencies = &[_]*const Feature { |
| 1408 | | &feature_predictableSelectExpensive, |
| 1409 | | &feature_customCheapAsMove, |
| 1410 | | &feature_rdm, |
| 1411 | | &feature_slowStrqroStore, |
| 1412 | | &feature_zczGp, |
| 1413 | | &feature_crc, |
| 1414 | | &feature_perfmon, |
| 1415 | | &feature_fpArmv8, |
| 1416 | | &feature_zczFp, |
| 1417 | | &feature_lslFast, |
| 1418 | | &feature_usePostraScheduler, |
| 1419 | | }, |
| 1420 | | }; |
| 1421 | | |
| 1422 | | pub const cpu_generic = Cpu{ |
| 1423 | | .name = "generic", |
| 1424 | | .llvm_name = "generic", |
| 1425 | | .dependencies = &[_]*const Feature { |
| 1426 | | &feature_fpArmv8, |
| 1427 | | &feature_fuseAes, |
| 1428 | | &feature_neon, |
| 1429 | | &feature_perfmon, |
| 1430 | | &feature_usePostraScheduler, |
| 1431 | | }, |
| 1432 | | }; |
| 1433 | | |
| 1434 | | pub const cpu_kryo = Cpu{ |
| 1435 | | .name = "kryo", |
| 1436 | | .llvm_name = "kryo", |
| 1437 | | .dependencies = &[_]*const Feature { |
| 1438 | | &feature_predictableSelectExpensive, |
| 1439 | | &feature_customCheapAsMove, |
| 1440 | | &feature_zczGp, |
| 1441 | | &feature_crc, |
| 1442 | | &feature_perfmon, |
| 1443 | | &feature_fpArmv8, |
| 1444 | | &feature_zczFp, |
| 1445 | | &feature_lslFast, |
| 1446 | | &feature_usePostraScheduler, |
| 1447 | | }, |
| 1448 | | }; |
| 1449 | | |
| 1450 | | pub const cpu_saphira = Cpu{ |
| 1451 | | .name = "saphira", |
| 1452 | | .llvm_name = "saphira", |
| 1453 | | .dependencies = &[_]*const Feature { |
| 1454 | | &feature_predictableSelectExpensive, |
| 1455 | | &feature_customCheapAsMove, |
| 1456 | | &feature_fmi, |
| 1457 | | &feature_lse, |
| 1458 | | &feature_zczFp, |
| 1459 | | &feature_lslFast, |
| 1460 | | &feature_lor, |
| 1461 | | &feature_dit, |
| 1462 | | &feature_pa, |
| 1463 | | &feature_ccpp, |
| 1464 | | &feature_sel2, |
| 1465 | | &feature_ras, |
| 1466 | | &feature_fpArmv8, |
| 1467 | | &feature_ccidx, |
| 1468 | | &feature_pan, |
| 1469 | | &feature_rcpc, |
| 1470 | | &feature_crc, |
| 1471 | | &feature_tracev84, |
| 1472 | | &feature_mpam, |
| 1473 | | &feature_am, |
| 1474 | | &feature_nv, |
| 1475 | | &feature_tlbRmi, |
| 1476 | | &feature_uaops, |
| 1477 | | &feature_rdm, |
| 1478 | | &feature_zczGp, |
| 1479 | | &feature_perfmon, |
| 1480 | | &feature_vh, |
| 1481 | | &feature_usePostraScheduler, |
| 1482 | | &feature_dotprod, |
| 1483 | | &feature_spe, |
| 1484 | | }, |
| 1485 | | }; |
| 1486 | | |
| 1487 | | pub const cpu_thunderx = Cpu{ |
| 1488 | | .name = "thunderx", |
| 1489 | | .llvm_name = "thunderx", |
| 1490 | | .dependencies = &[_]*const Feature { |
| 1491 | | &feature_predictableSelectExpensive, |
| 1492 | | &feature_crc, |
| 1493 | | &feature_perfmon, |
| 1494 | | &feature_fpArmv8, |
| 1495 | | &feature_usePostraScheduler, |
| 1496 | | }, |
| 1497 | | }; |
| 1498 | | |
| 1499 | | pub const cpu_thunderx2t99 = Cpu{ |
| 1500 | | .name = "thunderx2t99", |
| 1501 | | .llvm_name = "thunderx2t99", |
| 1502 | | .dependencies = &[_]*const Feature { |
| 1503 | | &feature_predictableSelectExpensive, |
| 1504 | | &feature_aggressiveFma, |
| 1505 | | &feature_rdm, |
| 1506 | | &feature_lse, |
| 1507 | | &feature_crc, |
| 1508 | | &feature_fpArmv8, |
| 1509 | | &feature_vh, |
| 1510 | | &feature_arithBccFusion, |
| 1511 | | &feature_lor, |
| 1512 | | &feature_usePostraScheduler, |
| 1513 | | &feature_pan, |
| 1514 | | }, |
| 1515 | | }; |
| 1516 | | |
| 1517 | | pub const cpu_thunderxt81 = Cpu{ |
| 1518 | | .name = "thunderxt81", |
| 1519 | | .llvm_name = "thunderxt81", |
| 1520 | | .dependencies = &[_]*const Feature { |
| 1521 | | &feature_predictableSelectExpensive, |
| 1522 | | &feature_crc, |
| 1523 | | &feature_perfmon, |
| 1524 | | &feature_fpArmv8, |
| 1525 | | &feature_usePostraScheduler, |
| 1526 | | }, |
| 1527 | | }; |
| 1528 | | |
| 1529 | | pub const cpu_thunderxt83 = Cpu{ |
| 1530 | | .name = "thunderxt83", |
| 1531 | | .llvm_name = "thunderxt83", |
| 1532 | | .dependencies = &[_]*const Feature { |
| 1533 | | &feature_predictableSelectExpensive, |
| 1534 | | &feature_crc, |
| 1535 | | &feature_perfmon, |
| 1536 | | &feature_fpArmv8, |
| 1537 | | &feature_usePostraScheduler, |
| 1538 | | }, |
| 1539 | | }; |
| 1540 | | |
| 1541 | | pub const cpu_thunderxt88 = Cpu{ |
| 1542 | | .name = "thunderxt88", |
| 1543 | | .llvm_name = "thunderxt88", |
| 1544 | | .dependencies = &[_]*const Feature { |
| 1545 | | &feature_predictableSelectExpensive, |
| 1546 | | &feature_crc, |
| 1547 | | &feature_perfmon, |
| 1548 | | &feature_fpArmv8, |
| 1549 | | &feature_usePostraScheduler, |
| 1550 | | }, |
| 1551 | | }; |
| 1552 | | |
| 1553 | | pub const cpu_tsv110 = Cpu{ |
| 1554 | | .name = "tsv110", |
| 1555 | | .llvm_name = "tsv110", |
| 1556 | | .dependencies = &[_]*const Feature { |
| 1557 | | &feature_ccpp, |
| 1558 | | &feature_customCheapAsMove, |
| 1559 | | &feature_uaops, |
| 1560 | | &feature_rdm, |
| 1561 | | &feature_ras, |
| 1562 | | &feature_lse, |
| 1563 | | &feature_crc, |
| 1564 | | &feature_perfmon, |
| 1565 | | &feature_fpArmv8, |
| 1566 | | &feature_vh, |
| 1567 | | &feature_fuseAes, |
| 1568 | | &feature_lor, |
| 1569 | | &feature_usePostraScheduler, |
| 1570 | | &feature_dotprod, |
| 1571 | | &feature_pan, |
| 1572 | | &feature_spe, |
| 1573 | | }, |
| 1574 | | }; |
| 1575 | | |
| 1576 | | pub const cpus = &[_]*const Cpu { |
| 1577 | | &cpu_appleLatest, |
| 1578 | | &cpu_cortexA35, |
| 1579 | | &cpu_cortexA53, |
| 1580 | | &cpu_cortexA55, |
| 1581 | | &cpu_cortexA57, |
| 1582 | | &cpu_cortexA72, |
| 1583 | | &cpu_cortexA73, |
| 1584 | | &cpu_cortexA75, |
| 1585 | | &cpu_cortexA76, |
| 1586 | | &cpu_cortexA76ae, |
| 1587 | | &cpu_cyclone, |
| 1588 | | &cpu_exynosM1, |
| 1589 | | &cpu_exynosM2, |
| 1590 | | &cpu_exynosM3, |
| 1591 | | &cpu_exynosM4, |
| 1592 | | &cpu_exynosM5, |
| 1593 | | &cpu_falkor, |
| 1594 | | &cpu_generic, |
| 1595 | | &cpu_kryo, |
| 1596 | | &cpu_saphira, |
| 1597 | | &cpu_thunderx, |
| 1598 | | &cpu_thunderx2t99, |
| 1599 | | &cpu_thunderxt81, |
| 1600 | | &cpu_thunderxt83, |
| 1601 | | &cpu_thunderxt88, |
| 1602 | | &cpu_tsv110, |
| 1 | const std = @import("../std.zig"); |
| 2 | const Cpu = std.Target.Cpu; |
| 3 | |
| 4 | pub const Feature = enum { |
| 5 | aes, |
| 6 | am, |
| 7 | aggressive_fma, |
| 8 | altnzcv, |
| 9 | alternate_sextload_cvt_f32_pattern, |
| 10 | arith_bcc_fusion, |
| 11 | arith_cbz_fusion, |
| 12 | balance_fp_ops, |
| 13 | bti, |
| 14 | ccidx, |
| 15 | ccpp, |
| 16 | crc, |
| 17 | ccdp, |
| 18 | call_saved_x8, |
| 19 | call_saved_x9, |
| 20 | call_saved_x10, |
| 21 | call_saved_x11, |
| 22 | call_saved_x12, |
| 23 | call_saved_x13, |
| 24 | call_saved_x14, |
| 25 | call_saved_x15, |
| 26 | call_saved_x18, |
| 27 | complxnum, |
| 28 | crypto, |
| 29 | custom_cheap_as_move, |
| 30 | dit, |
| 31 | disable_latency_sched_heuristic, |
| 32 | dotprod, |
| 33 | exynos_cheap_as_move, |
| 34 | fmi, |
| 35 | fp16fml, |
| 36 | fp_armv8, |
| 37 | fptoint, |
| 38 | force_32bit_jump_tables, |
| 39 | fullfp16, |
| 40 | fuse_aes, |
| 41 | fuse_address, |
| 42 | fuse_arith_logic, |
| 43 | fuse_csel, |
| 44 | fuse_crypto_eor, |
| 45 | fuse_literals, |
| 46 | jsconv, |
| 47 | lor, |
| 48 | lse, |
| 49 | lsl_fast, |
| 50 | mpam, |
| 51 | mte, |
| 52 | neon, |
| 53 | nv, |
| 54 | no_neg_immediates, |
| 55 | pa, |
| 56 | pan, |
| 57 | pan_rwv, |
| 58 | perfmon, |
| 59 | use_postra_scheduler, |
| 60 | predres, |
| 61 | predictable_select_expensive, |
| 62 | uaops, |
| 63 | ras, |
| 64 | rasv8_4, |
| 65 | rcpc, |
| 66 | rcpc_immo, |
| 67 | rdm, |
| 68 | rand, |
| 69 | reserve_x1, |
| 70 | reserve_x2, |
| 71 | reserve_x3, |
| 72 | reserve_x4, |
| 73 | reserve_x5, |
| 74 | reserve_x6, |
| 75 | reserve_x7, |
| 76 | reserve_x9, |
| 77 | reserve_x10, |
| 78 | reserve_x11, |
| 79 | reserve_x12, |
| 80 | reserve_x13, |
| 81 | reserve_x14, |
| 82 | reserve_x15, |
| 83 | reserve_x18, |
| 84 | reserve_x20, |
| 85 | reserve_x21, |
| 86 | reserve_x22, |
| 87 | reserve_x23, |
| 88 | reserve_x24, |
| 89 | reserve_x25, |
| 90 | reserve_x26, |
| 91 | reserve_x27, |
| 92 | reserve_x28, |
| 93 | sb, |
| 94 | sel2, |
| 95 | sha2, |
| 96 | sha3, |
| 97 | sm4, |
| 98 | spe, |
| 99 | ssbs, |
| 100 | sve, |
| 101 | sve2, |
| 102 | sve2_aes, |
| 103 | sve2_bitperm, |
| 104 | sve2_sha3, |
| 105 | sve2_sm4, |
| 106 | slow_misaligned_128store, |
| 107 | slow_paired_128, |
| 108 | slow_strqro_store, |
| 109 | specrestrict, |
| 110 | strict_align, |
| 111 | tlb_rmi, |
| 112 | tracev84, |
| 113 | use_aa, |
| 114 | tpidr_el1, |
| 115 | tpidr_el2, |
| 116 | tpidr_el3, |
| 117 | use_reciprocal_square_root, |
| 118 | vh, |
| 119 | zcm, |
| 120 | zcz, |
| 121 | zcz_fp, |
| 122 | zcz_fp_workaround, |
| 123 | zcz_gp, |
| 124 | }; |
| 125 | |
| 126 | pub fn featureSet(features: []const Feature) Cpu.Feature.Set { |
| 127 | var x: Cpu.Feature.Set = 0; |
| 128 | for (features) |feature| { |
| 129 | x |= 1 << @enumToInt(feature); |
| 130 | } |
| 131 | return x; |
| 132 | } |
| 133 | |
| 134 | pub fn featureSetHas(set: Feature.Set, feature: Feature) bool { |
| 135 | return (set & (1 << @enumToInt(feature))) != 0; |
| 136 | } |
| 137 | |
| 138 | pub const all_features = blk: { |
| 139 | const len = @typeInfo(Feature).Enum.fields.len; |
| 140 | std.debug.assert(len <= @typeInfo(Feature.Set).Int.bits); |
| 141 | var result: [len]Cpu.Feature = undefined; |
| 142 | result[@enumToInt(Feature.aes)] = .{ |
| 143 | .index = @enumToInt(Feature.aes), |
| 144 | .name = @tagName(Feature.aes), |
| 145 | .llvm_name = "aes", |
| 146 | .description = "Enable AES support", |
| 147 | .dependencies = featureSet(&[_]Feature{ |
| 148 | .fp_armv8, |
| 149 | }), |
| 150 | }; |
| 151 | result[@enumToInt(Feature.am)] = .{ |
| 152 | .index = @enumToInt(Feature.am), |
| 153 | .name = @tagName(Feature.am), |
| 154 | .llvm_name = "am", |
| 155 | .description = "Enable v8.4-A Activity Monitors extension", |
| 156 | .dependencies = 0, |
| 157 | }; |
| 158 | result[@enumToInt(Feature.aggressive_fma)] = .{ |
| 159 | .index = @enumToInt(Feature.aggressive_fma), |
| 160 | .name = @tagName(Feature.aggressive_fma), |
| 161 | .llvm_name = "aggressive-fma", |
| 162 | .description = "Enable Aggressive FMA for floating-point.", |
| 163 | .dependencies = 0, |
| 164 | }; |
| 165 | result[@enumToInt(Feature.altnzcv)] = .{ |
| 166 | .index = @enumToInt(Feature.altnzcv), |
| 167 | .name = @tagName(Feature.altnzcv), |
| 168 | .llvm_name = "altnzcv", |
| 169 | .description = "Enable alternative NZCV format for floating point comparisons", |
| 170 | .dependencies = 0, |
| 171 | }; |
| 172 | result[@enumToInt(Feature.alternate_sextload_cvt_f32_pattern)] = .{ |
| 173 | .index = @enumToInt(Feature.alternate_sextload_cvt_f32_pattern), |
| 174 | .name = @tagName(Feature.alternate_sextload_cvt_f32_pattern), |
| 175 | .llvm_name = "alternate-sextload-cvt-f32-pattern", |
| 176 | .description = "Use alternative pattern for sextload convert to f32", |
| 177 | .dependencies = 0, |
| 178 | }; |
| 179 | result[@enumToInt(Feature.arith_bcc_fusion)] = .{ |
| 180 | .index = @enumToInt(Feature.arith_bcc_fusion), |
| 181 | .name = @tagName(Feature.arith_bcc_fusion), |
| 182 | .llvm_name = "arith-bcc-fusion", |
| 183 | .description = "CPU fuses arithmetic+bcc operations", |
| 184 | .dependencies = 0, |
| 185 | }; |
| 186 | result[@enumToInt(Feature.arith_cbz_fusion)] = .{ |
| 187 | .index = @enumToInt(Feature.arith_cbz_fusion), |
| 188 | .name = @tagName(Feature.arith_cbz_fusion), |
| 189 | .llvm_name = "arith-cbz-fusion", |
| 190 | .description = "CPU fuses arithmetic + cbz/cbnz operations", |
| 191 | .dependencies = 0, |
| 192 | }; |
| 193 | result[@enumToInt(Feature.balance_fp_ops)] = .{ |
| 194 | .index = @enumToInt(Feature.balance_fp_ops), |
| 195 | .name = @tagName(Feature.balance_fp_ops), |
| 196 | .llvm_name = "balance-fp-ops", |
| 197 | .description = "balance mix of odd and even D-registers for fp multiply(-accumulate) ops", |
| 198 | .dependencies = 0, |
| 199 | }; |
| 200 | result[@enumToInt(Feature.bti)] = .{ |
| 201 | .index = @enumToInt(Feature.bti), |
| 202 | .name = @tagName(Feature.bti), |
| 203 | .llvm_name = "bti", |
| 204 | .description = "Enable Branch Target Identification", |
| 205 | .dependencies = 0, |
| 206 | }; |
| 207 | result[@enumToInt(Feature.ccidx)] = .{ |
| 208 | .index = @enumToInt(Feature.ccidx), |
| 209 | .name = @tagName(Feature.ccidx), |
| 210 | .llvm_name = "ccidx", |
| 211 | .description = "Enable v8.3-A Extend of the CCSIDR number of sets", |
| 212 | .dependencies = 0, |
| 213 | }; |
| 214 | result[@enumToInt(Feature.ccpp)] = .{ |
| 215 | .index = @enumToInt(Feature.ccpp), |
| 216 | .name = @tagName(Feature.ccpp), |
| 217 | .llvm_name = "ccpp", |
| 218 | .description = "Enable v8.2 data Cache Clean to Point of Persistence", |
| 219 | .dependencies = 0, |
| 220 | }; |
| 221 | result[@enumToInt(Feature.crc)] = .{ |
| 222 | .index = @enumToInt(Feature.crc), |
| 223 | .name = @tagName(Feature.crc), |
| 224 | .llvm_name = "crc", |
| 225 | .description = "Enable ARMv8 CRC-32 checksum instructions", |
| 226 | .dependencies = 0, |
| 227 | }; |
| 228 | result[@enumToInt(Feature.ccdp)] = .{ |
| 229 | .index = @enumToInt(Feature.ccdp), |
| 230 | .name = @tagName(Feature.ccdp), |
| 231 | .llvm_name = "ccdp", |
| 232 | .description = "Enable v8.5 Cache Clean to Point of Deep Persistence", |
| 233 | .dependencies = 0, |
| 234 | }; |
| 235 | result[@enumToInt(Feature.call_saved_x8)] = .{ |
| 236 | .index = @enumToInt(Feature.call_saved_x8), |
| 237 | .name = @tagName(Feature.call_saved_x8), |
| 238 | .llvm_name = "call-saved-x8", |
| 239 | .description = "Make X8 callee saved.", |
| 240 | .dependencies = 0, |
| 241 | }; |
| 242 | result[@enumToInt(Feature.call_saved_x9)] = .{ |
| 243 | .index = @enumToInt(Feature.call_saved_x9), |
| 244 | .name = @tagName(Feature.call_saved_x9), |
| 245 | .llvm_name = "call-saved-x9", |
| 246 | .description = "Make X9 callee saved.", |
| 247 | .dependencies = 0, |
| 248 | }; |
| 249 | result[@enumToInt(Feature.call_saved_x10)] = .{ |
| 250 | .index = @enumToInt(Feature.call_saved_x10), |
| 251 | .name = @tagName(Feature.call_saved_x10), |
| 252 | .llvm_name = "call-saved-x10", |
| 253 | .description = "Make X10 callee saved.", |
| 254 | .dependencies = 0, |
| 255 | }; |
| 256 | result[@enumToInt(Feature.call_saved_x11)] = .{ |
| 257 | .index = @enumToInt(Feature.call_saved_x11), |
| 258 | .name = @tagName(Feature.call_saved_x11), |
| 259 | .llvm_name = "call-saved-x11", |
| 260 | .description = "Make X11 callee saved.", |
| 261 | .dependencies = 0, |
| 262 | }; |
| 263 | result[@enumToInt(Feature.call_saved_x12)] = .{ |
| 264 | .index = @enumToInt(Feature.call_saved_x12), |
| 265 | .name = @tagName(Feature.call_saved_x12), |
| 266 | .llvm_name = "call-saved-x12", |
| 267 | .description = "Make X12 callee saved.", |
| 268 | .dependencies = 0, |
| 269 | }; |
| 270 | result[@enumToInt(Feature.call_saved_x13)] = .{ |
| 271 | .index = @enumToInt(Feature.call_saved_x13), |
| 272 | .name = @tagName(Feature.call_saved_x13), |
| 273 | .llvm_name = "call-saved-x13", |
| 274 | .description = "Make X13 callee saved.", |
| 275 | .dependencies = 0, |
| 276 | }; |
| 277 | result[@enumToInt(Feature.call_saved_x14)] = .{ |
| 278 | .index = @enumToInt(Feature.call_saved_x14), |
| 279 | .name = @tagName(Feature.call_saved_x14), |
| 280 | .llvm_name = "call-saved-x14", |
| 281 | .description = "Make X14 callee saved.", |
| 282 | .dependencies = 0, |
| 283 | }; |
| 284 | result[@enumToInt(Feature.call_saved_x15)] = .{ |
| 285 | .index = @enumToInt(Feature.call_saved_x15), |
| 286 | .name = @tagName(Feature.call_saved_x15), |
| 287 | .llvm_name = "call-saved-x15", |
| 288 | .description = "Make X15 callee saved.", |
| 289 | .dependencies = 0, |
| 290 | }; |
| 291 | result[@enumToInt(Feature.call_saved_x18)] = .{ |
| 292 | .index = @enumToInt(Feature.call_saved_x18), |
| 293 | .name = @tagName(Feature.call_saved_x18), |
| 294 | .llvm_name = "call-saved-x18", |
| 295 | .description = "Make X18 callee saved.", |
| 296 | .dependencies = 0, |
| 297 | }; |
| 298 | result[@enumToInt(Feature.complxnum)] = .{ |
| 299 | .index = @enumToInt(Feature.complxnum), |
| 300 | .name = @tagName(Feature.complxnum), |
| 301 | .llvm_name = "complxnum", |
| 302 | .description = "Enable v8.3-A Floating-point complex number support", |
| 303 | .dependencies = featureSet(&[_]Feature{ |
| 304 | .fp_armv8, |
| 305 | }), |
| 306 | }; |
| 307 | result[@enumToInt(Feature.crypto)] = .{ |
| 308 | .index = @enumToInt(Feature.crypto), |
| 309 | .name = @tagName(Feature.crypto), |
| 310 | .llvm_name = "crypto", |
| 311 | .description = "Enable cryptographic instructions", |
| 312 | .dependencies = featureSet(&[_]Feature{ |
| 313 | .fp_armv8, |
| 314 | }), |
| 315 | }; |
| 316 | result[@enumToInt(Feature.custom_cheap_as_move)] = .{ |
| 317 | .index = @enumToInt(Feature.custom_cheap_as_move), |
| 318 | .name = @tagName(Feature.custom_cheap_as_move), |
| 319 | .llvm_name = "custom-cheap-as-move", |
| 320 | .description = "Use custom handling of cheap instructions", |
| 321 | .dependencies = 0, |
| 322 | }; |
| 323 | result[@enumToInt(Feature.dit)] = .{ |
| 324 | .index = @enumToInt(Feature.dit), |
| 325 | .name = @tagName(Feature.dit), |
| 326 | .llvm_name = "dit", |
| 327 | .description = "Enable v8.4-A Data Independent Timing instructions", |
| 328 | .dependencies = 0, |
| 329 | }; |
| 330 | result[@enumToInt(Feature.disable_latency_sched_heuristic)] = .{ |
| 331 | .index = @enumToInt(Feature.disable_latency_sched_heuristic), |
| 332 | .name = @tagName(Feature.disable_latency_sched_heuristic), |
| 333 | .llvm_name = "disable-latency-sched-heuristic", |
| 334 | .description = "Disable latency scheduling heuristic", |
| 335 | .dependencies = 0, |
| 336 | }; |
| 337 | result[@enumToInt(Feature.dotprod)] = .{ |
| 338 | .index = @enumToInt(Feature.dotprod), |
| 339 | .name = @tagName(Feature.dotprod), |
| 340 | .llvm_name = "dotprod", |
| 341 | .description = "Enable dot product support", |
| 342 | .dependencies = 0, |
| 343 | }; |
| 344 | result[@enumToInt(Feature.exynos_cheap_as_move)] = .{ |
| 345 | .index = @enumToInt(Feature.exynos_cheap_as_move), |
| 346 | .name = @tagName(Feature.exynos_cheap_as_move), |
| 347 | .llvm_name = "exynos-cheap-as-move", |
| 348 | .description = "Use Exynos specific handling of cheap instructions", |
| 349 | .dependencies = featureSet(&[_]Feature{ |
| 350 | .custom_cheap_as_move, |
| 351 | }), |
| 352 | }; |
| 353 | result[@enumToInt(Feature.fmi)] = .{ |
| 354 | .index = @enumToInt(Feature.fmi), |
| 355 | .name = @tagName(Feature.fmi), |
| 356 | .llvm_name = "fmi", |
| 357 | .description = "Enable v8.4-A Flag Manipulation Instructions", |
| 358 | .dependencies = 0, |
| 359 | }; |
| 360 | result[@enumToInt(Feature.fp16fml)] = .{ |
| 361 | .index = @enumToInt(Feature.fp16fml), |
| 362 | .name = @tagName(Feature.fp16fml), |
| 363 | .llvm_name = "fp16fml", |
| 364 | .description = "Enable FP16 FML instructions", |
| 365 | .dependencies = featureSet(&[_]Feature{ |
| 366 | .fp_armv8, |
| 367 | }), |
| 368 | }; |
| 369 | result[@enumToInt(Feature.fp_armv8)] = .{ |
| 370 | .index = @enumToInt(Feature.fp_armv8), |
| 371 | .name = @tagName(Feature.fp_armv8), |
| 372 | .llvm_name = "fp-armv8", |
| 373 | .description = "Enable ARMv8 FP", |
| 374 | .dependencies = 0, |
| 375 | }; |
| 376 | result[@enumToInt(Feature.fptoint)] = .{ |
| 377 | .index = @enumToInt(Feature.fptoint), |
| 378 | .name = @tagName(Feature.fptoint), |
| 379 | .llvm_name = "fptoint", |
| 380 | .description = "Enable FRInt[32|64][Z|X] instructions that round a floating-point number to an integer (in FP format) forcing it to fit into a 32- or 64-bit int", |
| 381 | .dependencies = 0, |
| 382 | }; |
| 383 | result[@enumToInt(Feature.force_32bit_jump_tables)] = .{ |
| 384 | .index = @enumToInt(Feature.force_32bit_jump_tables), |
| 385 | .name = @tagName(Feature.force_32bit_jump_tables), |
| 386 | .llvm_name = "force-32bit-jump-tables", |
| 387 | .description = "Force jump table entries to be 32-bits wide except at MinSize", |
| 388 | .dependencies = 0, |
| 389 | }; |
| 390 | result[@enumToInt(Feature.fullfp16)] = .{ |
| 391 | .index = @enumToInt(Feature.fullfp16), |
| 392 | .name = @tagName(Feature.fullfp16), |
| 393 | .llvm_name = "fullfp16", |
| 394 | .description = "Full FP16", |
| 395 | .dependencies = featureSet(&[_]Feature{ |
| 396 | .fp_armv8, |
| 397 | }), |
| 398 | }; |
| 399 | result[@enumToInt(Feature.fuse_aes)] = .{ |
| 400 | .index = @enumToInt(Feature.fuse_aes), |
| 401 | .name = @tagName(Feature.fuse_aes), |
| 402 | .llvm_name = "fuse-aes", |
| 403 | .description = "CPU fuses AES crypto operations", |
| 404 | .dependencies = 0, |
| 405 | }; |
| 406 | result[@enumToInt(Feature.fuse_address)] = .{ |
| 407 | .index = @enumToInt(Feature.fuse_address), |
| 408 | .name = @tagName(Feature.fuse_address), |
| 409 | .llvm_name = "fuse-address", |
| 410 | .description = "CPU fuses address generation and memory operations", |
| 411 | .dependencies = 0, |
| 412 | }; |
| 413 | result[@enumToInt(Feature.fuse_arith_logic)] = .{ |
| 414 | .index = @enumToInt(Feature.fuse_arith_logic), |
| 415 | .name = @tagName(Feature.fuse_arith_logic), |
| 416 | .llvm_name = "fuse-arith-logic", |
| 417 | .description = "CPU fuses arithmetic and logic operations", |
| 418 | .dependencies = 0, |
| 419 | }; |
| 420 | result[@enumToInt(Feature.fuse_csel)] = .{ |
| 421 | .index = @enumToInt(Feature.fuse_csel), |
| 422 | .name = @tagName(Feature.fuse_csel), |
| 423 | .llvm_name = "fuse-csel", |
| 424 | .description = "CPU fuses conditional select operations", |
| 425 | .dependencies = 0, |
| 426 | }; |
| 427 | result[@enumToInt(Feature.fuse_crypto_eor)] = .{ |
| 428 | .index = @enumToInt(Feature.fuse_crypto_eor), |
| 429 | .name = @tagName(Feature.fuse_crypto_eor), |
| 430 | .llvm_name = "fuse-crypto-eor", |
| 431 | .description = "CPU fuses AES/PMULL and EOR operations", |
| 432 | .dependencies = 0, |
| 433 | }; |
| 434 | result[@enumToInt(Feature.fuse_literals)] = .{ |
| 435 | .index = @enumToInt(Feature.fuse_literals), |
| 436 | .name = @tagName(Feature.fuse_literals), |
| 437 | .llvm_name = "fuse-literals", |
| 438 | .description = "CPU fuses literal generation operations", |
| 439 | .dependencies = 0, |
| 440 | }; |
| 441 | result[@enumToInt(Feature.jsconv)] = .{ |
| 442 | .index = @enumToInt(Feature.jsconv), |
| 443 | .name = @tagName(Feature.jsconv), |
| 444 | .llvm_name = "jsconv", |
| 445 | .description = "Enable v8.3-A JavaScript FP conversion enchancement", |
| 446 | .dependencies = featureSet(&[_]Feature{ |
| 447 | .fp_armv8, |
| 448 | }), |
| 449 | }; |
| 450 | result[@enumToInt(Feature.lor)] = .{ |
| 451 | .index = @enumToInt(Feature.lor), |
| 452 | .name = @tagName(Feature.lor), |
| 453 | .llvm_name = "lor", |
| 454 | .description = "Enables ARM v8.1 Limited Ordering Regions extension", |
| 455 | .dependencies = 0, |
| 456 | }; |
| 457 | result[@enumToInt(Feature.lse)] = .{ |
| 458 | .index = @enumToInt(Feature.lse), |
| 459 | .name = @tagName(Feature.lse), |
| 460 | .llvm_name = "lse", |
| 461 | .description = "Enable ARMv8.1 Large System Extension (LSE) atomic instructions", |
| 462 | .dependencies = 0, |
| 463 | }; |
| 464 | result[@enumToInt(Feature.lsl_fast)] = .{ |
| 465 | .index = @enumToInt(Feature.lsl_fast), |
| 466 | .name = @tagName(Feature.lsl_fast), |
| 467 | .llvm_name = "lsl-fast", |
| 468 | .description = "CPU has a fastpath logical shift of up to 3 places", |
| 469 | .dependencies = 0, |
| 470 | }; |
| 471 | result[@enumToInt(Feature.mpam)] = .{ |
| 472 | .index = @enumToInt(Feature.mpam), |
| 473 | .name = @tagName(Feature.mpam), |
| 474 | .llvm_name = "mpam", |
| 475 | .description = "Enable v8.4-A Memory system Partitioning and Monitoring extension", |
| 476 | .dependencies = 0, |
| 477 | }; |
| 478 | result[@enumToInt(Feature.mte)] = .{ |
| 479 | .index = @enumToInt(Feature.mte), |
| 480 | .name = @tagName(Feature.mte), |
| 481 | .llvm_name = "mte", |
| 482 | .description = "Enable Memory Tagging Extension", |
| 483 | .dependencies = 0, |
| 484 | }; |
| 485 | result[@enumToInt(Feature.neon)] = .{ |
| 486 | .index = @enumToInt(Feature.neon), |
| 487 | .name = @tagName(Feature.neon), |
| 488 | .llvm_name = "neon", |
| 489 | .description = "Enable Advanced SIMD instructions", |
| 490 | .dependencies = featureSet(&[_]Feature{ |
| 491 | .fp_armv8, |
| 492 | }), |
| 493 | }; |
| 494 | result[@enumToInt(Feature.nv)] = .{ |
| 495 | .index = @enumToInt(Feature.nv), |
| 496 | .name = @tagName(Feature.nv), |
| 497 | .llvm_name = "nv", |
| 498 | .description = "Enable v8.4-A Nested Virtualization Enchancement", |
| 499 | .dependencies = 0, |
| 500 | }; |
| 501 | result[@enumToInt(Feature.no_neg_immediates)] = .{ |
| 502 | .index = @enumToInt(Feature.no_neg_immediates), |
| 503 | .name = @tagName(Feature.no_neg_immediates), |
| 504 | .llvm_name = "no-neg-immediates", |
| 505 | .description = "Convert immediates and instructions to their negated or complemented equivalent when the immediate does not fit in the encoding.", |
| 506 | .dependencies = 0, |
| 507 | }; |
| 508 | result[@enumToInt(Feature.pa)] = .{ |
| 509 | .index = @enumToInt(Feature.pa), |
| 510 | .name = @tagName(Feature.pa), |
| 511 | .llvm_name = "pa", |
| 512 | .description = "Enable v8.3-A Pointer Authentication enchancement", |
| 513 | .dependencies = 0, |
| 514 | }; |
| 515 | result[@enumToInt(Feature.pan)] = .{ |
| 516 | .index = @enumToInt(Feature.pan), |
| 517 | .name = @tagName(Feature.pan), |
| 518 | .llvm_name = "pan", |
| 519 | .description = "Enables ARM v8.1 Privileged Access-Never extension", |
| 520 | .dependencies = 0, |
| 521 | }; |
| 522 | result[@enumToInt(Feature.pan_rwv)] = .{ |
| 523 | .index = @enumToInt(Feature.pan_rwv), |
| 524 | .name = @tagName(Feature.pan_rwv), |
| 525 | .llvm_name = "pan-rwv", |
| 526 | .description = "Enable v8.2 PAN s1e1R and s1e1W Variants", |
| 527 | .dependencies = featureSet(&[_]Feature{ |
| 528 | .pan, |
| 529 | }), |
| 530 | }; |
| 531 | result[@enumToInt(Feature.perfmon)] = .{ |
| 532 | .index = @enumToInt(Feature.perfmon), |
| 533 | .name = @tagName(Feature.perfmon), |
| 534 | .llvm_name = "perfmon", |
| 535 | .description = "Enable ARMv8 PMUv3 Performance Monitors extension", |
| 536 | .dependencies = 0, |
| 537 | }; |
| 538 | result[@enumToInt(Feature.use_postra_scheduler)] = .{ |
| 539 | .index = @enumToInt(Feature.use_postra_scheduler), |
| 540 | .name = @tagName(Feature.use_postra_scheduler), |
| 541 | .llvm_name = "use-postra-scheduler", |
| 542 | .description = "Schedule again after register allocation", |
| 543 | .dependencies = 0, |
| 544 | }; |
| 545 | result[@enumToInt(Feature.predres)] = .{ |
| 546 | .index = @enumToInt(Feature.predres), |
| 547 | .name = @tagName(Feature.predres), |
| 548 | .llvm_name = "predres", |
| 549 | .description = "Enable v8.5a execution and data prediction invalidation instructions", |
| 550 | .dependencies = 0, |
| 551 | }; |
| 552 | result[@enumToInt(Feature.predictable_select_expensive)] = .{ |
| 553 | .index = @enumToInt(Feature.predictable_select_expensive), |
| 554 | .name = @tagName(Feature.predictable_select_expensive), |
| 555 | .llvm_name = "predictable-select-expensive", |
| 556 | .description = "Prefer likely predicted branches over selects", |
| 557 | .dependencies = 0, |
| 558 | }; |
| 559 | result[@enumToInt(Feature.uaops)] = .{ |
| 560 | .index = @enumToInt(Feature.uaops), |
| 561 | .name = @tagName(Feature.uaops), |
| 562 | .llvm_name = "uaops", |
| 563 | .description = "Enable v8.2 UAO PState", |
| 564 | .dependencies = 0, |
| 565 | }; |
| 566 | result[@enumToInt(Feature.ras)] = .{ |
| 567 | .index = @enumToInt(Feature.ras), |
| 568 | .name = @tagName(Feature.ras), |
| 569 | .llvm_name = "ras", |
| 570 | .description = "Enable ARMv8 Reliability, Availability and Serviceability Extensions", |
| 571 | .dependencies = 0, |
| 572 | }; |
| 573 | result[@enumToInt(Feature.rasv8_4)] = .{ |
| 574 | .index = @enumToInt(Feature.rasv8_4), |
| 575 | .name = @tagName(Feature.rasv8_4), |
| 576 | .llvm_name = "rasv8_4", |
| 577 | .description = "Enable v8.4-A Reliability, Availability and Serviceability extension", |
| 578 | .dependencies = featureSet(&[_]Feature{ |
| 579 | .ras, |
| 580 | }), |
| 581 | }; |
| 582 | result[@enumToInt(Feature.rcpc)] = .{ |
| 583 | .index = @enumToInt(Feature.rcpc), |
| 584 | .name = @tagName(Feature.rcpc), |
| 585 | .llvm_name = "rcpc", |
| 586 | .description = "Enable support for RCPC extension", |
| 587 | .dependencies = 0, |
| 588 | }; |
| 589 | result[@enumToInt(Feature.rcpc_immo)] = .{ |
| 590 | .index = @enumToInt(Feature.rcpc_immo), |
| 591 | .name = @tagName(Feature.rcpc_immo), |
| 592 | .llvm_name = "rcpc-immo", |
| 593 | .description = "Enable v8.4-A RCPC instructions with Immediate Offsets", |
| 594 | .dependencies = featureSet(&[_]Feature{ |
| 595 | .rcpc, |
| 596 | }), |
| 597 | }; |
| 598 | result[@enumToInt(Feature.rdm)] = .{ |
| 599 | .index = @enumToInt(Feature.rdm), |
| 600 | .name = @tagName(Feature.rdm), |
| 601 | .llvm_name = "rdm", |
| 602 | .description = "Enable ARMv8.1 Rounding Double Multiply Add/Subtract instructions", |
| 603 | .dependencies = 0, |
| 604 | }; |
| 605 | result[@enumToInt(Feature.rand)] = .{ |
| 606 | .index = @enumToInt(Feature.rand), |
| 607 | .name = @tagName(Feature.rand), |
| 608 | .llvm_name = "rand", |
| 609 | .description = "Enable Random Number generation instructions", |
| 610 | .dependencies = 0, |
| 611 | }; |
| 612 | result[@enumToInt(Feature.reserve_x1)] = .{ |
| 613 | .index = @enumToInt(Feature.reserve_x1), |
| 614 | .name = @tagName(Feature.reserve_x1), |
| 615 | .llvm_name = "reserve-x1", |
| 616 | .description = "Reserve X1, making it unavailable as a GPR", |
| 617 | .dependencies = 0, |
| 618 | }; |
| 619 | result[@enumToInt(Feature.reserve_x2)] = .{ |
| 620 | .index = @enumToInt(Feature.reserve_x2), |
| 621 | .name = @tagName(Feature.reserve_x2), |
| 622 | .llvm_name = "reserve-x2", |
| 623 | .description = "Reserve X2, making it unavailable as a GPR", |
| 624 | .dependencies = 0, |
| 625 | }; |
| 626 | result[@enumToInt(Feature.reserve_x3)] = .{ |
| 627 | .index = @enumToInt(Feature.reserve_x3), |
| 628 | .name = @tagName(Feature.reserve_x3), |
| 629 | .llvm_name = "reserve-x3", |
| 630 | .description = "Reserve X3, making it unavailable as a GPR", |
| 631 | .dependencies = 0, |
| 632 | }; |
| 633 | result[@enumToInt(Feature.reserve_x4)] = .{ |
| 634 | .index = @enumToInt(Feature.reserve_x4), |
| 635 | .name = @tagName(Feature.reserve_x4), |
| 636 | .llvm_name = "reserve-x4", |
| 637 | .description = "Reserve X4, making it unavailable as a GPR", |
| 638 | .dependencies = 0, |
| 639 | }; |
| 640 | result[@enumToInt(Feature.reserve_x5)] = .{ |
| 641 | .index = @enumToInt(Feature.reserve_x5), |
| 642 | .name = @tagName(Feature.reserve_x5), |
| 643 | .llvm_name = "reserve-x5", |
| 644 | .description = "Reserve X5, making it unavailable as a GPR", |
| 645 | .dependencies = 0, |
| 646 | }; |
| 647 | result[@enumToInt(Feature.reserve_x6)] = .{ |
| 648 | .index = @enumToInt(Feature.reserve_x6), |
| 649 | .name = @tagName(Feature.reserve_x6), |
| 650 | .llvm_name = "reserve-x6", |
| 651 | .description = "Reserve X6, making it unavailable as a GPR", |
| 652 | .dependencies = 0, |
| 653 | }; |
| 654 | result[@enumToInt(Feature.reserve_x7)] = .{ |
| 655 | .index = @enumToInt(Feature.reserve_x7), |
| 656 | .name = @tagName(Feature.reserve_x7), |
| 657 | .llvm_name = "reserve-x7", |
| 658 | .description = "Reserve X7, making it unavailable as a GPR", |
| 659 | .dependencies = 0, |
| 660 | }; |
| 661 | result[@enumToInt(Feature.reserve_x9)] = .{ |
| 662 | .index = @enumToInt(Feature.reserve_x9), |
| 663 | .name = @tagName(Feature.reserve_x9), |
| 664 | .llvm_name = "reserve-x9", |
| 665 | .description = "Reserve X9, making it unavailable as a GPR", |
| 666 | .dependencies = 0, |
| 667 | }; |
| 668 | result[@enumToInt(Feature.reserve_x10)] = .{ |
| 669 | .index = @enumToInt(Feature.reserve_x10), |
| 670 | .name = @tagName(Feature.reserve_x10), |
| 671 | .llvm_name = "reserve-x10", |
| 672 | .description = "Reserve X10, making it unavailable as a GPR", |
| 673 | .dependencies = 0, |
| 674 | }; |
| 675 | result[@enumToInt(Feature.reserve_x11)] = .{ |
| 676 | .index = @enumToInt(Feature.reserve_x11), |
| 677 | .name = @tagName(Feature.reserve_x11), |
| 678 | .llvm_name = "reserve-x11", |
| 679 | .description = "Reserve X11, making it unavailable as a GPR", |
| 680 | .dependencies = 0, |
| 681 | }; |
| 682 | result[@enumToInt(Feature.reserve_x12)] = .{ |
| 683 | .index = @enumToInt(Feature.reserve_x12), |
| 684 | .name = @tagName(Feature.reserve_x12), |
| 685 | .llvm_name = "reserve-x12", |
| 686 | .description = "Reserve X12, making it unavailable as a GPR", |
| 687 | .dependencies = 0, |
| 688 | }; |
| 689 | result[@enumToInt(Feature.reserve_x13)] = .{ |
| 690 | .index = @enumToInt(Feature.reserve_x13), |
| 691 | .name = @tagName(Feature.reserve_x13), |
| 692 | .llvm_name = "reserve-x13", |
| 693 | .description = "Reserve X13, making it unavailable as a GPR", |
| 694 | .dependencies = 0, |
| 695 | }; |
| 696 | result[@enumToInt(Feature.reserve_x14)] = .{ |
| 697 | .index = @enumToInt(Feature.reserve_x14), |
| 698 | .name = @tagName(Feature.reserve_x14), |
| 699 | .llvm_name = "reserve-x14", |
| 700 | .description = "Reserve X14, making it unavailable as a GPR", |
| 701 | .dependencies = 0, |
| 702 | }; |
| 703 | result[@enumToInt(Feature.reserve_x15)] = .{ |
| 704 | .index = @enumToInt(Feature.reserve_x15), |
| 705 | .name = @tagName(Feature.reserve_x15), |
| 706 | .llvm_name = "reserve-x15", |
| 707 | .description = "Reserve X15, making it unavailable as a GPR", |
| 708 | .dependencies = 0, |
| 709 | }; |
| 710 | result[@enumToInt(Feature.reserve_x18)] = .{ |
| 711 | .index = @enumToInt(Feature.reserve_x18), |
| 712 | .name = @tagName(Feature.reserve_x18), |
| 713 | .llvm_name = "reserve-x18", |
| 714 | .description = "Reserve X18, making it unavailable as a GPR", |
| 715 | .dependencies = 0, |
| 716 | }; |
| 717 | result[@enumToInt(Feature.reserve_x20)] = .{ |
| 718 | .index = @enumToInt(Feature.reserve_x20), |
| 719 | .name = @tagName(Feature.reserve_x20), |
| 720 | .llvm_name = "reserve-x20", |
| 721 | .description = "Reserve X20, making it unavailable as a GPR", |
| 722 | .dependencies = 0, |
| 723 | }; |
| 724 | result[@enumToInt(Feature.reserve_x21)] = .{ |
| 725 | .index = @enumToInt(Feature.reserve_x21), |
| 726 | .name = @tagName(Feature.reserve_x21), |
| 727 | .llvm_name = "reserve-x21", |
| 728 | .description = "Reserve X21, making it unavailable as a GPR", |
| 729 | .dependencies = 0, |
| 730 | }; |
| 731 | result[@enumToInt(Feature.reserve_x22)] = .{ |
| 732 | .index = @enumToInt(Feature.reserve_x22), |
| 733 | .name = @tagName(Feature.reserve_x22), |
| 734 | .llvm_name = "reserve-x22", |
| 735 | .description = "Reserve X22, making it unavailable as a GPR", |
| 736 | .dependencies = 0, |
| 737 | }; |
| 738 | result[@enumToInt(Feature.reserve_x23)] = .{ |
| 739 | .index = @enumToInt(Feature.reserve_x23), |
| 740 | .name = @tagName(Feature.reserve_x23), |
| 741 | .llvm_name = "reserve-x23", |
| 742 | .description = "Reserve X23, making it unavailable as a GPR", |
| 743 | .dependencies = 0, |
| 744 | }; |
| 745 | result[@enumToInt(Feature.reserve_x24)] = .{ |
| 746 | .index = @enumToInt(Feature.reserve_x24), |
| 747 | .name = @tagName(Feature.reserve_x24), |
| 748 | .llvm_name = "reserve-x24", |
| 749 | .description = "Reserve X24, making it unavailable as a GPR", |
| 750 | .dependencies = 0, |
| 751 | }; |
| 752 | result[@enumToInt(Feature.reserve_x25)] = .{ |
| 753 | .index = @enumToInt(Feature.reserve_x25), |
| 754 | .name = @tagName(Feature.reserve_x25), |
| 755 | .llvm_name = "reserve-x25", |
| 756 | .description = "Reserve X25, making it unavailable as a GPR", |
| 757 | .dependencies = 0, |
| 758 | }; |
| 759 | result[@enumToInt(Feature.reserve_x26)] = .{ |
| 760 | .index = @enumToInt(Feature.reserve_x26), |
| 761 | .name = @tagName(Feature.reserve_x26), |
| 762 | .llvm_name = "reserve-x26", |
| 763 | .description = "Reserve X26, making it unavailable as a GPR", |
| 764 | .dependencies = 0, |
| 765 | }; |
| 766 | result[@enumToInt(Feature.reserve_x27)] = .{ |
| 767 | .index = @enumToInt(Feature.reserve_x27), |
| 768 | .name = @tagName(Feature.reserve_x27), |
| 769 | .llvm_name = "reserve-x27", |
| 770 | .description = "Reserve X27, making it unavailable as a GPR", |
| 771 | .dependencies = 0, |
| 772 | }; |
| 773 | result[@enumToInt(Feature.reserve_x28)] = .{ |
| 774 | .index = @enumToInt(Feature.reserve_x28), |
| 775 | .name = @tagName(Feature.reserve_x28), |
| 776 | .llvm_name = "reserve-x28", |
| 777 | .description = "Reserve X28, making it unavailable as a GPR", |
| 778 | .dependencies = 0, |
| 779 | }; |
| 780 | result[@enumToInt(Feature.sb)] = .{ |
| 781 | .index = @enumToInt(Feature.sb), |
| 782 | .name = @tagName(Feature.sb), |
| 783 | .llvm_name = "sb", |
| 784 | .description = "Enable v8.5 Speculation Barrier", |
| 785 | .dependencies = 0, |
| 786 | }; |
| 787 | result[@enumToInt(Feature.sel2)] = .{ |
| 788 | .index = @enumToInt(Feature.sel2), |
| 789 | .name = @tagName(Feature.sel2), |
| 790 | .llvm_name = "sel2", |
| 791 | .description = "Enable v8.4-A Secure Exception Level 2 extension", |
| 792 | .dependencies = 0, |
| 793 | }; |
| 794 | result[@enumToInt(Feature.sha2)] = .{ |
| 795 | .index = @enumToInt(Feature.sha2), |
| 796 | .name = @tagName(Feature.sha2), |
| 797 | .llvm_name = "sha2", |
| 798 | .description = "Enable SHA1 and SHA256 support", |
| 799 | .dependencies = featureSet(&[_]Feature{ |
| 800 | .fp_armv8, |
| 801 | }), |
| 802 | }; |
| 803 | result[@enumToInt(Feature.sha3)] = .{ |
| 804 | .index = @enumToInt(Feature.sha3), |
| 805 | .name = @tagName(Feature.sha3), |
| 806 | .llvm_name = "sha3", |
| 807 | .description = "Enable SHA512 and SHA3 support", |
| 808 | .dependencies = featureSet(&[_]Feature{ |
| 809 | .fp_armv8, |
| 810 | }), |
| 811 | }; |
| 812 | result[@enumToInt(Feature.sm4)] = .{ |
| 813 | .index = @enumToInt(Feature.sm4), |
| 814 | .name = @tagName(Feature.sm4), |
| 815 | .llvm_name = "sm4", |
| 816 | .description = "Enable SM3 and SM4 support", |
| 817 | .dependencies = featureSet(&[_]Feature{ |
| 818 | .fp_armv8, |
| 819 | }), |
| 820 | }; |
| 821 | result[@enumToInt(Feature.spe)] = .{ |
| 822 | .index = @enumToInt(Feature.spe), |
| 823 | .name = @tagName(Feature.spe), |
| 824 | .llvm_name = "spe", |
| 825 | .description = "Enable Statistical Profiling extension", |
| 826 | .dependencies = 0, |
| 827 | }; |
| 828 | result[@enumToInt(Feature.ssbs)] = .{ |
| 829 | .index = @enumToInt(Feature.ssbs), |
| 830 | .name = @tagName(Feature.ssbs), |
| 831 | .llvm_name = "ssbs", |
| 832 | .description = "Enable Speculative Store Bypass Safe bit", |
| 833 | .dependencies = 0, |
| 834 | }; |
| 835 | result[@enumToInt(Feature.sve)] = .{ |
| 836 | .index = @enumToInt(Feature.sve), |
| 837 | .name = @tagName(Feature.sve), |
| 838 | .llvm_name = "sve", |
| 839 | .description = "Enable Scalable Vector Extension (SVE) instructions", |
| 840 | .dependencies = 0, |
| 841 | }; |
| 842 | result[@enumToInt(Feature.sve2)] = .{ |
| 843 | .index = @enumToInt(Feature.sve2), |
| 844 | .name = @tagName(Feature.sve2), |
| 845 | .llvm_name = "sve2", |
| 846 | .description = "Enable Scalable Vector Extension 2 (SVE2) instructions", |
| 847 | .dependencies = featureSet(&[_]Feature{ |
| 848 | .sve, |
| 849 | }), |
| 850 | }; |
| 851 | result[@enumToInt(Feature.sve2_aes)] = .{ |
| 852 | .index = @enumToInt(Feature.sve2_aes), |
| 853 | .name = @tagName(Feature.sve2_aes), |
| 854 | .llvm_name = "sve2-aes", |
| 855 | .description = "Enable AES SVE2 instructions", |
| 856 | .dependencies = featureSet(&[_]Feature{ |
| 857 | .sve, |
| 858 | .fp_armv8, |
| 859 | }), |
| 860 | }; |
| 861 | result[@enumToInt(Feature.sve2_bitperm)] = .{ |
| 862 | .index = @enumToInt(Feature.sve2_bitperm), |
| 863 | .name = @tagName(Feature.sve2_bitperm), |
| 864 | .llvm_name = "sve2-bitperm", |
| 865 | .description = "Enable bit permutation SVE2 instructions", |
| 866 | .dependencies = featureSet(&[_]Feature{ |
| 867 | .sve, |
| 868 | }), |
| 869 | }; |
| 870 | result[@enumToInt(Feature.sve2_sha3)] = .{ |
| 871 | .index = @enumToInt(Feature.sve2_sha3), |
| 872 | .name = @tagName(Feature.sve2_sha3), |
| 873 | .llvm_name = "sve2-sha3", |
| 874 | .description = "Enable SHA3 SVE2 instructions", |
| 875 | .dependencies = featureSet(&[_]Feature{ |
| 876 | .sve, |
| 877 | .fp_armv8, |
| 878 | }), |
| 879 | }; |
| 880 | result[@enumToInt(Feature.sve2_sm4)] = .{ |
| 881 | .index = @enumToInt(Feature.sve2_sm4), |
| 882 | .name = @tagName(Feature.sve2_sm4), |
| 883 | .llvm_name = "sve2-sm4", |
| 884 | .description = "Enable SM4 SVE2 instructions", |
| 885 | .dependencies = featureSet(&[_]Feature{ |
| 886 | .sve, |
| 887 | .fp_armv8, |
| 888 | }), |
| 889 | }; |
| 890 | result[@enumToInt(Feature.slow_misaligned_128store)] = .{ |
| 891 | .index = @enumToInt(Feature.slow_misaligned_128store), |
| 892 | .name = @tagName(Feature.slow_misaligned_128store), |
| 893 | .llvm_name = "slow-misaligned-128store", |
| 894 | .description = "Misaligned 128 bit stores are slow", |
| 895 | .dependencies = 0, |
| 896 | }; |
| 897 | result[@enumToInt(Feature.slow_paired_128)] = .{ |
| 898 | .index = @enumToInt(Feature.slow_paired_128), |
| 899 | .name = @tagName(Feature.slow_paired_128), |
| 900 | .llvm_name = "slow-paired-128", |
| 901 | .description = "Paired 128 bit loads and stores are slow", |
| 902 | .dependencies = 0, |
| 903 | }; |
| 904 | result[@enumToInt(Feature.slow_strqro_store)] = .{ |
| 905 | .index = @enumToInt(Feature.slow_strqro_store), |
| 906 | .name = @tagName(Feature.slow_strqro_store), |
| 907 | .llvm_name = "slow-strqro-store", |
| 908 | .description = "STR of Q register with register offset is slow", |
| 909 | .dependencies = 0, |
| 910 | }; |
| 911 | result[@enumToInt(Feature.specrestrict)] = .{ |
| 912 | .index = @enumToInt(Feature.specrestrict), |
| 913 | .name = @tagName(Feature.specrestrict), |
| 914 | .llvm_name = "specrestrict", |
| 915 | .description = "Enable architectural speculation restriction", |
| 916 | .dependencies = 0, |
| 917 | }; |
| 918 | result[@enumToInt(Feature.strict_align)] = .{ |
| 919 | .index = @enumToInt(Feature.strict_align), |
| 920 | .name = @tagName(Feature.strict_align), |
| 921 | .llvm_name = "strict-align", |
| 922 | .description = "Disallow all unaligned memory access", |
| 923 | .dependencies = 0, |
| 924 | }; |
| 925 | result[@enumToInt(Feature.tlb_rmi)] = .{ |
| 926 | .index = @enumToInt(Feature.tlb_rmi), |
| 927 | .name = @tagName(Feature.tlb_rmi), |
| 928 | .llvm_name = "tlb-rmi", |
| 929 | .description = "Enable v8.4-A TLB Range and Maintenance Instructions", |
| 930 | .dependencies = 0, |
| 931 | }; |
| 932 | result[@enumToInt(Feature.tracev84)] = .{ |
| 933 | .index = @enumToInt(Feature.tracev84), |
| 934 | .name = @tagName(Feature.tracev84), |
| 935 | .llvm_name = "tracev8.4", |
| 936 | .description = "Enable v8.4-A Trace extension", |
| 937 | .dependencies = 0, |
| 938 | }; |
| 939 | result[@enumToInt(Feature.use_aa)] = .{ |
| 940 | .index = @enumToInt(Feature.use_aa), |
| 941 | .name = @tagName(Feature.use_aa), |
| 942 | .llvm_name = "use-aa", |
| 943 | .description = "Use alias analysis during codegen", |
| 944 | .dependencies = 0, |
| 945 | }; |
| 946 | result[@enumToInt(Feature.tpidr_el1)] = .{ |
| 947 | .index = @enumToInt(Feature.tpidr_el1), |
| 948 | .name = @tagName(Feature.tpidr_el1), |
| 949 | .llvm_name = "tpidr-el1", |
| 950 | .description = "Permit use of TPIDR_EL1 for the TLS base", |
| 951 | .dependencies = 0, |
| 952 | }; |
| 953 | result[@enumToInt(Feature.tpidr_el2)] = .{ |
| 954 | .index = @enumToInt(Feature.tpidr_el2), |
| 955 | .name = @tagName(Feature.tpidr_el2), |
| 956 | .llvm_name = "tpidr-el2", |
| 957 | .description = "Permit use of TPIDR_EL2 for the TLS base", |
| 958 | .dependencies = 0, |
| 959 | }; |
| 960 | result[@enumToInt(Feature.tpidr_el3)] = .{ |
| 961 | .index = @enumToInt(Feature.tpidr_el3), |
| 962 | .name = @tagName(Feature.tpidr_el3), |
| 963 | .llvm_name = "tpidr-el3", |
| 964 | .description = "Permit use of TPIDR_EL3 for the TLS base", |
| 965 | .dependencies = 0, |
| 966 | }; |
| 967 | result[@enumToInt(Feature.use_reciprocal_square_root)] = .{ |
| 968 | .index = @enumToInt(Feature.use_reciprocal_square_root), |
| 969 | .name = @tagName(Feature.use_reciprocal_square_root), |
| 970 | .llvm_name = "use-reciprocal-square-root", |
| 971 | .description = "Use the reciprocal square root approximation", |
| 972 | .dependencies = 0, |
| 973 | }; |
| 974 | result[@enumToInt(Feature.vh)] = .{ |
| 975 | .index = @enumToInt(Feature.vh), |
| 976 | .name = @tagName(Feature.vh), |
| 977 | .llvm_name = "vh", |
| 978 | .description = "Enables ARM v8.1 Virtual Host extension", |
| 979 | .dependencies = 0, |
| 980 | }; |
| 981 | result[@enumToInt(Feature.zcm)] = .{ |
| 982 | .index = @enumToInt(Feature.zcm), |
| 983 | .name = @tagName(Feature.zcm), |
| 984 | .llvm_name = "zcm", |
| 985 | .description = "Has zero-cycle register moves", |
| 986 | .dependencies = 0, |
| 987 | }; |
| 988 | result[@enumToInt(Feature.zcz)] = .{ |
| 989 | .index = @enumToInt(Feature.zcz), |
| 990 | .name = @tagName(Feature.zcz), |
| 991 | .llvm_name = "zcz", |
| 992 | .description = "Has zero-cycle zeroing instructions", |
| 993 | .dependencies = featureSet(&[_]Feature{ |
| 994 | .zcz_fp, |
| 995 | .zcz_gp, |
| 996 | }), |
| 997 | }; |
| 998 | result[@enumToInt(Feature.zcz_fp)] = .{ |
| 999 | .index = @enumToInt(Feature.zcz_fp), |
| 1000 | .name = @tagName(Feature.zcz_fp), |
| 1001 | .llvm_name = "zcz-fp", |
| 1002 | .description = "Has zero-cycle zeroing instructions for FP registers", |
| 1003 | .dependencies = 0, |
| 1004 | }; |
| 1005 | result[@enumToInt(Feature.zcz_fp_workaround)] = .{ |
| 1006 | .index = @enumToInt(Feature.zcz_fp_workaround), |
| 1007 | .name = @tagName(Feature.zcz_fp_workaround), |
| 1008 | .llvm_name = "zcz-fp-workaround", |
| 1009 | .description = "The zero-cycle floating-point zeroing instruction has a bug", |
| 1010 | .dependencies = 0, |
| 1011 | }; |
| 1012 | result[@enumToInt(Feature.zcz_gp)] = .{ |
| 1013 | .index = @enumToInt(Feature.zcz_gp), |
| 1014 | .name = @tagName(Feature.zcz_gp), |
| 1015 | .llvm_name = "zcz-gp", |
| 1016 | .description = "Has zero-cycle zeroing instructions for generic registers", |
| 1017 | .dependencies = 0, |
| 1018 | }; |
| 1019 | break :blk result; |
| 1020 | }; |
| 1021 | |
| 1022 | pub const cpu = struct { |
| 1023 | pub const apple_latest = Cpu{ |
| 1024 | .name = "apple_latest", |
| 1025 | .llvm_name = "apple-latest", |
| 1026 | .features = featureSet(&[_]Feature{ |
| 1027 | .arith_cbz_fusion, |
| 1028 | .zcz_fp_workaround, |
| 1029 | .alternate_sextload_cvt_f32_pattern, |
| 1030 | .fuse_crypto_eor, |
| 1031 | .zcm, |
| 1032 | .zcz_gp, |
| 1033 | .perfmon, |
| 1034 | .disable_latency_sched_heuristic, |
| 1035 | .fp_armv8, |
| 1036 | .zcz_fp, |
| 1037 | .arith_bcc_fusion, |
| 1038 | .fuse_aes, |
| 1039 | }), |
| 1040 | }; |
| 1041 | |
| 1042 | pub const cortex_a35 = Cpu{ |
| 1043 | .name = "cortex_a35", |
| 1044 | .llvm_name = "cortex-a35", |
| 1045 | .features = featureSet(&[_]Feature{ |
| 1046 | .perfmon, |
| 1047 | .fp_armv8, |
| 1048 | .crc, |
| 1049 | }), |
| 1050 | }; |
| 1051 | |
| 1052 | pub const cortex_a53 = Cpu{ |
| 1053 | .name = "cortex_a53", |
| 1054 | .llvm_name = "cortex-a53", |
| 1055 | .features = featureSet(&[_]Feature{ |
| 1056 | .custom_cheap_as_move, |
| 1057 | .crc, |
| 1058 | .perfmon, |
| 1059 | .use_aa, |
| 1060 | .fp_armv8, |
| 1061 | .fuse_aes, |
| 1062 | .balance_fp_ops, |
| 1063 | .use_postra_scheduler, |
| 1064 | }), |
| 1065 | }; |
| 1066 | |
| 1067 | pub const cortex_a55 = Cpu{ |
| 1068 | .name = "cortex_a55", |
| 1069 | .llvm_name = "cortex-a55", |
| 1070 | .features = featureSet(&[_]Feature{ |
| 1071 | .ccpp, |
| 1072 | .rcpc, |
| 1073 | .uaops, |
| 1074 | .rdm, |
| 1075 | .ras, |
| 1076 | .lse, |
| 1077 | .crc, |
| 1078 | .perfmon, |
| 1079 | .fp_armv8, |
| 1080 | .vh, |
| 1081 | .fuse_aes, |
| 1082 | .lor, |
| 1083 | .dotprod, |
| 1084 | .pan, |
| 1085 | }), |
| 1086 | }; |
| 1087 | |
| 1088 | pub const cortex_a57 = Cpu{ |
| 1089 | .name = "cortex_a57", |
| 1090 | .llvm_name = "cortex-a57", |
| 1091 | .features = featureSet(&[_]Feature{ |
| 1092 | .fuse_literals, |
| 1093 | .predictable_select_expensive, |
| 1094 | .custom_cheap_as_move, |
| 1095 | .crc, |
| 1096 | .perfmon, |
| 1097 | .fp_armv8, |
| 1098 | .fuse_aes, |
| 1099 | .balance_fp_ops, |
| 1100 | .use_postra_scheduler, |
| 1101 | }), |
| 1102 | }; |
| 1103 | |
| 1104 | pub const cortex_a72 = Cpu{ |
| 1105 | .name = "cortex_a72", |
| 1106 | .llvm_name = "cortex-a72", |
| 1107 | .features = featureSet(&[_]Feature{ |
| 1108 | .fuse_aes, |
| 1109 | .fp_armv8, |
| 1110 | .perfmon, |
| 1111 | .crc, |
| 1112 | }), |
| 1113 | }; |
| 1114 | |
| 1115 | pub const cortex_a73 = Cpu{ |
| 1116 | .name = "cortex_a73", |
| 1117 | .llvm_name = "cortex-a73", |
| 1118 | .features = featureSet(&[_]Feature{ |
| 1119 | .fuse_aes, |
| 1120 | .fp_armv8, |
| 1121 | .perfmon, |
| 1122 | .crc, |
| 1123 | }), |
| 1124 | }; |
| 1125 | |
| 1126 | pub const cortex_a75 = Cpu{ |
| 1127 | .name = "cortex_a75", |
| 1128 | .llvm_name = "cortex-a75", |
| 1129 | .features = featureSet(&[_]Feature{ |
| 1130 | .ccpp, |
| 1131 | .rcpc, |
| 1132 | .uaops, |
| 1133 | .rdm, |
| 1134 | .ras, |
| 1135 | .lse, |
| 1136 | .crc, |
| 1137 | .perfmon, |
| 1138 | .fp_armv8, |
| 1139 | .vh, |
| 1140 | .fuse_aes, |
| 1141 | .lor, |
| 1142 | .dotprod, |
| 1143 | .pan, |
| 1144 | }), |
| 1145 | }; |
| 1146 | |
| 1147 | pub const cortex_a76 = Cpu{ |
| 1148 | .name = "cortex_a76", |
| 1149 | .llvm_name = "cortex-a76", |
| 1150 | .features = featureSet(&[_]Feature{ |
| 1151 | .ccpp, |
| 1152 | .rcpc, |
| 1153 | .uaops, |
| 1154 | .rdm, |
| 1155 | .ras, |
| 1156 | .lse, |
| 1157 | .crc, |
| 1158 | .fp_armv8, |
| 1159 | .vh, |
| 1160 | .lor, |
| 1161 | .ssbs, |
| 1162 | .dotprod, |
| 1163 | .pan, |
| 1164 | }), |
| 1165 | }; |
| 1166 | |
| 1167 | pub const cortex_a76ae = Cpu{ |
| 1168 | .name = "cortex_a76ae", |
| 1169 | .llvm_name = "cortex-a76ae", |
| 1170 | .features = featureSet(&[_]Feature{ |
| 1171 | .ccpp, |
| 1172 | .rcpc, |
| 1173 | .uaops, |
| 1174 | .rdm, |
| 1175 | .ras, |
| 1176 | .lse, |
| 1177 | .crc, |
| 1178 | .fp_armv8, |
| 1179 | .vh, |
| 1180 | .lor, |
| 1181 | .ssbs, |
| 1182 | .dotprod, |
| 1183 | .pan, |
| 1184 | }), |
| 1185 | }; |
| 1186 | |
| 1187 | pub const cyclone = Cpu{ |
| 1188 | .name = "cyclone", |
| 1189 | .llvm_name = "cyclone", |
| 1190 | .features = featureSet(&[_]Feature{ |
| 1191 | .arith_cbz_fusion, |
| 1192 | .zcz_fp_workaround, |
| 1193 | .alternate_sextload_cvt_f32_pattern, |
| 1194 | .fuse_crypto_eor, |
| 1195 | .zcm, |
| 1196 | .zcz_gp, |
| 1197 | .perfmon, |
| 1198 | .disable_latency_sched_heuristic, |
| 1199 | .fp_armv8, |
| 1200 | .zcz_fp, |
| 1201 | .arith_bcc_fusion, |
| 1202 | .fuse_aes, |
| 1203 | }), |
| 1204 | }; |
| 1205 | |
| 1206 | pub const exynos_m1 = Cpu{ |
| 1207 | .name = "exynos_m1", |
| 1208 | .llvm_name = "exynos-m1", |
| 1209 | .features = featureSet(&[_]Feature{ |
| 1210 | .custom_cheap_as_move, |
| 1211 | .crc, |
| 1212 | .force_32bit_jump_tables, |
| 1213 | .perfmon, |
| 1214 | .slow_misaligned_128store, |
| 1215 | .use_reciprocal_square_root, |
| 1216 | .fp_armv8, |
| 1217 | .zcz_fp, |
| 1218 | .fuse_aes, |
| 1219 | .slow_paired_128, |
| 1220 | .use_postra_scheduler, |
| 1221 | }), |
| 1222 | }; |
| 1223 | |
| 1224 | pub const exynos_m2 = Cpu{ |
| 1225 | .name = "exynos_m2", |
| 1226 | .llvm_name = "exynos-m2", |
| 1227 | .features = featureSet(&[_]Feature{ |
| 1228 | .custom_cheap_as_move, |
| 1229 | .crc, |
| 1230 | .force_32bit_jump_tables, |
| 1231 | .perfmon, |
| 1232 | .slow_misaligned_128store, |
| 1233 | .fp_armv8, |
| 1234 | .zcz_fp, |
| 1235 | .fuse_aes, |
| 1236 | .slow_paired_128, |
| 1237 | .use_postra_scheduler, |
| 1238 | }), |
| 1239 | }; |
| 1240 | |
| 1241 | pub const exynos_m3 = Cpu{ |
| 1242 | .name = "exynos_m3", |
| 1243 | .llvm_name = "exynos-m3", |
| 1244 | .features = featureSet(&[_]Feature{ |
| 1245 | .fuse_literals, |
| 1246 | .predictable_select_expensive, |
| 1247 | .custom_cheap_as_move, |
| 1248 | .crc, |
| 1249 | .force_32bit_jump_tables, |
| 1250 | .fuse_address, |
| 1251 | .fuse_csel, |
| 1252 | .perfmon, |
| 1253 | .fp_armv8, |
| 1254 | .zcz_fp, |
| 1255 | .fuse_aes, |
| 1256 | .lsl_fast, |
| 1257 | .use_postra_scheduler, |
| 1258 | }), |
| 1259 | }; |
| 1260 | |
| 1261 | pub const exynos_m4 = Cpu{ |
| 1262 | .name = "exynos_m4", |
| 1263 | .llvm_name = "exynos-m4", |
| 1264 | .features = featureSet(&[_]Feature{ |
| 1265 | .arith_cbz_fusion, |
| 1266 | .custom_cheap_as_move, |
| 1267 | .lse, |
| 1268 | .zcz_fp, |
| 1269 | .lsl_fast, |
| 1270 | .lor, |
| 1271 | .fuse_literals, |
| 1272 | .ccpp, |
| 1273 | .ras, |
| 1274 | .fp_armv8, |
| 1275 | .fuse_aes, |
| 1276 | .pan, |
| 1277 | .fuse_arith_logic, |
| 1278 | .crc, |
| 1279 | .force_32bit_jump_tables, |
| 1280 | .fuse_address, |
| 1281 | .fuse_csel, |
| 1282 | .arith_bcc_fusion, |
| 1283 | .uaops, |
| 1284 | .rdm, |
| 1285 | .zcz_gp, |
| 1286 | .perfmon, |
| 1287 | .vh, |
| 1288 | .use_postra_scheduler, |
| 1289 | .dotprod, |
| 1290 | }), |
| 1291 | }; |
| 1292 | |
| 1293 | pub const exynos_m5 = Cpu{ |
| 1294 | .name = "exynos_m5", |
| 1295 | .llvm_name = "exynos-m5", |
| 1296 | .features = featureSet(&[_]Feature{ |
| 1297 | .arith_cbz_fusion, |
| 1298 | .custom_cheap_as_move, |
| 1299 | .lse, |
| 1300 | .zcz_fp, |
| 1301 | .lsl_fast, |
| 1302 | .lor, |
| 1303 | .fuse_literals, |
| 1304 | .ccpp, |
| 1305 | .ras, |
| 1306 | .fp_armv8, |
| 1307 | .fuse_aes, |
| 1308 | .pan, |
| 1309 | .fuse_arith_logic, |
| 1310 | .crc, |
| 1311 | .force_32bit_jump_tables, |
| 1312 | .fuse_address, |
| 1313 | .fuse_csel, |
| 1314 | .arith_bcc_fusion, |
| 1315 | .uaops, |
| 1316 | .rdm, |
| 1317 | .zcz_gp, |
| 1318 | .perfmon, |
| 1319 | .vh, |
| 1320 | .use_postra_scheduler, |
| 1321 | .dotprod, |
| 1322 | }), |
| 1323 | }; |
| 1324 | |
| 1325 | pub const falkor = Cpu{ |
| 1326 | .name = "falkor", |
| 1327 | .llvm_name = "falkor", |
| 1328 | .features = featureSet(&[_]Feature{ |
| 1329 | .predictable_select_expensive, |
| 1330 | .custom_cheap_as_move, |
| 1331 | .rdm, |
| 1332 | .slow_strqro_store, |
| 1333 | .zcz_gp, |
| 1334 | .crc, |
| 1335 | .perfmon, |
| 1336 | .fp_armv8, |
| 1337 | .zcz_fp, |
| 1338 | .lsl_fast, |
| 1339 | .use_postra_scheduler, |
| 1340 | }), |
| 1341 | }; |
| 1342 | |
| 1343 | pub const generic = Cpu{ |
| 1344 | .name = "generic", |
| 1345 | .llvm_name = "generic", |
| 1346 | .features = featureSet(&[_]Feature{ |
| 1347 | .fp_armv8, |
| 1348 | .fuse_aes, |
| 1349 | .neon, |
| 1350 | .perfmon, |
| 1351 | .use_postra_scheduler, |
| 1352 | }), |
| 1353 | }; |
| 1354 | |
| 1355 | pub const kryo = Cpu{ |
| 1356 | .name = "kryo", |
| 1357 | .llvm_name = "kryo", |
| 1358 | .features = featureSet(&[_]Feature{ |
| 1359 | .predictable_select_expensive, |
| 1360 | .custom_cheap_as_move, |
| 1361 | .zcz_gp, |
| 1362 | .crc, |
| 1363 | .perfmon, |
| 1364 | .fp_armv8, |
| 1365 | .zcz_fp, |
| 1366 | .lsl_fast, |
| 1367 | .use_postra_scheduler, |
| 1368 | }), |
| 1369 | }; |
| 1370 | |
| 1371 | pub const saphira = Cpu{ |
| 1372 | .name = "saphira", |
| 1373 | .llvm_name = "saphira", |
| 1374 | .features = featureSet(&[_]Feature{ |
| 1375 | .predictable_select_expensive, |
| 1376 | .custom_cheap_as_move, |
| 1377 | .fmi, |
| 1378 | .lse, |
| 1379 | .zcz_fp, |
| 1380 | .lsl_fast, |
| 1381 | .lor, |
| 1382 | .dit, |
| 1383 | .pa, |
| 1384 | .ccpp, |
| 1385 | .sel2, |
| 1386 | .ras, |
| 1387 | .fp_armv8, |
| 1388 | .ccidx, |
| 1389 | .pan, |
| 1390 | .rcpc, |
| 1391 | .crc, |
| 1392 | .tracev84, |
| 1393 | .mpam, |
| 1394 | .am, |
| 1395 | .nv, |
| 1396 | .tlb_rmi, |
| 1397 | .uaops, |
| 1398 | .rdm, |
| 1399 | .zcz_gp, |
| 1400 | .perfmon, |
| 1401 | .vh, |
| 1402 | .use_postra_scheduler, |
| 1403 | .dotprod, |
| 1404 | .spe, |
| 1405 | }), |
| 1406 | }; |
| 1407 | |
| 1408 | pub const thunderx = Cpu{ |
| 1409 | .name = "thunderx", |
| 1410 | .llvm_name = "thunderx", |
| 1411 | .features = featureSet(&[_]Feature{ |
| 1412 | .predictable_select_expensive, |
| 1413 | .crc, |
| 1414 | .perfmon, |
| 1415 | .fp_armv8, |
| 1416 | .use_postra_scheduler, |
| 1417 | }), |
| 1418 | }; |
| 1419 | |
| 1420 | pub const thunderx2t99 = Cpu{ |
| 1421 | .name = "thunderx2t99", |
| 1422 | .llvm_name = "thunderx2t99", |
| 1423 | .features = featureSet(&[_]Feature{ |
| 1424 | .predictable_select_expensive, |
| 1425 | .aggressive_fma, |
| 1426 | .rdm, |
| 1427 | .lse, |
| 1428 | .crc, |
| 1429 | .fp_armv8, |
| 1430 | .vh, |
| 1431 | .arith_bcc_fusion, |
| 1432 | .lor, |
| 1433 | .use_postra_scheduler, |
| 1434 | .pan, |
| 1435 | }), |
| 1436 | }; |
| 1437 | |
| 1438 | pub const thunderxt81 = Cpu{ |
| 1439 | .name = "thunderxt81", |
| 1440 | .llvm_name = "thunderxt81", |
| 1441 | .features = featureSet(&[_]Feature{ |
| 1442 | .predictable_select_expensive, |
| 1443 | .crc, |
| 1444 | .perfmon, |
| 1445 | .fp_armv8, |
| 1446 | .use_postra_scheduler, |
| 1447 | }), |
| 1448 | }; |
| 1449 | |
| 1450 | pub const thunderxt83 = Cpu{ |
| 1451 | .name = "thunderxt83", |
| 1452 | .llvm_name = "thunderxt83", |
| 1453 | .features = featureSet(&[_]Feature{ |
| 1454 | .predictable_select_expensive, |
| 1455 | .crc, |
| 1456 | .perfmon, |
| 1457 | .fp_armv8, |
| 1458 | .use_postra_scheduler, |
| 1459 | }), |
| 1460 | }; |
| 1461 | |
| 1462 | pub const thunderxt88 = Cpu{ |
| 1463 | .name = "thunderxt88", |
| 1464 | .llvm_name = "thunderxt88", |
| 1465 | .features = featureSet(&[_]Feature{ |
| 1466 | .predictable_select_expensive, |
| 1467 | .crc, |
| 1468 | .perfmon, |
| 1469 | .fp_armv8, |
| 1470 | .use_postra_scheduler, |
| 1471 | }), |
| 1472 | }; |
| 1473 | |
| 1474 | pub const tsv110 = Cpu{ |
| 1475 | .name = "tsv110", |
| 1476 | .llvm_name = "tsv110", |
| 1477 | .features = featureSet(&[_]Feature{ |
| 1478 | .ccpp, |
| 1479 | .custom_cheap_as_move, |
| 1480 | .uaops, |
| 1481 | .rdm, |
| 1482 | .ras, |
| 1483 | .lse, |
| 1484 | .crc, |
| 1485 | .perfmon, |
| 1486 | .fp_armv8, |
| 1487 | .vh, |
| 1488 | .fuse_aes, |
| 1489 | .lor, |
| 1490 | .use_postra_scheduler, |
| 1491 | .dotprod, |
| 1492 | .pan, |
| 1493 | .spe, |
| 1494 | }), |
| 1495 | }; |
| 1496 | }; |
| 1497 | |
| 1498 | /// All aarch64 CPUs, sorted alphabetically by name. |
| 1499 | /// TODO: Replace this with usage of `std.meta.declList`. It does work, but stage1 |
| 1500 | /// compiler has inefficient memory and CPU usage, affecting build times. |
| 1501 | pub const all_cpus = &[_]*const Cpu{ |
| 1502 | &cpu.apple_latest, |
| 1503 | &cpu.cortex_a35, |
| 1504 | &cpu.cortex_a53, |
| 1505 | &cpu.cortex_a55, |
| 1506 | &cpu.cortex_a57, |
| 1507 | &cpu.cortex_a72, |
| 1508 | &cpu.cortex_a73, |
| 1509 | &cpu.cortex_a75, |
| 1510 | &cpu.cortex_a76, |
| 1511 | &cpu.cortex_a76ae, |
| 1512 | &cpu.cyclone, |
| 1513 | &cpu.exynos_m1, |
| 1514 | &cpu.exynos_m2, |
| 1515 | &cpu.exynos_m3, |
| 1516 | &cpu.exynos_m4, |
| 1517 | &cpu.exynos_m5, |
| 1518 | &cpu.falkor, |
| 1519 | &cpu.generic, |
| 1520 | &cpu.kryo, |
| 1521 | &cpu.saphira, |
| 1522 | &cpu.thunderx, |
| 1523 | &cpu.thunderx2t99, |
| 1524 | &cpu.thunderxt81, |
| 1525 | &cpu.thunderxt83, |
| 1526 | &cpu.thunderxt88, |
| 1527 | &cpu.tsv110, |
| 1603 | 1528 | }; |