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

Brad Smith via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Sep 9 00:57:40 PDT 2022


brad created this revision.
brad added reviewers: rovka, schweitz.
brad added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert, pengfei, kristof.beyls, krytarowski.
Herald added a project: All.
brad requested review of this revision.

Add OpenBSD to the aarch64 / x86 and x86_64 targets.

Fixes 53 tests.


Repository:
  rG LLVM Github Monorepo

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
@@ -268,6 +268,7 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Solaris:
     case llvm::Triple::OSType::Win32:
       return std::make_unique<TargetI386>(ctx, std::move(trp),
@@ -281,6 +282,7 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    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),
@@ -294,6 +296,7 @@
     case llvm::Triple::OSType::Linux:
     case llvm::Triple::OSType::Darwin:
     case llvm::Triple::OSType::MacOSX:
+    case llvm::Triple::OSType::OpenBSD:
     case llvm::Triple::OSType::Win32:
       return std::make_unique<TargetAArch64>(ctx, std::move(trp),
                                              std::move(kindMap));


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133554.458974.patch
Type: text/x-patch
Size: 1203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220909/fd283e04/attachment-0001.bin>


More information about the flang-commits mailing list