[flang-commits] [flang] [flang] Implement !DIR$ [NO]INLINE and FORCEINLINE directives (PR #134350)

Jean-Didier PAILLEUX via flang-commits flang-commits at lists.llvm.org
Fri May 16 06:56:55 PDT 2025


JDPailleux wrote:

No worries, I probably misspoke too and didn't point out those PRs. I don't see what's blocking this patc, nothing on my side. There was a little debate about the naming of the directives (renaming followed the comments on the respect those of Intel's one. Maybe the confusion was found here).
> How are those new MLIR attributes translated into LLVM IR?
For these new MLIR attributes. When operations are convert from the MLIR dialect to LLVMIR, we check for the presence of the attributes on the `mlir::LLVM::CallOp` operation. If so, we add the attribute to the operation function of the new operation (`llvm::CallInst`) along with the LLVM attributes (e.g. `llvm::Attribute::AlwaysInline`, `llvm::Attribute::NoInline`).

https://github.com/llvm/llvm-project/pull/134350


More information about the flang-commits mailing list