Author: Romaric Jodin
Date: 2025-04-03T10:18:39+01:00
New Revision: 7baa7edc00c5c92e2d17bae760db2e6df97dcec6

URL: 
https://github.com/llvm/llvm-project/commit/7baa7edc00c5c92e2d17bae760db2e6df97dcec6
DIFF: 
https://github.com/llvm/llvm-project/commit/7baa7edc00c5c92e2d17bae760db2e6df97dcec6.diff

LOG: [libclc]: clspv: add a dummy implememtation for mul_hi (#134094)

clspv uses a better implementation that is not using a bigger side when
not available.
Add a dummy implementation for mul_hi to avoid to override the
implementation of clspv with the one in libclc.

Added: 
    libclc/clc/lib/clspv/integer/clc_mul_hi.cl

Modified: 
    libclc/clc/lib/clspv/SOURCES

Removed: 
    


################################################################################
diff  --git a/libclc/clc/lib/clspv/SOURCES b/libclc/clc/lib/clspv/SOURCES
index b1401f8307a4c..b91b0e70a397d 100644
--- a/libclc/clc/lib/clspv/SOURCES
+++ b/libclc/clc/lib/clspv/SOURCES
@@ -1 +1,2 @@
 math/clc_sw_fma.cl
+integer/clc_mul_hi.cl

diff  --git a/libclc/clc/lib/clspv/integer/clc_mul_hi.cl 
b/libclc/clc/lib/clspv/integer/clc_mul_hi.cl
new file mode 100644
index 0000000000000..54a51bbce4303
--- /dev/null
+++ b/libclc/clc/lib/clspv/integer/clc_mul_hi.cl
@@ -0,0 +1,5 @@
+/*
+Opt-out of libclc mul_hi implementation for clspv.
+clspv has an internal implementation that does not required using a bigger 
data size.
+That implementation is based on OpMulExtended which is SPIR-V specific, thus 
it cannot be written in OpenCL-C.
+*/


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to