SPIR.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //===--- SPIR.cpp - Implement SPIR target feature support -----------------===//
  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. // This file implements SPIR TargetInfo objects.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #include "SPIR.h"
  13. #include "Targets.h"
  14. using namespace clang;
  15. using namespace clang::targets;
  16. void SPIRTargetInfo::getTargetDefines(const LangOptions &Opts,
  17. MacroBuilder &Builder) const {
  18. DefineStd(Builder, "SPIR", Opts);
  19. }
  20. void SPIR32TargetInfo::getTargetDefines(const LangOptions &Opts,
  21. MacroBuilder &Builder) const {
  22. DefineStd(Builder, "SPIR32", Opts);
  23. }
  24. void SPIR64TargetInfo::getTargetDefines(const LangOptions &Opts,
  25. MacroBuilder &Builder) const {
  26. DefineStd(Builder, "SPIR64", Opts);
  27. }