[clang] [llvm] [HLSL][DXIL][SPIRV] WavePrefixSum intrinsic support (PR #167946)
Chris B via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 19 10:54:57 PST 2025
================
@@ -276,6 +276,29 @@ llvm::Triple::ArchType CGHLSLRuntime::getArch() {
return CGM.getTarget().getTriple().getArch();
}
+llvm::Intrinsic::ID
+CGHLSLRuntime::getUnsignedIntrinsicVariant(llvm::Intrinsic::ID IID) {
----------------
llvm-beanz wrote:
Rather than having a method to map to the unsigned version of an intrinsic, it might be cleaner to have the macros define the signed and unsigned versions and just have the generated functions return the right intrinsic. That will avoid needing to inline this function in order to avoid the lookup on each generated call.
https://github.com/llvm/llvm-project/pull/167946
More information about the llvm-commits
mailing list