[clang] [CIR][AMDGPU] Adds amdgcn logb and scalebn builtins (PR #191344)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 22:25:01 PDT 2026
================
@@ -2287,7 +2311,8 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl &gd, unsigned builtinID,
// If this is an alias for a lib function (e.g. __builtin_sin), emit
// the call using the normal call path, but using the unmangled
// version of the function name.
- if (getContext().BuiltinInfo.isLibFunction(builtinID))
+ if (!shouldEmitBuiltinAsIR(builtinID, getContext().BuiltinInfo, *this) &&
----------------
andykaylor wrote:
I apologize for the delay in getting back to this. It seems my concern was unfounded. I ran the llvm-test-suite MultiSource tests with this change and saw no regressions.
https://github.com/llvm/llvm-project/pull/191344
More information about the cfe-commits
mailing list