[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32Relocations.h

Chris Lattner lattner at persephone.cs.uiuc.edu
Mon Nov 22 21:57:55 PST 2004



Changes in directory llvm/lib/Target/PowerPC:

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

Initial checkin of the 32-bit PPC relocation types


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

Index: llvm/lib/Target/PowerPC/PPC32Relocations.h
diff -c /dev/null llvm/lib/Target/PowerPC/PPC32Relocations.h:1.1
*** /dev/null	Mon Nov 22 23:57:48 2004
--- llvm/lib/Target/PowerPC/PPC32Relocations.h	Mon Nov 22 23:57:38 2004
***************
*** 0 ****
--- 1,38 ----
+ //===- PPC32Relocations.h - PPC32 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 PowerPC 32-bit target-specific relocation types.
+ //
+ //===----------------------------------------------------------------------===//
+ 
+ #ifndef PPC32RELOCATIONS_H
+ #define PPC32RELOCATIONS_H
+ 
+ #include "llvm/CodeGen/MachineRelocation.h"
+ 
+ namespace llvm {
+   namespace PPC {
+     enum RelocationType {
+       // reloc_pcrel_bx - PC relative relocation, for the b or bl instructions.
+       reloc_pcrel_bx,
+ 
+       // reloc_absolute_loadhi - Absolute relocation, for the loadhi instruction
+       // (which is really addis).  Add the high 16-bits of the specified global
+       // address into the immediate field of the addis.
+       reloc_absolute_loadhi,
+ 
+       // reloc_absolute_la - Absolute relocation, for the la instruction (which
+       // is really an addi).  Add the low 16-bits of teh specified global
+       // address into the immediate field of the addi.
+       reloc_absolute_la,
+     };
+   }
+ }
+ 
+ #endif






More information about the llvm-commits mailing list