[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
Mon Mar 14 04:14:14 PDT 2022
jeanPerier created this revision.
jeanPerier added a reviewer: klausler.
jeanPerier added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
jeanPerier requested review of this revision.
Type codes for COMPLEX kinds 2, 3, and 10 were added in https://reviews.llvm.org/D117336
but handling for these kinds in TypeCode(cat, kind) has not been added
yet.
Repository:
rG LLVM Github Monorepo
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.415053.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220314/44554a7a/attachment.bin>
More information about the flang-commits
mailing list