ExecutorBootstrapService.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- ExecutorService.h - Provide bootstrap symbols to session -*- 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. //
  14. // Provides a service by supplying some set of bootstrap symbols.
  15. //
  16. // FIXME: The functionality in this file should be moved to the ORC runtime.
  17. //
  18. //===----------------------------------------------------------------------===//
  19. #ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H
  20. #define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H
  21. #include "llvm/ADT/StringMap.h"
  22. #include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"
  23. namespace llvm {
  24. namespace orc {
  25. class ExecutorBootstrapService {
  26. public:
  27. virtual ~ExecutorBootstrapService();
  28. virtual void
  29. addBootstrapSymbols(StringMap<ExecutorAddr> &BootstrapSymbols) = 0;
  30. virtual Error shutdown() = 0;
  31. };
  32. } // end namespace orc
  33. } // end namespace llvm
  34. #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_EXECUTORBOOTSTRAPSERVICE_H
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif