[flang-commits] [flang] [llvm] [flang][flang-rt] Add support for non-standard TIMEF intrinsic (PR #185377)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri Mar 13 08:56:51 PDT 2026


klausler wrote:

If existing compilers don't implement a language extension identically, we need to question whether it serves the needs of portability to add it to flang-new.  Right now, people can't run a code with `TIMEF` at all, and need to resort to portable (and maybe standard) substitutes.  If you implement a `TIMEF` that works like Intel, it makes any codes that expect nvfortran/XLF behavior work differently, which is usually worse than not working at all since it requires debugging.  Same story if you implement it with the thread-local millisecond behavior -- it will lead to debugging and bug reports from Intel users.  So please think carefully about whether or not you want to do this at all -- the differing behaviors mean that the first paragraph in our policy towards extensions doesn't apply to this one.

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


More information about the flang-commits mailing list