[PATCH] [Mips64] Add support for MCJIT for MIPS64r2 and MIPS64r6

Lang Hames lhames at gmail.com
Wed May 13 14:45:21 PDT 2015


As dsanders noted, this needs some llvm-rtdyld checker tests along the lines of  test/ExecutionEngine/RuntimeDyld/{AArch64,ARM,X86}/* .


REPOSITORY
  rL LLVM

================
Comment at: lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h:124-139
@@ -116,2 +123,18 @@
 
+  // Apply relocation in instruction
+  bool applyRelocation;
+
+  // True if using the result of the previous relocation type
+  bool useCalculatedValue;
+
+  // The result of the previous relocation type
+  int64_t calculatedValue;
+
+  // A map from section to a GOT section that has entries for section's GOT
+  // relocations.
+  DenseMap<SID, SID> SectionToGOTMap;
+
+  // A map to avoid duplicate got entries
+  StringMap<uint64_t> GOTSymbolOffsets;
+
   // When a module is loaded we save the SectionID of the EH frame section
----------------
Could you please note in the comments that these data structures are MIPS64 specific? At some point in the future we would like to split RuntimeDyldELF into multiple target-specific subclasses along the same lines as RuntimeDyldMachO. When that happens it will be very helpful to know that these data structures can be moved into the RuntimeDyldELF_MIPS64 subclass.

http://reviews.llvm.org/D9667

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list