[all-commits] [llvm/llvm-project] 01a920: [CIR] Add emitBuiltinWithOneOverloadedType helper ...
Chaitanya via All-commits
all-commits at lists.llvm.org
Thu May 28 20:40:19 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01a92098491a9d94f84149b92a5a522b1725668b
https://github.com/llvm/llvm-project/commit/01a92098491a9d94f84149b92a5a522b1725668b
Author: Chaitanya <Krishna.Sankisa at amd.com>
Date: 2026-05-29 (Fri, 29 May 2026)
Changed paths:
M clang/lib/CIR/CodeGen/CIRGenBuiltinAMDGPU.cpp
M clang/lib/CIR/CodeGen/CIRGenFunction.h
Log Message:
-----------
[CIR] Add emitBuiltinWithOneOverloadedType helper (#199518)
Port `emitBuiltinWithOneOverloadedType<N>` from classic
CodeGen(`CGBuiltin.h`) to `CIRGenFunction` so the common pattern "emit N
scalar operands and call an LLVM intrinsic whose return type matches the
first operand" can be written as a one-liner across all targets.
Used it to simplify a few existing AMDGPU builtin lowerings (`div_fmas`,
`ds_swizzle`, `readlane`, `readfirstlane`).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list