OMPDeviceConstants.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- OMPDeviceConstants.h - OpenMP device related constants ----- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. /// \file
  14. ///
  15. /// This file defines constans that will be used by both host and device
  16. /// compilation.
  17. ///
  18. //===----------------------------------------------------------------------===//
  19. #ifndef LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H
  20. #define LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H
  21. namespace llvm {
  22. namespace omp {
  23. enum OMPTgtExecModeFlags : unsigned char {
  24. OMP_TGT_EXEC_MODE_GENERIC = 1 << 0,
  25. OMP_TGT_EXEC_MODE_SPMD = 1 << 1,
  26. OMP_TGT_EXEC_MODE_GENERIC_SPMD =
  27. OMP_TGT_EXEC_MODE_GENERIC | OMP_TGT_EXEC_MODE_SPMD
  28. };
  29. } // end namespace omp
  30. } // end namespace llvm
  31. #endif // LLVM_FRONTEND_OPENMP_OMPDEVICECONSTANTS_H
  32. #ifdef __GNUC__
  33. #pragma GCC diagnostic pop
  34. #endif