[PATCH] D94589: [RISCV] Add intrinsics for vector AMO instructions

ShihPo Hung via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 16 04:49:55 PST 2021


arcbbb marked 2 inline comments as done.
arcbbb added inline comments.


================
Comment at: llvm/include/llvm/IR/IntrinsicsRISCV.td:476
+        : Intrinsic<[llvm_anyvector_ty],
+                    [LLVMPointerType<LLVMMatchType<0>>, llvm_anyvector_ty, llvm_anyvector_ty,
+                     llvm_anyint_ty],
----------------
craig.topper wrote:
> Is the value the same type as the result? Can we use LLVMMatchType<0> for it?
yes, thanks!


================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:107
+}
+
 // Output pattern for X0 used to represent VLMAX in the pseudo instructions.
----------------
khchen wrote:
> vlxe and vlse have the same logic and I think they can reuse above utility functions, right?
> Do you have a plan to update them (vlxe and vlse) and make the same logic with consistent implementation?  maybe it could be in another patch.
sure!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94589



More information about the llvm-commits mailing list