[llvm-dev] [GlobalISel][RFC] Contract between LLVM IR and the backends for ISel

Marcello Maggioni via llvm-dev llvm-dev at lists.llvm.org
Fri Jan 22 15:36:19 PST 2016


> On 22 Jan 2016, at 15:17, Matthias Braun via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> 
>> Although this is *not* something I want to change for GlobalISel, I thought I brought that up on the mailing list to discuss the implications.
>> 
>> In particular, in the past, some people mentioned that they wanted to do (some part of) the legalization on LLVM IR. This may impact the contract we have between LLVM IR inputs and the backends and I would like to clarify that.
>> 
>> 
>> * Feedback Needed *
>> 
>> 1. In your opinion where does a “backend" start?
>> 
>> For instance, does a backend starts at llc or at ISel?
> 
> In practical terms I'd say the "backend" is all the passes added by LLVMTargetMachine::addPassesToEmitFile()/LLVMTargetMachine::addPassesToEmitMC()... So I don't see any "contract" problems here whether we have some IR passes before ISel or not... Obviously you may have a contract inside the backend as to what IR may reach the ISel phase.

+1

Marcello

> 
> - Matthias
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list