[flang-commits] [flang] [llvm] [flang] Implement SPLIT intrinsic subroutine with tests (PR #185584)
via flang-commits
flang-commits at lists.llvm.org
Sat Mar 14 01:07:07 PDT 2026
================
@@ -764,6 +764,13 @@ static constexpr IntrinsicHandler handlers[]{
/*isElemental=*/false},
{"sleep", &I::genSleep, {{{"seconds", asValue}}}, /*isElemental=*/false},
{"spacing", &I::genSpacing},
+ {"split",
+ &I::genSplit,
+ {{{"string", asAddr},
+ {"set", asAddr},
+ {"pos", asAddr},
+ {"back", asValue, handleDynamicOptional}}},
+ /*isElemental=*/true},
----------------
laoshd wrote:
Good catch. SPLIT is a simple subroutine. Flang currently does not have Simple class yet. Simple subroutines are treated as Pure. Corrected.
https://github.com/llvm/llvm-project/pull/185584
More information about the flang-commits
mailing list