Skip to content

How to provide compiler hints (pragma directives) in a Fortran program to instruct the compiler to force a function to be inlined? #127454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
buggfg opened this issue Feb 17, 2025 · 3 comments
Labels
flang Flang issues not falling into any other category question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@buggfg
Copy link

buggfg commented Feb 17, 2025

I tried using “!dir$ inline,” but it's not working.
Thanks a lot!

@tbaederr tbaederr added question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! flang Flang issues not falling into any other category and removed new issue labels Feb 17, 2025
@kiranchandramohan
Copy link
Contributor

The inline directive is not implemented yet.

@JDPailleux @ashermancinelli do you have any plans to add support?

@JDPailleux
Copy link
Contributor

JDPailleux commented Feb 19, 2025

@kiranchandramohan Yes, I plan to provide a PR on it soon.

@JDPailleux
Copy link
Contributor

Hi, FYI I've just created a first PR (#133726) for adding attributes in the LLVMIR dialect in MLIR to prevent the next PR on the INLINE directive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
None yet
Development

No branches or pull requests

5 participants