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