psyclone.psyir.nodes.nan_test_node

This module provides support for verifying that the real inputs and outputs of a kernel are valid numbers (i.e. neither NAN nor infinite).

Classes

  • NanTestNode: This class can be inserted into a Schedule to mark Nodes for

class psyclone.psyir.nodes.nan_test_node.NanTestNode(ast=None, children=None, parent=None, options=None)

This class can be inserted into a Schedule to mark Nodes for NAN-checking using the NanTestTrans transformation. The Nodes marked for checking become children of (the Schedule of) a NanTestNode.

Inheritance

Inheritance diagram of NanTestNode
lower_to_language_level()

Lowers this node (and all children) to language-level PSyIR. The PSyIR tree is modified in-place.

Returns:

the lowered version of this node.

Return type:

psyclone.psyir.node.Node

property nan_test_body
Returns:

the Schedule associated with this NanTestNode.

Return type:

psyclone.psyir.nodes.Schedule