aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/ToolChains/Arch/M88k.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Driver/ToolChains/Arch/M88k.h')
-rw-r--r--clang/lib/Driver/ToolChains/Arch/M88k.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Arch/M88k.h b/clang/lib/Driver/ToolChains/Arch/M88k.h
new file mode 100644
index 0000000..05c67fa
--- /dev/null
+++ b/clang/lib/Driver/ToolChains/Arch/M88k.h
@@ -0,0 +1,42 @@
+//===--- M88k.h - M88k-specific Tool Helpers ------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_M88K_H
+#define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_M88K_H
+
+#include "clang/Driver/Driver.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Option/Option.h"
+#include <string>
+#include <vector>
+
+namespace clang {
+namespace driver {
+namespace tools {
+namespace m88k {
+
+enum class FloatABI {
+ Invalid,
+ Soft,
+ Hard,
+};
+
+FloatABI getM88kFloatABI(const Driver &D, const llvm::opt::ArgList &Args);
+
+std::string getM88kTargetCPU(const llvm::opt::ArgList &Args);
+
+void getM88kTargetFeatures(const Driver &D, const llvm::Triple &Triple,
+ const llvm::opt::ArgList &Args,
+ std::vector<llvm::StringRef> &Features);
+
+} // end namespace m88k
+} // end namespace tools
+} // end namespace driver
+} // end namespace clang
+
+#endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_M88K_H