forked from M-Labs/artiq
compiler: Annotate math functions nounwind/nowrite
This commit is contained in:
parent
cc00ae9580
commit
df8f1c5c5a
|
@ -34,6 +34,8 @@ def unary_fp_type(name):
|
||||||
return types.TExternalFunction(OrderedDict([("arg", builtins.TFloat())]),
|
return types.TExternalFunction(OrderedDict([("arg", builtins.TFloat())]),
|
||||||
builtins.TFloat(),
|
builtins.TFloat(),
|
||||||
name,
|
name,
|
||||||
|
# errno isn't observable from ARTIQ Python.
|
||||||
|
flags={"nounwind", "nowrite"},
|
||||||
broadcast_across_arrays=True)
|
broadcast_across_arrays=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue