[llvm-dev] RFC: Interface user provided vector functions with the vectorizer.
Francesco Petrogalli via llvm-dev
llvm-dev at lists.llvm.org
Mon Jun 24 08:57:03 PDT 2019
> On Jun 24, 2019, at 10:48 AM, Doerfert, Johannes <jdoerfert at anl.gov> wrote:
> @Francesco, we should even consider putting the generating capabilities outside of the OpenMP code generation (in the future). That could allow easier reuse by other frontends.
This is already decoupled from OpenMP code generation. Here OpenMP is used only to classify the functions via `clang_declare_simd_variant`. The data it generate is used buy the SVFS, but the SVFS itself is independent from OpenMP, and can be extended to be used for other kind of vector functions that are not handled by the OpenMP description.
Other frontends will be able to use the same mechanism, they will just have to generate the same data in the IR.
More information about the llvm-dev