[flang-commits] [PATCH] D133554: [flang] Add *BSD support to Optimizer/CodeGen/Target.cpp

Brad Smith via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Oct 3 11:37:37 PDT 2022


brad updated this revision to Diff 464750.

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D133554

Files:
  flang/lib/Optimizer/CodeGen/Target.cpp


Index: flang/lib/Optimizer/CodeGen/Target.cpp
===================================================================
--- flang/lib/Optimizer/CodeGen/Target.cpp
+++ flang/lib/Optimizer/CodeGen/Target.cpp
@@ -349,6 +349,10 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    case llvm::Triple::OSType::DragonFly:
+    case llvm::Triple::OSType::FreeBSD:
+    case llvm::Triple::OSType::NetBSD:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Solaris:
     case llvm::Triple::OSType::Win32:
       return std::make_unique<TargetI386>(ctx, std::move(trp),
@@ -362,6 +366,10 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    case llvm::Triple::OSType::DragonFly:
+    case llvm::Triple::OSType::FreeBSD:
+    case llvm::Triple::OSType::NetBSD:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Solaris:
     case llvm::Triple::OSType::Win32:
       return std::make_unique<TargetX86_64>(ctx, std::move(trp),
@@ -375,6 +383,9 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    case llvm::Triple::OSType::FreeBSD:
+    case llvm::Triple::OSType::NetBSD:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Win32:
       return std::make_unique<TargetAArch64>(ctx, std::move(trp),
                                              std::move(kindMap));
@@ -385,6 +396,7 @@
     default:
       break;
     case llvm::Triple::OSType::Linux:
+    case llvm::Triple::OSType::FreeBSD:
       return std::make_unique<TargetPPC64le>(ctx, std::move(trp),
                                              std::move(kindMap));
     }
@@ -394,6 +406,7 @@
     default:
       break;
     case llvm::Triple::OSType::Linux:
+    case llvm::Triple::OSType::NetBSD:
     case llvm::Triple::OSType::Solaris:
       return std::make_unique<TargetSparc>(ctx, std::move(trp),
                                            std::move(kindMap));
@@ -404,6 +417,8 @@
     default:
       break;
     case llvm::Triple::OSType::Linux:
+    case llvm::Triple::OSType::NetBSD:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Solaris:
       return std::make_unique<TargetSparcV9>(ctx, std::move(trp),
                                              std::move(kindMap));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133554.464750.patch
Type: text/x-patch
Size: 2444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221003/b6c59ff8/attachment.bin>


More information about the flang-commits mailing list