[flang-commits] [PATCH] D121587: [flang] Hanlde COMPLEX 2/3/10 in runtime TypeCode(cat, kind)

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Mar 15 01:31:09 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa69cb782423b: [flang] Hanlde COMPLEX 2/3/10 in runtime TypeCode(cat, kind) (authored by jeanPerier).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D121587

Files:
  flang/runtime/type-code.cpp


Index: flang/runtime/type-code.cpp
===================================================================
--- flang/runtime/type-code.cpp
+++ flang/runtime/type-code.cpp
@@ -55,6 +55,12 @@
     break;
   case TypeCategory::Complex:
     switch (kind) {
+    case 2:
+      raw_ = CFI_type_half_float_Complex;
+      break;
+    case 3:
+      raw_ = CFI_type_bfloat_Complex;
+      break;
     case 4:
       raw_ = CFI_type_float_Complex;
       break;
@@ -62,6 +68,8 @@
       raw_ = CFI_type_double_Complex;
       break;
     case 10:
+      raw_ = CFI_type_extended_double_Complex;
+      break;
     case 16:
       raw_ = CFI_type_long_double_Complex;
       break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121587.415354.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220315/efb1650a/attachment.bin>


More information about the flang-commits mailing list