X86.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H
  10. #include "clang/Driver/Driver.h"
  11. #include "llvm/ADT/StringRef.h"
  12. #include "llvm/ADT/Triple.h"
  13. #include "llvm/Option/Option.h"
  14. #include <string>
  15. #include <vector>
  16. namespace clang {
  17. namespace driver {
  18. namespace tools {
  19. namespace x86 {
  20. std::string getX86TargetCPU(const Driver &D, const llvm::opt::ArgList &Args,
  21. const llvm::Triple &Triple);
  22. void getX86TargetFeatures(const Driver &D, const llvm::Triple &Triple,
  23. const llvm::opt::ArgList &Args,
  24. std::vector<llvm::StringRef> &Features);
  25. } // end namespace x86
  26. } // end namespace target
  27. } // end namespace driver
  28. } // end namespace clang
  29. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_ARCH_X86_H