[llvm] [RISCV] Codegen support for XCVmem extension (PR #76916)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 3 23:49:37 PST 2024
================
@@ -1417,6 +1417,67 @@ void RISCVDAGToDAGISel::Select(SDNode *Node) {
case ISD::LOAD: {
if (tryIndexedLoad(Node))
return;
+
+ if (Subtarget->hasVendorXCVmem()) {
+ // We hase to match post-incrementing load here
+ LoadSDNode *Load = cast<LoadSDNode>(Node);
+ if (Load->getAddressingMode() != ISD::POST_INC)
+ break;
+
+ SDValue Chain = Node->getOperand(0);
+ SDValue Base = Node->getOperand(1);
+ SDValue Offset = Node->getOperand(2);
+
+ bool simm12 = false;
----------------
topperc wrote:
Capitalize variable names
https://github.com/llvm/llvm-project/pull/76916
More information about the llvm-commits
mailing list