Ejemplo n.º 1
0
    def equal(self, other):
        """Build an equal check expression with other expr.

        Parameters
        ----------
        other : PrimExpr
            The other expression

        Returns
        -------
        ret : PrimExpr
            The equality expression.
        """
        return _ffi_api._OpEQ(self, other)
Ejemplo n.º 2
0
    def equal(self, other, span=None):
        """Build an equal check expression with other expr.

        Parameters
        ----------
        other : PrimExpr
            The other expression

        span : Optional[Span]
            The location of the cast in the source.

        Returns
        -------
        ret : PrimExpr
            The equality expression.
        """
        return _ffi_api._OpEQ(self, other, span)  # type: ignore
Ejemplo n.º 3
0
 def __eq__(self, other):
     return _ffi_api._OpEQ(self, other)
Ejemplo n.º 4
0
 def asobject(self):
     """Convert object."""
     return _ffi_api._OpEQ(self.a, self.b)
Ejemplo n.º 5
0
 def __eq__(self, other):
     return _ffi_api._OpEQ(self, other, None)  # type: ignore
Ejemplo n.º 6
0
 def asobject(self):
     """Convert object."""
     return _ffi_api._OpEQ(self.a, self.b, self.span)  # type: ignore