2010-11-04 09:12:30 +08:00
|
|
|
//===-- ARM/ARMFixupKinds.h - ARM 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_ARM_ARMFIXUPKINDS_H
|
|
|
|
#define LLVM_ARM_ARMFIXUPKINDS_H
|
|
|
|
|
|
|
|
#include "llvm/MC/MCFixup.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
namespace ARM {
|
|
|
|
enum Fixups {
|
|
|
|
// fixup_arm_pcrel_12 - 12-bit PC relative relocation for symbol addresses
|
|
|
|
fixup_arm_pcrel_12 = FirstTargetFixupKind,
|
2010-12-02 03:18:46 +08:00
|
|
|
// fixup_arm_pcrel_10 - 10-bit PC relative relocation for symbol addresses
|
|
|
|
// used in VFP and Thumb2 instructions where the lower 2 bits are not encoded
|
|
|
|
// (so it's encoded as an 8-bit immediate).
|
|
|
|
fixup_arm_pcrel_10,
|
2010-11-12 02:04:49 +08:00
|
|
|
// fixup_arm_brnach - 24-bit PC relative relocation for direct branch
|
|
|
|
// instructions.
|
|
|
|
fixup_arm_branch,
|
|
|
|
|
2010-11-19 07:37:15 +08:00
|
|
|
// The next two are for the movt/movw pair
|
|
|
|
// the 16bit imm field are split into imm{15-12} and imm{11-0}
|
|
|
|
// Fixme: We need new ones for Thumb.
|
|
|
|
fixup_arm_movt_hi16, // :upper16:
|
|
|
|
fixup_arm_movw_lo16, // :lower16:
|
|
|
|
|
2010-11-12 02:04:49 +08:00
|
|
|
// Marker
|
|
|
|
LastTargetFixupKind,
|
|
|
|
NumTargetFixupKinds = LastTargetFixupKind - FirstTargetFixupKind
|
2010-11-04 09:12:30 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|