The dividing line between compiler builtin, language primitive, standard library or compiler runtime doesn't really exist if you don't want it to. They're all variations on the same theme.
johnisgood 152 days ago [-]
I wonder how one would do DFA minimization with that though. Implement regexp functional equivalence testing so I will not have to! :D
JonChesterfield 152 days ago [-]
That could be implemented as a pass you load yourself if you don't want to to wait / persuade other people to ship it.
__builtin_regex_compile() __builtin_regex_match()
If there were an ISA out there that had some kind of regular expression feature, those could conceivably be supported with builtins, though.
https://pubs.opengroup.org/onlinepubs/009696899/functions/re...