Skip to content

Commit 67ea7a1

Browse files
rorthtru
authored andcommitted
[flang] Add Solaris/x86 support to Optimizer/CodeGen/Target.cpp
When testing LLVM 15.0.0 rc1 on Solaris, I found that 50+ flang tests `FAIL`ed with error: /vol/llvm/src/llvm-project/local/flang/lib/Optimizer/CodeGen/Target.cpp:310: not yet implemented: target not implemented This patch fixes that for Solaris/x86, where the fix is trivial (just handling it like the other x86 OSes). Tested on `amd64-pc-solaris2.11`; only a single failure remains now. Differential Revision: https://reviews.llvm.org/D131054 (cherry picked from commit bcb2740)
1 parent af3707c commit 67ea7a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flang/lib/Optimizer/CodeGen/Target.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ fir::CodeGenSpecifics::get(mlir::MLIRContext *ctx, llvm::Triple &&trp,
268268
case llvm::Triple::OSType::Linux:
269269
case llvm::Triple::OSType::Darwin:
270270
case llvm::Triple::OSType::MacOSX:
271+
case llvm::Triple::OSType::Solaris:
271272
case llvm::Triple::OSType::Win32:
272273
return std::make_unique<TargetI386>(ctx, std::move(trp),
273274
std::move(kindMap));
@@ -280,6 +281,7 @@ fir::CodeGenSpecifics::get(mlir::MLIRContext *ctx, llvm::Triple &&trp,
280281
case llvm::Triple::OSType::Linux:
281282
case llvm::Triple::OSType::Darwin:
282283
case llvm::Triple::OSType::MacOSX:
284+
case llvm::Triple::OSType::Solaris:
283285
case llvm::Triple::OSType::Win32:
284286
return std::make_unique<TargetX86_64>(ctx, std::move(trp),
285287
std::move(kindMap));

0 commit comments

Comments
 (0)