예제 #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)
예제 #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
예제 #3
0
 def __eq__(self, other):
     return _ffi_api._OpEQ(self, other)
예제 #4
0
 def asobject(self):
     """Convert object."""
     return _ffi_api._OpEQ(self.a, self.b)
예제 #5
0
 def __eq__(self, other):
     return _ffi_api._OpEQ(self, other, None)  # type: ignore
예제 #6
0
 def asobject(self):
     """Convert object."""
     return _ffi_api._OpEQ(self.a, self.b, self.span)  # type: ignore