Add completely untested support for mtcrf/mfcrf encoding
[oota-llvm.git] / lib / Target / SparcV9 / SparcV9Relocations.h
1 //===- SparcV9Relocations.h - SparcV9 Code Relocations ----------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the SparcV9 target-specific relocation types.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef SPARCV9RELOCATIONS_H
15 #define SPARCV9RELOCATIONS_H
16
17 #include "llvm/CodeGen/MachineRelocation.h"
18
19 namespace llvm {
20   namespace V9 {
21     enum RelocationType {
22       // reloc_pcrel_call - PC relative relocation, shifted right by two bits,
23       // inserted into a 30 bit field.  This is used to relocate direct call
24       // instructions.
25       reloc_pcrel_call = 0,
26
27       // reloc_sethi_hh - Absolute relocation, for 'sethi %hh(G),reg' operation.
28       reloc_sethi_hh = 1,
29
30       // reloc_sethi_lm - Absolute relocation, for 'sethi %lm(G),reg' operation.
31       reloc_sethi_lm = 2,
32
33       // reloc_or_hm - Absolute relocation, for 'or reg,%hm(G),reg' operation.
34       reloc_or_hm = 3,
35
36       // reloc_or_lo - Absolute relocation, for 'or reg,%lo(G),reg' operation.
37       reloc_or_lo = 4,
38     };
39   }
40 }
41
42 #endif