xref: /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.h (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1 //===--- X86.h - X86-specific Tool Helpers ----------------------*- 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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
11 
12 #include "clang/Driver/Driver.h"
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Option/Option.h"
15 #include "llvm/TargetParser/Triple.h"
16 #include <string>
17 #include <vector>
18 
19 namespace clang {
20 namespace driver {
21 namespace tools {
22 namespace x86 {
23 
24 std::string getX86TargetCPU(const Driver &D, const llvm::opt::ArgList &Args,
25                             const llvm::Triple &Triple);
26 
27 void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
28                           const llvm::opt::ArgList &Args,
29                           std::vector<llvm::StringRef> &Features);
30 
31 } // end namespace x86
32 } // end namespace target
33 } // end namespace driver
34 } // end namespace clang
35 
36 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
37