count utf bytes

This commit is contained in:
Folkert 2023-02-11 18:43:13 +01:00
parent e48a604862
commit a66320b00c
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -847,6 +847,13 @@ trait Backend<'a> {
arg_layouts,
ret_layout,
),
LowLevel::StrCountUtf8Bytes => self.build_fn_call(
sym,
bitcode::STR_COUNT_UTF8_BYTES.to_string(),
args,
arg_layouts,
ret_layout,
),
LowLevel::StrFromUtf8Range => self.build_fn_call(
sym,
bitcode::STR_FROM_UTF8_RANGE.to_string(),