about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/intrinsic.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-28 18:13:12 +0200
committerGitHub <noreply@github.com>2025-09-28 18:13:12 +0200
commitaa6bd559488a3ad7b6eeff1eb4c75a6e2c6e2632 (patch)
treeb9054fe3c8622d1f087712d4d123a534b165d2ee /compiler/rustc_codegen_llvm/src/intrinsic.rs
parent750e902a751a8761ad0a9e8ba806c5c543d17e34 (diff)
parentc1259aa26fead9a9d365c4436d5ceb00cad88bbe (diff)
downloadrust-aa6bd559488a3ad7b6eeff1eb4c75a6e2c6e2632.tar.gz
rust-aa6bd559488a3ad7b6eeff1eb4c75a6e2c6e2632.zip
Rollup merge of #147113 - heiher:src-analysis-lsx, r=lqd
Reland "Add LSX accelerated implementation for source file analysis"

This patch introduces an LSX-optimized version of `analyze_source_file` for the `loongarch64` target. Similar to existing SSE2 implementation for x86, this version:

- Processes 16-byte chunks at a time using LSX vector intrinsics.
- Quickly identifies newlines in ASCII-only chunks.
- Falls back to the generic implementation when multi-byte UTF-8 characters are detected or in the tail portion.

Reland rust-lang/rust#145963

r? ``@lqd``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
0 files changed, 0 insertions, 0 deletions