choikwa wrote: Updated and addressed feedback except the triplet check. At the moment, I'm unsure if there is better way than to query using llvm::isLibFuncEmittable, but that requires TLI. https://github.com/llvm/llvm-project/pull/129347