[llvm] [NVPTX] Add float to tf32 conversion intrinsic (PR #121507)
Durgadoss R via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 11:20:59 PST 2025
================
@@ -728,7 +728,53 @@ bool NVPTXDAGToDAGISel::tryIntrinsicNoChain(SDNode *N) {
case Intrinsic::nvvm_texsurf_handle_internal:
SelectTexSurfHandle(N);
return true;
+ case Intrinsic::nvvm_cvt_float_to_tf32:
+ SelectCvtFloatToTF32(N);
+ return true;
+ }
+}
+
+void NVPTXDAGToDAGISel::SelectCvtFloatToTF32(SDNode *N) {
----------------
durga4github wrote:
That's where I started but had to move to explicit selection due to corner cases in error handling.
(like all rounding modes are not supported, not all combinations of rounding/sat modes are valid etc.).
https://github.com/llvm/llvm-project/pull/121507
More information about the llvm-commits
mailing list