[all-commits] [llvm/llvm-project] 30d2cb: [Flang][OpenMP][Runtime] Minor Flang runtime for O...
agozillon via All-commits
all-commits at lists.llvm.org
Fri Aug 29 14:05:09 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30d2cb5a7ecd34cf19843533681a53aa7bd8d351
https://github.com/llvm/llvm-project/commit/30d2cb5a7ecd34cf19843533681a53aa7bd8d351
Author: agozillon <Andrew.Gozillon at amd.com>
Date: 2025-08-29 (Fri, 29 Aug 2025)
Changed paths:
M flang-rt/include/flang-rt/runtime/buffer.h
M flang-rt/include/flang-rt/runtime/descriptor.h
M flang-rt/include/flang-rt/runtime/format-implementation.h
M flang-rt/include/flang-rt/runtime/tools.h
M flang-rt/lib/runtime/array-constructor.cpp
M flang-rt/lib/runtime/assign.cpp
M flang-rt/lib/runtime/character.cpp
M flang-rt/lib/runtime/command.cpp
M flang-rt/lib/runtime/copy.cpp
M flang-rt/lib/runtime/derived.cpp
M flang-rt/lib/runtime/descriptor-io.cpp
M flang-rt/lib/runtime/descriptor.cpp
M flang-rt/lib/runtime/edit-input.cpp
M flang-rt/lib/runtime/extensions.cpp
M flang-rt/lib/runtime/external-unit.cpp
M flang-rt/lib/runtime/extrema.cpp
M flang-rt/lib/runtime/internal-unit.cpp
M flang-rt/lib/runtime/io-error.cpp
M flang-rt/lib/runtime/matmul-transpose.cpp
M flang-rt/lib/runtime/matmul.cpp
M flang-rt/lib/runtime/misc-intrinsic.cpp
M flang-rt/lib/runtime/pseudo-unit.cpp
M flang-rt/lib/runtime/ragged.cpp
M flang-rt/lib/runtime/reduce.cpp
M flang-rt/lib/runtime/stat.cpp
M flang-rt/lib/runtime/temporary-stack.cpp
M flang-rt/lib/runtime/time-intrinsic.cpp
M flang-rt/lib/runtime/tools.cpp
M flang-rt/lib/runtime/transformational.cpp
M flang-rt/lib/runtime/unit-map.cpp
M flang-rt/lib/runtime/unit.cpp
M flang-rt/lib/runtime/work-queue.cpp
M flang/include/flang/Common/Fortran-consts.h
M flang/include/flang/Common/constexpr-bitset.h
M flang/include/flang/Decimal/binary-floating-point.h
M flang/include/flang/Runtime/allocator-registry-consts.h
M flang/include/flang/Runtime/freestanding-tools.h
M flang/include/flang/Runtime/stop.h
Log Message:
-----------
[Flang][OpenMP][Runtime] Minor Flang runtime for OpenMP AMDGPU modifications (#152631)
We have some modifications downstream to compile the flang runtime for
amdgpu using clang OpenMP, some more hacky than others to workaround
(hopefully temporary) compiler issues. The additions here are the
non-hacky alterations.
Main changes:
* Create freestanding versions of memcpy, strlen and memmove, and
replace std:: references with these so that we can default to std:: when
it's available, or our own Flang implementation when it's not. * Wrap
more bits and pieces of the library in declare target wrappers (RT_*
macros). * Fix some warnings that'll pose issues with werror on, in this
case having the namespace infront of variables passed to templates.
Another minor issues that'll likely still pop up depending on the
program you're linking with is that abort will be undefined, it is
perhaps possible to solve it with a freestanding implementation as with
memcpy etc. but we end up with multiple definitions in this case. An
alternative is to create an empty extern "c" version (which can be empty
or forwrd on to the builtin).
Co-author: Dan Palermo Dan.Palermo at amd.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