mirror of
https://github.com/clearlinux/make-fmv-patch.git
synced 2026-08-18 12:09:02 +00:00
84ff247e46574b970937002ee5d2aa4b264c8a44
Add support for cpp files with test examples
Make FMV patches
The Clear Linux project is currently focusing on applying FMV technology to
packages where it is detected that AVX instructions can yield an improvement.
To solve some of the issues involved with supporting FMV in a full Linux
distribution, the project provides a patch generator based on
vectorization-candidate detection (using the -fopt-info-vec flag). This tool
can provide all the FMV patches that a Linux distribution might use
----------------------
Command Line Arguments
----------------------
Example: perl make-fmv-patch.pl <buildlog> <sourcecode>
buildlog: Build of the compilation of source code in gcc using the
``-fopt-info-vec`` flag
sourcecode: Absolute path to the source file from where patches will be
generated
------------
Requirements
------------
- Exuberant ctags:
In order to use `make-fvm-patch.pl` your system will need Exuberant Ctags
(https://sourceforge.net/projects/ctags/), this is due to the `--c-kinds`
ctags' flag usage.
------------
Test examples
------------
```
cd tests
make
cd ..
perl make-fmv-patch.pl tests/max-build.log tests/
perl make-fmv-patch.pl tests/loop-build.log tests/
This will generate:
./tests/max-test.cpp.patch
./tests/loop-test.c.patch
```
Languages
Perl
77.2%
C++
9.7%
Makefile
7%
C
6.1%