xref: /freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
10b57cec5SDimitry Andric //===--- X86.h - X86-specific Tool Helpers ----------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
90b57cec5SDimitry Andric #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
100b57cec5SDimitry Andric #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric #include "clang/Driver/Driver.h"
130b57cec5SDimitry Andric #include "llvm/ADT/StringRef.h"
140b57cec5SDimitry Andric #include "llvm/Option/Option.h"
15*06c3fb27SDimitry Andric #include "llvm/TargetParser/Triple.h"
160b57cec5SDimitry Andric #include <string>
170b57cec5SDimitry Andric #include <vector>
180b57cec5SDimitry Andric 
190b57cec5SDimitry Andric namespace clang {
200b57cec5SDimitry Andric namespace driver {
210b57cec5SDimitry Andric namespace tools {
220b57cec5SDimitry Andric namespace x86 {
230b57cec5SDimitry Andric 
24349cc55cSDimitry Andric std::string getX86TargetCPU(const Driver &D, const llvm::opt::ArgList &Args,
250b57cec5SDimitry Andric                             const llvm::Triple &Triple);
260b57cec5SDimitry Andric 
270b57cec5SDimitry Andric void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
280b57cec5SDimitry Andric                           const llvm::opt::ArgList &Args,
290b57cec5SDimitry Andric                           std::vector<llvm::StringRef> &Features);
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric } // end namespace x86
320b57cec5SDimitry Andric } // end namespace target
330b57cec5SDimitry Andric } // end namespace driver
340b57cec5SDimitry Andric } // end namespace clang
350b57cec5SDimitry Andric 
360b57cec5SDimitry Andric #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
37