[flang] [llvm] [flang] implement `split` for fortran 2023 (PR #161484)
Peter Klausler via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 09:03:03 PDT 2025
================
@@ -570,6 +570,30 @@ 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) {
----------------
klausler wrote:
`size_t` is the correct type to use for character lengths. `int64_t` is the correct type to use for Fortran `INTEGER` values.
https://github.com/llvm/llvm-project/pull/161484
More information about the llvm-commits
mailing list