| OLD | NEW |
| 1 //===-- JIT.h - Class definition for the JIT --------------------*- C++ -*-===// | 1 //===-- JIT.h - Class definition for the JIT --------------------*- C++ -*-===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file defines the top-level JIT data structure. | 10 // This file defines the top-level JIT data structure. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 virtual void UnregisterJITEventListener(JITEventListener *L); | 178 virtual void UnregisterJITEventListener(JITEventListener *L); |
| 179 /// These functions correspond to the methods on JITEventListener. They | 179 /// These functions correspond to the methods on JITEventListener. They |
| 180 /// iterate over the registered listeners and call the corresponding method on | 180 /// iterate over the registered listeners and call the corresponding method on |
| 181 /// each. | 181 /// each. |
| 182 void NotifyFunctionEmitted( | 182 void NotifyFunctionEmitted( |
| 183 const Function &F, void *Code, size_t Size, | 183 const Function &F, void *Code, size_t Size, |
| 184 const JITEvent_EmittedFunctionDetails &Details); | 184 const JITEvent_EmittedFunctionDetails &Details); |
| 185 void NotifyFreeingMachineCode(const Function &F, void *OldPtr); | 185 void NotifyFreeingMachineCode(const Function &F, void *OldPtr); |
| 186 | 186 |
| 187 private: | 187 private: |
| 188 static JITCodeEmitter *createEmitter(JIT &J, JITMemoryManager *JMM); | 188 static JITCodeEmitter *createEmitter(JIT &J, JITMemoryManager *JMM, |
| 189 TargetMachine &tm); |
| 189 void runJITOnFunctionUnlocked(Function *F, const MutexGuard &locked); | 190 void runJITOnFunctionUnlocked(Function *F, const MutexGuard &locked); |
| 190 void updateFunctionStub(Function *F); | 191 void updateFunctionStub(Function *F); |
| 191 void updateDlsymStubTable(); | 192 void updateDlsymStubTable(); |
| 192 | 193 |
| 193 protected: | 194 protected: |
| 194 | 195 |
| 195 /// getMemoryforGV - Allocate memory for a global variable. | 196 /// getMemoryforGV - Allocate memory for a global variable. |
| 196 virtual char* getMemoryForGV(const GlobalVariable* GV); | 197 virtual char* getMemoryForGV(const GlobalVariable* GV); |
| 197 | 198 |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // End llvm namespace | 201 } // End llvm namespace |
| 201 | 202 |
| 202 #endif | 203 #endif |
| OLD | NEW |