[llvm] [VP][RISCV] Add a vp.load.ff intrinsic for fault only first load. (PR #128593)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 6 14:45:48 PST 2025


================
@@ -2232,6 +2235,53 @@ void DAGTypeLegalizer::SplitVecRes_VP_LOAD(VPLoadSDNode *LD, SDValue &Lo,
   ReplaceValueWith(SDValue(LD, 1), Ch);
 }
 
+void DAGTypeLegalizer::SplitVecRes_VP_LOAD_FF(VPLoadFFSDNode *LD, SDValue &Lo,
+                                              SDValue &Hi) {
+  EVT LoVT, HiVT;
+  SDLoc dl(LD);
+  std::tie(LoVT, HiVT) = DAG.GetSplitDestVTs(LD->getValueType(0));
----------------
mshockwave wrote:

maybe `auto [LoVT, HiVT] = ...`?

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


More information about the llvm-commits mailing list