[flang] [llvm] [flang] implement `split` for fortran 2023 (PR #161484)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 03:02:28 PDT 2025
================
@@ -570,6 +570,34 @@ static RT_API_ATTRS void MaxMin(Descriptor &accumulator, const Descriptor &x,
}
}
+template <typename CHAR>
+inline RT_API_ATTRS std::size_t Split(const CHAR *x, std::size_t xLen,
+ const CHAR *set, std::size_t setLen, std::size_t pos, bool back) {
+ Terminator terminator{__FILE__, __LINE__};
----------------
tblah wrote:
The terminator should be initialised with the source file and line for the fortran program not here in the runtime. If you look at other runtime functions, the way this works is for flang to pass the location information as arguments to the runtime function.
https://github.com/llvm/llvm-project/pull/161484
More information about the llvm-commits
mailing list