[flang] [llvm] [flang] implement `split` for fortran 2023 (PR #161484)
Connector Switch via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 05:47:57 PDT 2025
================
@@ -917,6 +945,19 @@ void RTDEF(CharacterMin)(Descriptor &accumulator, const Descriptor &x,
MaxMin<true>(accumulator, x, sourceFile, sourceLine);
}
+std::size_t RTDEF(Split1)(const char *x, std::size_t xLen, const char *set,
+ std::size_t setLen, std::size_t pos, bool back) {
+ return Split<char>(x, xLen, set, setLen, pos, back);
----------------
c8ef wrote:
It appears that the current implementation directly switches on the char type when using a char pointer(without descriptor). Maybe we can stick to the approach to make them consistent?
https://github.com/llvm/llvm-project/pull/161484
More information about the llvm-commits
mailing list