Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(171)

Side by Side Diff: lib/ExecutionEngine/JIT/JIT.h

Issue 91042: Implement LLVM JIT side of GDB JIT debugging interface (Closed) SVN Base: http://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Synced with TOT. Created 2 months, 2 weeks ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497