aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCFixupKinds.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-15 05:57:53 +0000
committerChris Lattner <sabre@nondot.org>2010-11-15 05:57:53 +0000
commita9d9ab9673ec73817f3059ea430f1930a5b14948 (patch)
tree7f6d1d9e28dfc30a89d16120253b5dbbaf63c752 /lib/Target/PowerPC/PPCFixupKinds.h
parent3170a3bc04deadfc0a4de5ff3cba7680be548f29 (diff)
downloadexternal_llvm-a9d9ab9673ec73817f3059ea430f1930a5b14948.tar.gz
external_llvm-a9d9ab9673ec73817f3059ea430f1930a5b14948.tar.bz2
external_llvm-a9d9ab9673ec73817f3059ea430f1930a5b14948.zip
split call operands out to their own encoding class, simplifying
code in the JIT. Use this to form the first fixup for the PPC backend, giving us stuff like this: bl L_foo$stub ; encoding: [0b010010AA,A,A,0bAAAAAA01] ; fixup A - offset: 0, value: L_foo$stub, kind: fixup_ppc_br24 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCFixupKinds.h')
-rw-r--r--lib/Target/PowerPC/PPCFixupKinds.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCFixupKinds.h b/lib/Target/PowerPC/PPCFixupKinds.h
new file mode 100644
index 0000000000..d1d44f54ff
--- /dev/null
+++ b/lib/Target/PowerPC/PPCFixupKinds.h
@@ -0,0 +1,28 @@
+//===-- PPCFixupKinds.h - PPC Specific Fixup Entries ------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_PPC_PPCFIXUPKINDS_H
+#define LLVM_PPC_PPCFIXUPKINDS_H
+
+#include "llvm/MC/MCFixup.h"
+
+namespace llvm {
+namespace PPC {
+enum Fixups {
+ // fixup_ppc_br24 - 24-bit PC relative relocation for calls like 'bl'.
+ fixup_ppc_br24 = FirstTargetFixupKind,
+
+ // Marker
+ LastTargetFixupKind,
+ NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
+};
+}
+}
+
+#endif