add fromUtf16 and 32, as well as lossy variants

This commit is contained in:
shua 2025-01-15 00:14:58 +01:00
parent 032f1cc5a4
commit 414fecd14d
No known key found for this signature in database
17 changed files with 805 additions and 74 deletions

View file

@ -1677,6 +1677,13 @@ trait Backend<'a> {
ret_layout,
)
}
LowLevel::StrFromUtf8Lossy => self.build_fn_call(
sym,
bitcode::STR_FROM_UTF8_LOSSY.to_string(),
args,
arg_layouts,
ret_layout,
),
LowLevel::StrRepeat => self.build_fn_call(
sym,
bitcode::STR_REPEAT.to_string(),