- All Superinterfaces:
ASTNode
- All Known Subinterfaces:
OmpFunctionReductionNode,OmpSymbolReductionNode
This represents an OpenMP reduction clause. The syntax of a reduction clause
is as follows:
reduction(reduction-identifier:list) where reduction-identifier is either an identifier or one of the following operators: +, -, *, invalid input: '&', |, ^, invalid input: '&'invalid input: '&' and ||.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe kind of this reduction clause, either OPERATOR if the reduction-identifier is one of the following:+, -, *, invalid input: '&', |, ^, invalid input: '&'invalid input: '&', ||, min and max; or FUNCTION if the reduction-identifier is an identifier except "min" and "max" (ignoring the letter case for these two strings).static enumThe kind of this reduction operator, all (SUM, MINUS, MULTIPLY, MAX, MINBAND, BOR, BXOR, LAND, LOR, UDEF) except for "UDEF" are OpenMP built-in operators according to OpenMP Standard ver.4.5 (https://www.openmp.org/wp-content/uploads/openmp-4.5.pdf).Nested classes/interfaces inherited from interface dev.civl.abc.ast.node.IF.ASTNode
ASTNode.NodeKind -
Method Summary
Modifier and TypeMethodDescriptionReturns the kind of this reduction clause.Returns the list of variables associated with this clause.Methods inherited from interface dev.civl.abc.ast.node.IF.ASTNode
addAllTransformAnnotations, addTransformAnnotation, child, childIndex, children, copy, diff, equiv, getAttribute, getOwner, getScope, getSource, id, keepOnly, nextDFS, nodeKind, numChildren, parent, prettyPrint, prettyRepresentation, prettyRepresentation, print, remove, removeChild, removeTransformAnnotation, setAttribute, setChild, setId, setOwner, setScope, toString, transformAnnotations
-
Method Details
-
ompReductionOperatorNodeKind
OmpReductionNode.OmpReductionNodeKind ompReductionOperatorNodeKind()Returns the kind of this reduction clause.- Returns:
- the kind of this reduction clause.
-
variables
SequenceNode<IdentifierExpressionNode> variables()Returns the list of variables associated with this clause.- Returns:
- the list of variables associated with this clause.
-