[clang] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

Priyanshu Kumar via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 27 03:22:27 PST 2025


Priyanshu3820 wrote:

> Yes, exactly. AFAICT you're implementing functionality which will be removed. More generally, you might want to check whether any builtins generate platform-specific IR instructions. If no, there is (or should) probably be a generic version, which the x86 builtins can use instead. That way, instead of adding code, you might actually remove code to implement new features.
Thanks, that's what I wanted to clarify. That also means i'll have to have a new implementation targeting __builtin_elementwise_sqrt instead. 
> I expect it will land within the next few days.
glad to hear that, all the best.



https://github.com/llvm/llvm-project/pull/169310


More information about the cfe-commits mailing list