[llvm] [AMDGPU] Add half vector support for table-driven libcall optimzation (PR #178638)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 29 05:00:08 PST 2026


================
@@ -743,6 +743,38 @@ bool AMDGPULibCalls::fold(CallInst *CI) {
   return false;
 }
 
+static Constant *
+_Z4coshdgetConstantFloatVectorForArgType(LLVMContext &Ctx,
+                                         AMDGPULibFunc::EType ArgType,
+                                         ArrayRef<double> Values, Type *Ty) {
+  switch (ArgType) {
+  case AMDGPULibFunc::F16: {
+    SmallVector<uint16_t, 0> HalfIntValues;
----------------
arsenm wrote:

Not 0 sized

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


More information about the llvm-commits mailing list