[flang-commits] [flang] [Flang] LoongArch64 support for BIND(C) derived types. (PR #117108)

Zhaoxin Yang via flang-commits flang-commits at lists.llvm.org
Mon Nov 25 00:52:24 PST 2024


================
@@ -1081,6 +1081,9 @@ struct TargetLoongArch64 : public GenericTarget<TargetLoongArch64> {
   using GenericTarget::GenericTarget;
 
   static constexpr int defaultWidth = 64;
+  static constexpr int GRLen = defaultWidth; /* eight bytes */
----------------
ylzsx wrote:

Thanks for your review. This patch only implements `mabi=lp64d` in LoongArch64, and does not currently support others,  though they may be supported in the future. To make it more explicit, I will modify this patch to report an error when other ABIs or conflicting options are detected.

https://github.com/llvm/llvm-project/pull/117108


More information about the flang-commits mailing list