Closed hieuhv94 closed 1 year ago
You can create a C function that implements XOR and call it from Tiramisu code. You can call any C function from Tiramisu.
You can use the o_call operator to see how to call a function.
You can use the o_call operator to see how to call a function.
Great! Thank u so much
How to implement XOR operator of a expression? Now, just the below operations is supported `enum op_t { // Unary operators // The argument of the following operators is a tiramisu::expr. o_minus, o_floor, o_sin, o_cos, o_tan, o_asin, o_acos, o_atan, o_sinh, o_cosh, o_tanh, o_asinh, o_acosh, o_atanh, o_abs, o_sqrt, o_expo, // exponential o_log, o_ceil, o_round, o_trunc, // The argument of the following operators is a string representing // the name of the buffer to allocate. o_allocate, o_free, // Other arguments o_cast, // The argument is an expression and a type. o_address, // The argument is a tiramisu::var() that represents a buffer.
};`