[flang-commits] [flang] [flang] Add ETIME runtime and lowering intrinsics implementation (PR #90578)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed May 1 08:39:32 PDT 2024


klausler wrote:

> > `etime` needs to be both a function and a subroutine.
> 
> Yes. Any recommendation how this can be achieved? I was trying to add `etime` to the function definitions and the subroutine definitions, but then code-gen handler is not being picked up.

I don't understand that last part.  Does it mean that lowering needs distinct names for the function and the subroutine forms?  That seems likely, and one can do that by defining a distinct name in the function table (say `__builtin_etime_func`) and then defining `etime` as an alias for it in `genericAlias`.

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


More information about the flang-commits mailing list