2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

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

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)