<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3660" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am looking for a single driver that should be 
able to generate the assembly for a given target.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It should be able to generate the bitcode, run 
standard LTO passes, run target specific module passes and final function passes 
to generate assembly. So pretty much clang -emit-llvm-bc, llvm-ld , opt and 
llc functionality in a single executable.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Besides, the option to be able to invoke native 
assembler and native linker to generate final executable should also be handled 
by this driver.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Currently, clang takes a -triple option to specify 
the target.</FONT></DIV>
<DIV><FONT face=Arial size=2>Can a target schedule these things in 
clang?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Right now we are using a .td based compilerdriver 
plugin to invoke these different set of executables.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- Sanjiv</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>