Displaying 2 results from an estimated 2 matches for "machinefunctioninitializer".
2017 May 24
3
Request for comments on optimizing assembler
...f updating legacy assembly for new architectures, packet rules,
and instruction latencies. It seems like others would be interested in
using this and we're looking for any related feedback: has it been attempted
before, who's interested, or any general suggestions.
We're using the MachineFunctionInitializer created to support MIR in order
to process the MC and construct MachineFunctions.
Currently the workflow sketch is:
- Use flags and code from llvm-mc to assemble a file in to an MC
representation.
- Use a target-specific MachineFunctionInitializer to convert the MC
-> MI and...
2016 Mar 08
11
Deleting function IR after codegen
Hi all
After codegen for a given function, the IR should no longer be needed. In the AsmPrinter we convert from MI->MCInstr, and then we never go back and look at the IR during the MC layer.
I’ve prototyped a simple pass which can be (optionally) scheduled to do just this. It is added at the end of addPassesToEmitFile. It is optional so that clang can continue to leak the IR with