[DFAJumpThreading] Remove incoming StartBlock from all phis when unfolding select...
[llvm-project.git] / clang / lib / Driver / ToolChains / CrossWindows.h
blobc5df55a24296fa7fad114a9f27d4129c60ec07bf
1 //===--- CrossWindows.h - CrossWindows ToolChain Implementation -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CROSSWINDOWS_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CROSSWINDOWS_H
12 #include "Cuda.h"
13 #include "Gnu.h"
14 #include "clang/Basic/LangOptions.h"
15 #include "clang/Driver/Tool.h"
16 #include "clang/Driver/ToolChain.h"
18 namespace clang {
19 namespace driver {
20 namespace tools {
22 namespace CrossWindows {
23 class LLVM_LIBRARY_VISIBILITY Assembler final : public Tool {
24 public:
25 Assembler(const ToolChain &TC) : Tool("CrossWindows::Assembler", "as", TC) {}
27 bool hasIntegratedCPP() const override { return false; }
29 void ConstructJob(Compilation &C, const JobAction &JA,
30 const InputInfo &Output, const InputInfoList &Inputs,
31 const llvm::opt::ArgList &TCArgs,
32 const char *LinkingOutput) const override;
35 class LLVM_LIBRARY_VISIBILITY Linker final : public Tool {
36 public:
37 Linker(const ToolChain &TC) : Tool("CrossWindows::Linker", "ld", TC) {}
39 bool hasIntegratedCPP() const override { return false; }
40 bool isLinkJob() const override { return true; }
42 void ConstructJob(Compilation &C, const JobAction &JA,
43 const InputInfo &Output, const InputInfoList &Inputs,
44 const llvm::opt::ArgList &TCArgs,
45 const char *LinkingOutput) const override;
47 } // end namespace CrossWindows
48 } // end namespace tools
50 namespace toolchains {
52 class LLVM_LIBRARY_VISIBILITY CrossWindowsToolChain : public Generic_GCC {
53 public:
54 CrossWindowsToolChain(const Driver &D, const llvm::Triple &T,
55 const llvm::opt::ArgList &Args);
57 UnwindTableLevel
58 getDefaultUnwindTableLevel(const llvm::opt::ArgList &Args) const override;
59 bool isPICDefault() const override;
60 bool isPIEDefault(const llvm::opt::ArgList &Args) const override;
61 bool isPICDefaultForced() const override;
63 LangOptions::StackProtectorMode
64 GetDefaultStackProtectorLevel(bool KernelOrKext) const override {
65 return LangOptions::SSPOff;
68 void
69 AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
70 llvm::opt::ArgStringList &CC1Args) const override;
71 void AddClangCXXStdlibIncludeArgs(
72 const llvm::opt::ArgList &DriverArgs,
73 llvm::opt::ArgStringList &CC1Args) const override;
74 void AddCXXStdlibLibArgs(const llvm::opt::ArgList &Args,
75 llvm::opt::ArgStringList &CmdArgs) const override;
77 SanitizerMask getSupportedSanitizers() const override;
79 protected:
80 Tool *buildLinker() const override;
81 Tool *buildAssembler() const override;
84 } // end namespace toolchains
85 } // end namespace driver
86 } // end namespace clang
88 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_CROSSWINDOWS_H