search for: mcjitobjectwrit

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

Did you mean: mcjitobjectwriter
2010 Sep 30
3
[LLVMdev] JIT with MC - structure
...ing ExecutionEngine interface - owns and creates : - a MemoryManager (will be a reuse of the JITMemoryManager mechanism) - a MCJITStreamer - a PassManager for scheduling of an AsmPrinter (MCLowering) using the streamer - MCJITStreamer - owns and creates : - a MCAssember - a MCJITObjectWriter - a mem_raw_ostream - knows : - the MCJIT : to give it to the object writer (for mapping) - the MemoryManager : to give it to the object writer (for memory claiming) - MCJITObjectWriter - knows : - the MCJIT : for mapping GlobalVariable <-> native address - the Memo...
2010 Jul 20
0
[LLVMdev] MC-JIT
Some boring style comments: - whack trailing whitespace - spaces, not tabs - the methods in MCJITStreamer.cpp should probably have blank lines between them There seems to be an ownership problem of the MCJITObjectWriter. If I understand the code correctly, the assembler Finish method takes ownership of the Writer parameter, which presumably is needed to JIT two functions. +1 for separate patches, or alternatively, can we just commit this and begin developing this in-tree? Then other people can hack on it befo...
2010 Jul 19
7
[LLVMdev] MC-JIT
...,b) => a+b), to do that some modifications have been made : - The addPassesToEmitMC method has been added to TargetMachine class. It fills the MCContext pointer so we can build the MCJITStreamer. - The Finish method of MCAssembler have a new optional argument "Writer" to allow a custom MCJITObjectWriter to be used. Can you give us some feedbacks on the general idea and on this 2 particular hooks ? Currently MCJIT has one unittest and the binary size is quite big (~110MB in debug...) because before using the MC framework we need to call "InitializeAllTargets()" and friends (same as l...
2010 Jul 20
2
[LLVMdev] MC-JIT
...er about the address > of some external symbols though. OK, I'm still experimenting with this. But it seems that I just need to modify the "FixedValue" parameter of the RecordRelocation method. More on this in future patches. :) > There seems to be an ownership problem of the MCJITObjectWriter. If I > understand the code correctly, the assembler Finish method takes > ownership of the Writer parameter, which presumably is needed to JIT > two functions. Ok, it's not really clear, but with the patch : - If no Writer is provided to the Finish method, the MCAssembler takes ow...