aarch64.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //=== aarch64.h - Generic JITLink aarch64 edge kinds, utilities -*- 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. // Generic utilities for graphs representing aarch64 objects.
  15. //
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_EXECUTIONENGINE_JITLINK_AARCH64_H
  18. #define LLVM_EXECUTIONENGINE_JITLINK_AARCH64_H
  19. #include "llvm/ExecutionEngine/JITLink/JITLink.h"
  20. namespace llvm {
  21. namespace jitlink {
  22. namespace aarch64 {
  23. /// Represets aarch64 fixups
  24. enum EdgeKind_aarch64 : Edge::Kind {
  25. /// Set a CALL immediate field to bits [27:2] of X = Target - Fixup + Addend
  26. R_AARCH64_CALL26 = Edge::FirstRelocation,
  27. };
  28. /// Returns a string name for the given aarch64 edge. For debugging purposes
  29. /// only
  30. const char *getEdgeKindName(Edge::Kind K);
  31. } // namespace aarch64
  32. } // namespace jitlink
  33. } // namespace llvm
  34. #endif // LLVM_EXECUTIONENGINE_JITLINK_AARCH64_H
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif