[PATCH] D119332: [flang] Add Win32 to the list of supported triples
Andrzej Warzynski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 16 13:47:33 PST 2022
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb389fbd01595: [flang] Add Win32 to the list of supported triples (authored by awarzynski).
Changed prior to commit:
https://reviews.llvm.org/D119332?vs=407451&id=409399#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119332/new/
https://reviews.llvm.org/D119332
Files:
flang/lib/Optimizer/CodeGen/Target.cpp
flang/test/Fir/basic-program.fir
Index: flang/test/Fir/basic-program.fir
===================================================================
--- flang/test/Fir/basic-program.fir
+++ flang/test/Fir/basic-program.fir
@@ -1,4 +1,4 @@
-// RUN: tco --target=x86_64-unknown-linux-gnu %s | FileCheck %s
+// RUN: tco %s | FileCheck %s
// Check that tco is working with a basic test.
Index: flang/lib/Optimizer/CodeGen/Target.cpp
===================================================================
--- flang/lib/Optimizer/CodeGen/Target.cpp
+++ flang/lib/Optimizer/CodeGen/Target.cpp
@@ -238,9 +238,7 @@
} // namespace
// Instantiate the overloaded target instance based on the triple value.
-// Currently, the implementation only instantiates `i386-unknown-linux-gnu`,
-// `x86_64-unknown-linux-gnu`, aarch64 and ppc64le like triples. Other targets
-// should be added to this file as needed.
+// TODO: Add other targets to this file as needed.
std::unique_ptr<fir::CodeGenSpecifics>
fir::CodeGenSpecifics::get(mlir::MLIRContext *ctx, llvm::Triple &&trp,
KindMapping &&kindMap) {
@@ -253,6 +251,7 @@
break;
case llvm::Triple::OSType::Linux:
case llvm::Triple::OSType::Darwin:
+ case llvm::Triple::OSType::Win32:
return std::make_unique<TargetI386>(ctx, std::move(trp),
std::move(kindMap));
}
@@ -263,6 +262,7 @@
break;
case llvm::Triple::OSType::Linux:
case llvm::Triple::OSType::Darwin:
+ case llvm::Triple::OSType::Win32:
return std::make_unique<TargetX86_64>(ctx, std::move(trp),
std::move(kindMap));
}
@@ -273,6 +273,7 @@
break;
case llvm::Triple::OSType::Linux:
case llvm::Triple::OSType::Darwin:
+ 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: D119332.409399.patch
Type: text/x-patch
Size: 1949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220216/82281962/attachment.bin>
More information about the llvm-commits
mailing list