tkonolige commented on pull request #10562: URL: https://github.com/apache/tvm/pull/10562#issuecomment-1064496488
I'd prefer for this not to be a builtin. Builtins are for low-level operations like arithmetic. Like Masa, I'd prefer if we use the TIR definition so that we can use this operation on all platforms. It also avoids adding another piece of codegen for new backends/BYOC. Ideally we'd have some sort of metaprogramming/function call ability in TIR that you could use here. But right now, I think `call_extern` is the best bet. If we do decide to add searchsorted as a builtin, I think it is a big enough change that it should go through the RFC process. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
