search for: getobjectfilewrit

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

Did you mean: getobjectfilewriter
2009 Mar 15
0
[LLVMdev] MachO and ELF Writers/MachineCodeEmitters are hard-codedinto LLVMTargetMachine
...efinately be merged (at least from the perspective of object file generation). At the moment, the Writer and Emitter are declared friend, and the encapsulation is all broken anyhow... I'd like to rethink the whole model a little... In general, I think that a TargetMachine should expose a 'getObjectFileWriter' method, which could be used to obtain an object file generator. An additional method should be available to allow users of the TargetMachine to query which types of Object Files the TargetMachine supports. llc could then be simply re-written to use these generic functions instead of the har...
2009 Mar 15
1
[LLVMdev] MachO and ELF Writers/MachineCodeEmitters are hard-codedinto LLVMTargetMachine
...e object file generation capabilities to include new > object file formats is difficult, and requires modifications to LLVM > code (not just a plugin). > > I suggest transforming the {getMachOWriterInfo, getELFWriterInfo} > functions (on TargetMachine) into a single (templated?) > getObjectFileWriterInfo function. Additionally a addObjectFileWriter > member should be added to TargetMachine, taking the place of the > static {AddMachOWriter, AddELFWriter} functions. > > As I need this functionality (custom object file generation) for my > current target, I'd be happy to make...
2009 Mar 15
2
[LLVMdev] MachO and ELF Writers/MachineCodeEmitters are hard-coded into LLVMTargetMachine
...he wants. 2. Extension of the object file generation capabilities to include new object file formats is difficult, and requires modifications to LLVM code (not just a plugin). I suggest transforming the {getMachOWriterInfo, getELFWriterInfo} functions (on TargetMachine) into a single (templated?) getObjectFileWriterInfo function. Additionally a addObjectFileWriter member should be added to TargetMachine, taking the place of the static {AddMachOWriter, AddELFWriter} functions. As I need this functionality (custom object file generation) for my current target, I'd be happy to make the modifications to th...
2009 Mar 15
3
[LLVMdev] MachO and ELF Writers/MachineCodeEmitters arehard-codedinto LLVMTargetMachine
...model a little... My inclination is to go down that route theoretically then step back to where we are and look at incremental changes that donot disturb the status quo too much, otherwise we will not get our patches through. >In general, I think that a TargetMachine should expose a >'getObjectFileWriter' method, which could be used to obtain an object >file generator. An additional method should be available to allow >users of the TargetMachine to query which types of Object Files the >TargetMachine supports. Okay with that. >llc could then be simply re-written to use these gen...