LLVM 23.0.0git
hexagon.cpp
Go to the documentation of this file.
1//===-------- hexagon.cpp - JITLink hexagon support --------===//
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// Hexagon edge kind names.
10//
11//===----------------------------------------------------------------------===//
12
14
15#define DEBUG_TYPE "jitlink"
16
17namespace llvm::jitlink::hexagon {
18
19const char *getEdgeKindName(Edge::Kind K) {
20 switch (K) {
21 case Pointer32:
22 return "Pointer32";
23 case PCRel32:
24 return "PCRel32";
25 case B22_PCREL:
26 return "B22_PCREL";
27 case B15_PCREL:
28 return "B15_PCREL";
29 case B13_PCREL:
30 return "B13_PCREL";
31 case B9_PCREL:
32 return "B9_PCREL";
33 case B7_PCREL:
34 return "B7_PCREL";
35 case HI16:
36 return "HI16";
37 case LO16:
38 return "LO16";
39 case Word32_6_X:
40 return "Word32_6_X";
41 case B32_PCREL_X:
42 return "B32_PCREL_X";
43 case B22_PCREL_X:
44 return "B22_PCREL_X";
45 case B15_PCREL_X:
46 return "B15_PCREL_X";
47 case B13_PCREL_X:
48 return "B13_PCREL_X";
49 case B9_PCREL_X:
50 return "B9_PCREL_X";
51 case B7_PCREL_X:
52 return "B7_PCREL_X";
53 case Word6_X:
54 return "Word6_X";
55 case Word6_PCREL_X:
56 return "Word6_PCREL_X";
57 case Word8_X:
58 return "Word8_X";
59 case Word9_X:
60 return "Word9_X";
61 case Word10_X:
62 return "Word10_X";
63 case Word11_X:
64 return "Word11_X";
65 case Word12_X:
66 return "Word12_X";
67 case Word16_X:
68 return "Word16_X";
69 default:
70 return getGenericEdgeKindName(K);
71 }
72}
73
74} // namespace llvm::jitlink::hexagon