search for: realmemorymanager

Displaying 4 results from an estimated 4 matches for "realmemorymanager".

2008 Dec 17
0
[LLVMdev] Getting the start and end address of JITted code
...r isn't public so > I can't inherit from it. You should inherit from JITMemoryManager. > It's not at all obvious to me how I'm > supposed to intercept endFunctionBody. > > Here's how vmkit does it: class MvmMemoryManager : public JITMemoryManager { /// realMemoryManager - The real allocator JITMemoryManager* realMemoryManager; public: MvmMemoryManager() : JITMemoryManager() { realMemoryManager = JITMemoryManager::CreateDefaultMemManager(); } And MvmMemoryManager redefines all the virtual functions to call the real memory manager. For endFunctionBod...
2008 Dec 17
1
[LLVMdev] Getting the start and end address of JITted code
Here's my problem, which I raised on IRC: JIT::getPointerToFunction gets the address of the start of a function. But how do I find out where the end of the function is? I need this to register the function for profiling. varth said: aph, you need to intercept the "endFunctionBody" call on the memory manager, it will tell you the start pointer and the end pointer But how can I do
2008 Dec 17
1
[LLVMdev] Getting the start and end address of JITted code
...9;t inherit from it. > > You should inherit from JITMemoryManager. >> It's not at all obvious to me how I'm >> supposed to intercept endFunctionBody. > > Here's how vmkit does it: > > class MvmMemoryManager : public JITMemoryManager { > > /// realMemoryManager - The real allocator > JITMemoryManager* realMemoryManager; > > public: > > MvmMemoryManager() : JITMemoryManager() { > realMemoryManager = JITMemoryManager::CreateDefaultMemManager(); > } > > > And MvmMemoryManager redefines all the virtual functions to...
2008 Dec 17
5
[LLVMdev] Windows build problems
Folks, Is anyone else the failure below? On Mac OS X everything builds properly... Thanks for any help, snaroff -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture 27.png Type: image/png Size: 18959 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081217/e7d37fee/attachment.png>