<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 7, 2015 at 10:40 AM escha <<a href="mailto:escha@apple.com">escha@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The way we use this looks roughly like this:<br>
<br>
addPass(createCodeGenPreparePass(TM, true, true));<br>
addPass(createOutOfTreeGPUCodeGenPreparePass(*TM));<br>
addPass(createFMAContractionPass());<br>
addPass(createOutOfTreeGPUSpecificCodeGenPreparePass( /* args */ );<br>
<br></blockquote><div><br></div><div>OK. Is it a global option basically? Is it what I would consider subtarget dependent? I.e. trying to figure out why to make it part of the constructor or make it take a resolver function for each Function it is called on. I'm inclined to think the latter.</div><div><br></div><div>-eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Repository:<br>
rL LLVM<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D11002&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=JdWTNTqqN0AVOnBIjgIiFiCk6EfjQoFMQmmWYV-48Nw&s=44C1UixZURTmpZZB_aqWhnIS6TdnVIimwq-7aogg8I0&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/D11002</a><br>
<br>
<br>
<br>
</blockquote></div></div>