OrcRTBootstrap.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //===----------------------- OrcRTBootstrap.h -------------------*- 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. //
  9. // OrcRTPrelinkImpl provides functions that should be linked into the executor
  10. // to bootstrap common JIT functionality (e.g. memory allocation and memory
  11. // access).
  12. //
  13. // Call rt_impl::addTo to add these functions to a bootstrap symbols map.
  14. //
  15. // FIXME: The functionality in this file should probably be moved to an ORC
  16. // runtime bootstrap library in compiler-rt.
  17. //
  18. //===----------------------------------------------------------------------===//
  19. #ifndef LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
  20. #define LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H
  21. #include "llvm/ADT/StringMap.h"
  22. #include "llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h"
  23. namespace llvm {
  24. namespace orc {
  25. namespace rt_bootstrap {
  26. void addTo(StringMap<ExecutorAddr> &M);
  27. } // namespace rt_bootstrap
  28. } // end namespace orc
  29. } // end namespace llvm
  30. #endif // LIB_EXECUTIONENGINE_ORC_TARGETPROCESS_ORCRTBOOTSTRAP_H