[llvm] [RISCV] Implement EmitTargetCodeForMemset for Xqcilsm (PR #151555)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 1 08:46:12 PDT 2025
================
@@ -1845,6 +1845,15 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
CurDAG->RemoveDeadNode(Node);
return;
}
+ case RISCVISD::QC_SETWMI: {
+ SDValue Chain = Node->getOperand(0);
+ SDVTList VTs = Node->getVTList();
+ SDValue Ops[] = {Node->getOperand(1), Node->getOperand(2),
+ Node->getOperand(3), Node->getOperand(4), Chain};
+ MachineSDNode *New = CurDAG->getMachineNode(RISCV::QC_SETWMI, DL, VTs, Ops);
+ ReplaceNode(Node, New);
----------------
topperc wrote:
Not sure if its the only problem, but `uimm5nonzero` and `uimm7_lsb00` are ImmLeaf, but your operands are TargetConstant so you need TImmLeaf.
https://github.com/llvm/llvm-project/pull/151555
More information about the llvm-commits
mailing list