[PATCH] D100448: [RISCV][Clang] Add RVV AMO builtins

Zakk Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 16 07:31:18 PDT 2021


khchen added inline comments.


================
Comment at: clang/include/clang/Basic/riscv_vector.td:749
+  foreach type = type_list in
+    foreach eew_list = [["8", "(Log2EEW:3)"], ["16", "(Log2EEW:4)"],
+                        ["32", "(Log2EEW:5)"], ["64", "(Log2EEW:6)"]] in {
----------------
`foreach eew_list = EEWList in {`


================
Comment at: clang/include/clang/Basic/riscv_vector.td:766
+            Ops[0] = Builder.CreateBitCast(Ops[0],
+              llvm::PointerType::getUnqual(ResultType));
+          }] in {
----------------
`ResultType->getPointerTo()`


================
Comment at: clang/include/clang/Basic/riscv_vector.td:770
+          def : RVVBuiltin<"v", "vPe" # eew_index # "Uvv", type>;
+        if !and(!ne(type, "f"), !ne(type, "d"), has_unsigned) then
+          def : RVVBuiltin<"Uv", "UvPUe" # eew_index # "UvUv", type>;
----------------
`if !and(!not(IsFloat<type>.val), has_unsigned) then`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100448



More information about the cfe-commits mailing list