compiler: Annotate math functions nounwind/nowrite

This commit is contained in:
David Nadlinger 2020-08-03 01:40:39 +01:00
parent cc00ae9580
commit df8f1c5c5a
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ def unary_fp_type(name):
return types.TExternalFunction(OrderedDict([("arg", builtins.TFloat())]),
builtins.TFloat(),
name,
# errno isn't observable from ARTIQ Python.
flags={"nounwind", "nowrite"},
broadcast_across_arrays=True)