[PATCH] D137309: [clang] Added Swift support for RISCV

Jessica Clarke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 10 20:50:41 PST 2023


jrtc27 added inline comments.


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:10557
 private:
+  DefaultABIInfo defaultInfo;
   // Size of the integer ('x') registers in bits.
----------------
Huh? This is unused.


================
Comment at: clang/lib/CodeGen/TargetInfo.cpp:10601
+                                    bool asReturnValue) const override {
+    return occupiesMoreThan(CGT, scalars, /*total*/ 4);
+  }
----------------
The argument's called maxAllRegisters?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137309



More information about the cfe-commits mailing list