Victor Rodriguez 84ff247e46 Merge pull request #3 from VictorRodriguez/master
Add support for cpp files with test examples
2018-12-03 14:39:17 -06:00

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
```
S
Description
No description provided
Readme MIT 132 KiB
Languages
Perl 77.2%
C++ 9.7%
Makefile 7%
C 6.1%