LLVM Framework and IR Extensions for Parallelization, SIMD Vectorization and Offloading
Authors:
- Xinmin TianXTXinmin Tian
- Hideki SaitoHSHideki Saito
- Ernesto SuESErnesto Su
- Abhinav GabaAGAbhinav Gaba
- Matt MastenMMMatt Masten
- Eric GarciaEGEric Garcia
- Ayal ZaksAZAyal Zaks
- 1 November 2016
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 21-31
Abstract
LLVM has become an integral part of the software-development ecosystem for developing advanced compilers, high-performance computing software and tools. This paper presents a small set of LLVM IR extensions for explicitly parallel, vector, and offloading program constructs. The proposed LLVM IR extensions enable the lowering and transformation in the LLVM middle-end for the OpenMP ® C/C++ and Fortran API, and any other explicitly parallel/simd constructs in high-level source languages. This paper discusses the rationale of the LLVM IR extensions to support OpenMP constructs and clauses, and presents the LLVM intrinsic functions, the framework for parallelization, vectorization, and offloading, and the sandwich scheme to model the OpenMP parallel, simd, offloading and data-attribute semantics under the SSA form. Examples are given to show our implementation in the LLVM middle-end passes, which paves the way to achieve a better interaction with scalar optimizations, vectorization, and loop optimizations, and thus resulting in higher performance.Keywords
This publication has 3 references indexed in Scilit: