[llvm-dev] Request for comments on optimizing assembler

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 10:26:08 PDT 2017


On 5/30/2017 11:58 AM, Quentin Colombet wrote:
> Sure. That being said the MIR parser could invoke the target MC parser for the specific syntax. I admit the line is blurry between an approach that does asm -> MC -> MI and asm -> MIR with such parser.
> The reason I still think it is doable is because MIR already does "mnemonic parsing" for MI opcodes and that does not seem to be that farfetched to do it directly on asm mnemonics.
> We might want target specific asm to "MIR asm” kind of converter (like transforming op a, b,c in a = op b, c) if that’s really too complicated.
> 
> The bottom line is given how much logic those two things seem to share, I think we need to give it more though before we rule out that they can’t be the same tool.

With this explanation it looks like they could certainly be the same 
tool. My original understanding about using MIR did not include the use 
of asm parsers and so it seemed that there would be a lot of duplicated 
effort.

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation


More information about the llvm-dev mailing list