[fpc-devel] Wrong debug info when using clang backend
Jonas Maebe
jonas at freepascal.org
Sat Dec 9 10:48:35 CET 2023
On 09/12/2023 10:07, Adriaan van Os via fpc-devel wrote:
> Another question. Is there a way to put pragmas in fpc source code to be
> passed to CLang, eg. those mentioned here
> <https://llvm.org/docs/Vectorizers.html> ? That would gain a lot, at
> little cost.
No. However, FPC command line parameters (e.g. -O, -Cp) and
directives/modifiers (e.g. inline, const, constref, ...) get translated
into LLVM directives wherever possible.
So if/when we would get FPC equivalents of such directives, I could
translate those to LLVM IR as well.
Jonas
More information about the fpc-devel
mailing list