Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

LLVM based tooling with IFX

Maxime_Cabanal
Beginner
597 Views

Hi,

As I understood, the new compiler IFX is based on LLVM stack for its backend I suppose, could this mean we can hope for or develop tooling around it freely?

I am thinking about a fortran-tidy (a clang-tidy but with IFX), including linting, fixes and custom checks in order to enable automated codebase-scale refactoring.

Could something like this be possible?

 

Regards

Maxime

0 Kudos
1 Solution
Ron_Green
Moderator
512 Views

Unfortunately probably no.  We do not allow users to dump LLVM IR with our compiler.  And our AST is a proprietary format without AST manipulation or parsing tools.  

There are similar efforts as what you suggest for the open source LLVM Flang compiler.  That would allow tools to parse the AST for what you propose.

View solution in original post

0 Kudos
1 Reply
Ron_Green
Moderator
513 Views

Unfortunately probably no.  We do not allow users to dump LLVM IR with our compiler.  And our AST is a proprietary format without AST manipulation or parsing tools.  

There are similar efforts as what you suggest for the open source LLVM Flang compiler.  That would allow tools to parse the AST for what you propose.

0 Kudos
Reply