[clang] [llvm] [HLSL][DXIL][SPIRV] WavePrefixSum intrinsic support (PR #167946)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 20 05:29:44 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) {
----------------
kcloudy0717 wrote:

Alright, I'll revert the changes I made and use the same approach as `getWaveActiveSumIntrinsic` static function in `CGHLSLBuiltins.cpp` for now. The refactor will be made in another NFC PR but it might not be needed given the feedback from @farzonl below.

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


More information about the llvm-commits mailing list