Skip to main content

Module expr

Module expr 

Source
Expand description

Primitive operations. Each node, such as Add, LT or Select, applies one operation to PrimExpr operands, lane by lane for vectors; its new checks the operand types and derives the node’s type, without the promotion and folding of op.

Structs§

Add
The sum a + b of operands of one type, elementwise for vectors.
AddObj
The object behind Add.
And
The conjunction a && b of boolean operands of one type.
AndObj
The object behind And.
BitwiseAnd
The bitwise and a & b of integer or boolean operands of one type.
BitwiseAndObj
The object behind BitwiseAnd.
BitwiseNot
The bitwise complement ~a of an integer or boolean operand.
BitwiseNotObj
The object behind BitwiseNot.
BitwiseOr
The bitwise or a | b of integer or boolean operands of one type.
BitwiseOrObj
The object behind BitwiseOr.
BitwiseXor
The bitwise exclusive or a ^ b of integer or boolean operands of one type.
BitwiseXorObj
The object behind BitwiseXor.
Cast
The conversion of value to the node’s type, lane by lane: both have as many lanes.
CastObj
The object behind Cast.
Div
The quotient a / b of operands of one type; integer division truncates toward zero.
DivObj
The object behind Div.
EQ
The comparison a == b of operands of one type: a boolean with their lanes.
EQObj
The object behind EQ.
FloorDiv
The quotient floor(a / b) of operands of one type, rounded toward negative infinity.
FloorDivObj
The object behind FloorDiv.
FloorMod
The remainder a - floor(a / b) * b of floor division, of operands of one type.
FloorModObj
The object behind FloorMod.
GE
The comparison a >= b of operands of one type: a boolean with their lanes.
GEObj
The object behind GE.
GT
The comparison a > b of operands of one type: a boolean with their lanes.
GTObj
The object behind GT.
LE
The comparison a <= b of operands of one type: a boolean with their lanes.
LEObj
The object behind LE.
LShift
The left shift a << b of integer operands of one type.
LShiftObj
The object behind LShift.
LT
The comparison a < b of operands of one type: a boolean with their lanes.
LTObj
The object behind LT.
Let
The expression body with var bound to value, of the type of body.
LetObj
The object behind Let.
Max
The larger of a and b, of one type, elementwise for vectors.
MaxObj
The object behind Max.
Min
The smaller of a and b, of one type, elementwise for vectors.
MinObj
The object behind Min.
Mod
The remainder a % b of division truncated toward zero, of operands of one type.
ModObj
The object behind Mod.
Mul
The product a * b of operands of one type, elementwise for vectors.
MulObj
The object behind Mul.
NE
The comparison a != b of operands of one type: a boolean with their lanes.
NEObj
The object behind NE.
Not
The negation !a of a boolean operand.
NotObj
The object behind Not.
Or
The disjunction a || b of boolean operands of one type.
OrObj
The object behind Or.
RShift
The right shift a >> b of integer operands of one type.
RShiftObj
The object behind RShift.
Select
The choice of true_value where condition holds and false_value elsewhere, lane by lane for a vector condition.
SelectObj
The object behind Select.
Sub
The difference a - b of operands of one type, elementwise for vectors.
SubObj
The object behind Sub.