Overview
- Master the RISC-V RVV extension for cutting-edge compiler development.
- Discover innovative vectorization techniques with LLVM's VPlan and SLP.
- Enhance performance using RVV-specific directives in clang.
Part of the book series: Maker Innovations Series (MIS)
Access this book
Tax calculation will be finalised at checkout
Other ways to access
About this book
This book offers a comprehensive introduction to the RISC-V RVV extension and its integration with LLVM-based compilers. It covers the LLVM VPlan-based Loop Vectorizer and SLP Vectorizer, along with additional insights into the clang frontend, OpenMP support, and RVV-specific clang directives provided by SiFive.
Given the limited information currently available on RVV and its support in modern compilers, this book fills a crucial gap. RVV introduces a unique approach to vectorization—Vector Length Agnostic (VLA) vectorization—which stands out from the fixed vectors of x86 and the runtime-defined, yet fixed, ARM-based SVE and SVE2 extensions.
Readers will gain an understanding of RVV-specific VLA-based vectorization support in LLVM-based compilers, which are still under development. The book also provides early insights into the ongoing support for RVV in LLVM.
What You'll Learn
- Gain foundational knowledge of RISC-V and the RVV extension.
- Learn design and implementation of LLVM vectorizers.
- Learn to optimize performance with RVV-specific clang directives.
- Explore the unique Vector Length Agnostic (VLA) vectorization.
- Discover the differences between RVV and other vector extensions.
Who This Book Is For
1. For the engineers, who would like to get more info about RISC-V in general and RISC-V Vectorextension particularly.
2. For the developers, trying to get the performance using RVV.
3. For LLVM compiler developers, trying or learn more about vectorization support in LLVM.4.
4. For the students, who learn new about RISC- V, its extensions, interested in compiler development.
Similar content being viewed by others
Table of contents (6 chapters)
Authors and affiliations
About the author
Alexey Bataev is an experienced compiler engineer with a proven track record in software systems development, specializing in compilers, embedded platforms, and toolchain infrastructure. Areas of expertise include C++, LLVM, Clang, SLP Vectorization, OpenMP, Embedded Linux, and test automation. Holds a Ph.D. in Computer Science. Maintainer of the SLP Vectorizer in LLVM, OpenMP support in Clang. Author of peer-reviewed publications in the field of compiler technology.
Accessibility information
PDF accessibility summary
This PDF has been created in accordance with the PDF/UA-1 standard to enhance accessibility. It includes screen reader support, descriptions for Non-text content (such as images and graphs), bookmarks for easy navigation, keyboard-friendly links and forms, and searchable, selectable text. We recognise the importance of accessibility and welcome queries about accessibility for any of our products. If you have a question or an access need, please get in touch with us via https://www.springernature.com/gp/info/accessibility Please Note that a more accessible version of this eBook is available as an EPUB.
EPUB accessibility summary
This EPUB is designed with accessibility in mind, aiming to meet the EPUB Accessibility 1.1 and WCAG 2.2 Level AA standards. It features a navigable table of contents, structured headings, and alternative text for images, ensuring smooth, intuitive navigation and comprehension. The text is reflowable and resizable, with sufficient contrast. We recognize the importance of accessibility, and we welcome queries about accessibility for any of our products. If you have a question or an access need, please get in touch with us via https://www.springernature.com/gp/info/accessibility
Bibliographic information
Book title: LLVM Compiler for RISC-V Architecture
Book subtitle: A Unique Approach to Vectorization
Authors: Alexey Bataev
Series title: Maker Innovations Series
DOI: https://doi.org/10.1007/979-8-8688-2169-1
Publisher: Apress Berkeley, CA
eBook packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)
Copyright information: Alexey Bataev 2025
Softcover ISBN: 979-8-8688-2168-4Published: 03 January 2026
eBook ISBN: 979-8-8688-2169-1Published: 01 January 2026
Series ISSN: 2948-2542
Series E-ISSN: 2948-2550
Edition number: 1
Number of pages: XIV, 322
Number of illustrations: 10 b/w illustrations
Topics: Hardware and Maker