[fpc-devel] Wrong debug info when using clang backend

Adriaan van Os adriaan at adriaan.biz
Thu Dec 14 08:38:22 CET 2023


Michael Van Canneyt via fpc-devel wrote:

> Maybe a single {$PRAGMA XYZ} directive can be introduced to control this
> kind of stuff, with a fixed list of XYZ. Backends can intepret the XYZ 
> pragmas as they see fit.

Yes, a {$pragma} directive is fine for me. It seems absurd to ignore code improvement capabilities 
that we get for free with the llvm back-end.

Regards,

Adriaan van Os

{$pragma vectorize ON}
{$pragma vectorize OFF}
{$pragma vectorize WIDTH=n}
{$pragma vectorize TYPE=FIXED}
{$pragma vectorize TYPE=SCALABLE}
{$pragma vectorize PREDICATE=ON}
{$pragma vectorize PREDICATE=OFF}

For a description, see <https://llvm.org/docs/Vectorizers.html#command-line-flags>. And

{$pragma unroll ON}
{$pragma unroll OFF}
{$pragma unroll FULL}
{$pragma unroll COUNT=n}

For a description, see <https://llvm.org/docs/Vectorizers.html#command-line-flags>. And


More information about the fpc-devel mailing list