HLSL.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //===--- HLSL.h - HLSL ToolChain Implementations ----------------*- 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_HLSL_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H
  10. #include "clang/Driver/ToolChain.h"
  11. namespace clang {
  12. namespace driver {
  13. namespace toolchains {
  14. class LLVM_LIBRARY_VISIBILITY HLSLToolChain : public ToolChain {
  15. public:
  16. HLSLToolChain(const Driver &D, const llvm::Triple &Triple,
  17. const llvm::opt::ArgList &Args);
  18. bool isPICDefault() const override { return false; }
  19. bool isPIEDefault(const llvm::opt::ArgList &Args) const override {
  20. return false;
  21. }
  22. bool isPICDefaultForced() const override { return false; }
  23. llvm::opt::DerivedArgList *
  24. TranslateArgs(const llvm::opt::DerivedArgList &Args, StringRef BoundArch,
  25. Action::OffloadKind DeviceOffloadKind) const override;
  26. static std::optional<std::string> parseTargetProfile(StringRef TargetProfile);
  27. };
  28. } // end namespace toolchains
  29. } // end namespace driver
  30. } // end namespace clang
  31. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HLSL_H