[PATCH] D147911: [5/11][POC][Clang][RISCV] Define tuple type variant of vlseg2e32ff

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 18 16:46:45 PDT 2023


craig.topper added inline comments.


================
Comment at: clang/include/clang/Basic/riscv_vector.td:1852
+      llvm::Value *PtrOperand = IsMasked ? Ops[1] : Ops[0];
+      unsigned NewVLOperandIdx = IsMasked ? 2 : 1;
+      llvm::Value *NewVLOperand = IsMasked ? Ops[2] : Ops[1];
----------------
unsigned Offset = IsMasked ? 1 : 0;
llvm::Value *MaskOperand = IsMasked ? Ops[0] : nullptr;
llvm::Value *PtrOperand = Ops[Offset];
unsigned NewVLOperandIdx = Offset + 1;
llvm::Value *NewVLOperand = Ops[Offset + 1];
...



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147911/new/

https://reviews.llvm.org/D147911



More information about the cfe-commits mailing list