Guide agents through SIMD: reading auto-vectorization output, writing SSE2/AVX2/NEON intrinsics, runtime CPU feature detection, and choosing between compiler auto-vectorization and manual intrinsics.
| Loop-carried dependency | Restructure to remove dependency | | Data-dependent exit (early return) | Move exit after loop | | Non-contiguous memory | Use gather/scatter or restructure | | Aliasing (pointer may alias) | Add restrict or restrict | | Unknown trip count | Add builtinexpect or hint | | Function call in loop body | Inline the function |
For Intel Intrinsics Guide reference and NEON lookup tables, see references/intel-intrinsics-guide.md.
SIMD-Intrinsics-Fähigkeit für x86- (SSE/AVX) und ARM- (NEON) Vektorisierung. Wird zum Lesen von Auto-Vektorisierungsberichten, zum Schreiben von SSE2/AVX2/NEON-Intrinsics, zum Überprüfen von CPU-Feature-Flags zur Laufzeit, zur Auswahl zwischen Compiler-Builtins und Roh-Intrinsics oder zur Diagnose, warum die Auto-Vektorisierung fehlgeschlagen ist, verwendet. Wird bei Abfragen zu SIMD, SSE2, AVX2, NEON, Intrinsics, -fopt-info-vec, automatischer Vektorisierung oder Vektorisierungsfehlern aktiviert. Quelle: mohitmishra786/low-level-dev-skills.