Function tvm::div(PrimExpr, PrimExpr, Location)

Function tvm::div(PrimExpr, PrimExpr, Location)#

Function Documentation#

PrimExpr tvm::div(PrimExpr a, PrimExpr b, Location loc = UnknownLoc())#

compute division in C semantics.

a / b as in C/C++.

When operands are integers, it directly corresponds to truncdiv.

Note

this function does eager constant folding for index types(int32, int64) when possible.

Parameters:
  • a – left operand

  • b – right operand

  • loc – The location of this operation in the source.

Returns:

The result expression.