[all-commits] [llvm/llvm-project] 054ead: [flang] Implement GETUID and GETGID intrinsics (#1...

David Truby via All-commits all-commits at lists.llvm.org
Mon Sep 30 06:37:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 054eadcb117ba7c86a99dff5c9d0ed101c7f17ea
      https://github.com/llvm/llvm-project/commit/054eadcb117ba7c86a99dff5c9d0ed101c7f17ea
  Author: David Truby <david.truby at arm.com>
  Date:   2024-09-30 (Mon, 30 Sep 2024)

  Changed paths:
    M flang/docs/Intrinsics.md
    M flang/include/flang/Evaluate/target.h
    M flang/include/flang/Optimizer/Builder/IntrinsicCall.h
    M flang/include/flang/Optimizer/Builder/Runtime/Intrinsics.h
    M flang/include/flang/Runtime/extensions.h
    M flang/include/flang/Tools/TargetSetup.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    M flang/lib/Optimizer/Builder/Runtime/Intrinsics.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/check-call.h
    M flang/lib/Semantics/expression.cpp
    M flang/runtime/extensions.cpp
    A flang/test/Semantics/windows.f90
    M flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp
    A flang/unittests/Optimizer/Builder/Runtime/IntrinsicsTest.cpp
    M flang/unittests/Optimizer/CMakeLists.txt

  Log Message:
  -----------
  [flang] Implement GETUID and GETGID intrinsics (#108017)

GETUID and GETGID are non-standard intrinsics supported by a number of
other Fortran compilers. On supported platforms these intrinsics simply
call the POSIX getuid() and getgid() functions and return the result.
The only platform we support that does not have these is Windows.

Windows does not have the same concept of UIDs and GIDs, so on Windows
we issue a warning indicating this and return 1 from both functions.

Co-authored-by: Yi Wu <yi.wu2 at arm.com>

---------

Co-authored-by: Yi Wu <yi.wu2 at arm.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list