[flang-commits] [flang] [flang] Add struct passing target rewrite hooks and partial X86-64 impl (PR #74829)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Fri Dec 8 16:05:27 PST 2023


================
@@ -318,6 +382,251 @@ struct TargetX86_64 : public GenericTarget<TargetX86_64> {
     }
     return marshal;
   }
+
+  /// X86-64 argument classes from System V ABI version 1.0 section 3.2.3.
+  enum ArgClass {
+    Integer = 0,
+    SSE,
+    SSEUp,
+    X87,
+    X87Up,
+    ComplexX87,
+    NoClass,
+    Memory
+  };
+
+  /// Classify an argument type or a field of an aggregate type argument.
+  /// See ystem V ABI version 1.0 section 3.2.3.
----------------
vzakhari wrote:

typo:
```suggestion
  /// See System V ABI version 1.0 section 3.2.3.
```

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


More information about the flang-commits mailing list