Hi -
The idea here is to add a way to request that the compiler
print out the LLVM IR for a particular function at a particular
point in compilation/optimization. We intend to use that
functionality to write tests that verify that the generated LLVM IR
has some property (such as correct vectorization hints, or
that vectorization has occurred).
What we in particular hope for feedback on is the exact choice
of the new compile flags. The initial draft has these new flags:
--llvm-fdump <function-name> --llvm-fdump-opt <opt-num>
where <opt-num> is:
* 0 -- before any optimization
* 1 -- after basic simplification
* 2 -- after full optimization
I was thinking these flags might be better:
--print-llvm-ir <function-name> --print-llvm-ir-after <opt-name>
where <opt-name> is:
* start -- before any optimization
* simplify -- after basic simplification
* optimize -- after full optimization
Please comment on the PR with any thoughts on this.
Thanks very much,
-michael
On 5/1/17, 10:13 PM, "Przemek Leśniak" <[email protected]> wrote:
>Hello Dear Chapel developers,
>
>
>Recently I've been working on LLVM backend and I realized that LLVM IR
>dumping functions would be great option to have in compiler (for example
>to improve LLVM IR generation testing). I did some work and discussion
>with Michael Ferguson already (he is really
> great!). This is user feature and some of you probably would want to
>take a look at this. Therefore I'd like to ask you for some feedback and
>discussion, for example how user interface might look like.
>
>
>
>Here is link to Github PR with more details and current implementation:
>
>https://github.com/chapel-lang/chapel/pull/6135
>
>
>
>Cheers, Przemek
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers