[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9Relocations.h

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 21 16:41:07 PST 2004



Changes in directory llvm/lib/Target/SparcV9:

SparcV9Relocations.h added (r1.1)
---
Log message:

Initial checkin of the V9 relocation types


---
Diffs of the changes:  (+42 -0)

Index: llvm/lib/Target/SparcV9/SparcV9Relocations.h
diff -c /dev/null llvm/lib/Target/SparcV9/SparcV9Relocations.h:1.1
*** /dev/null	Sun Nov 21 18:41:01 2004
--- llvm/lib/Target/SparcV9/SparcV9Relocations.h	Sun Nov 21 18:40:51 2004
***************
*** 0 ****
--- 1,42 ----
+ //===- SparcV9Relocations.h - SparcV9 Code Relocations ----------*- C++ -*-===//
+ // 
+ //                     The LLVM Compiler Infrastructure
+ //
+ // This file was developed by the LLVM research group and is distributed under
+ // the University of Illinois Open Source License. See LICENSE.TXT for details.
+ // 
+ //===----------------------------------------------------------------------===//
+ //
+ // This file defines the SparcV9 target-specific relocation types.
+ //
+ //===----------------------------------------------------------------------===//
+ 
+ #ifndef SPARCV9RELOCATIONS_H
+ #define SPARCV9RELOCATIONS_H
+ 
+ #include "llvm/CodeGen/MachineRelocation.h"
+ 
+ namespace llvm {
+   namespace V9 {
+     enum RelocationType {
+       // reloc_pcrel_call - PC relative relocation, shifted right by two bits,
+       // inserted into a 30 bit field.  This is used to relocate direct call
+       // instructions.
+       reloc_pcrel_call = 0,
+ 
+       // reloc_sethi_hh - Absolute relocation, for 'sethi %hh(G),reg' operation.
+       reloc_sethi_hh = 1,
+ 
+       // reloc_sethi_lm - Absolute relocation, for 'sethi %lm(G),reg' operation.
+       reloc_sethi_lm = 2,
+ 
+       // reloc_or_hm - Absolute relocation, for 'or reg,%hm(G),reg' operation.
+       reloc_or_hm = 3,
+ 
+       // reloc_or_lo - Absolute relocation, for 'or reg,%lo(G),reg' operation.
+       reloc_or_lo = 4,
+     };
+   }
+ }
+ 
+ #endif






More information about the llvm-commits mailing list