[llvm] [DirectX][DXIL] Distinguish return type for overload type resolution. (PR #85646)

Chris B via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 07:43:34 PDT 2024


================
@@ -255,6 +255,9 @@ class DXILOpMapping<int opCode, DXILOpClass opClass,
 }
 
 // Concrete definition of DXIL Operation mapping to corresponding LLVM intrinsic
+def IsInf : DXILOpMapping<9, isSpecialFloat, int_dx_isinf,
+                         "Determines if the specified value is infinite.",
+                         [llvm_i1_ty, llvm_halforfloat_ty]>;
----------------
llvm-beanz wrote:

At the DXIL level operations are basically all scalarized (see: https://godbolt.org/z/s117Yfx5q)

So the DXIL Op for `isinf` should only take and return scalar values.

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


More information about the llvm-commits mailing list