<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If you're interested in just having a look at SIL output, then I put a very basic GUI wrapper around invocations of swiftc -emit-sil and friends:<div class=""><br class=""></div><div class=""><a href="https://github.com/alblue/SILInspector" class="">https://github.com/alblue/SILInspector</a></div><div class=""><br class=""></div><div class="">It also supports piping them through the demangler and whether or not to enable optimisations, so you can see the effect of the options on the generated code. In addition, it prints out the command that is run at the bottom so you can do the same yourself outside of the GUI.</div><div class=""><br class=""></div><div class="">Alex</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 23 Jun 2017, at 02:58, Kevin Ballard via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">


<title class=""></title>

<div class=""><div class="">That's pretty cool.<br class=""></div>
<div class=""><br class=""></div>
<div class="">Any plans on adding support for looking at the SIL output?<br class=""></div>
<div class=""><br class=""></div>
<div class="">-Kevin Ballard<br class=""></div>
<div class=""><br class=""></div>
<div class="">On Thu, Jun 22, 2017, at 10:24 AM, Adam Nemecek via swift-evolution wrote:<br class=""></div>
<blockquote type="cite" class=""><div dir="ltr" class=""><div class="">Howdy,<br class=""></div>
<div class="">Matt Godbolt and I have added Swift support to his compiler explorer project<br class=""></div>
<div class=""><br class=""></div>
<div class=""><a href="https://swift.godbolt.org/" class="">https://swift.godbolt.org/</a><br class=""></div>
<div class=""><br class=""></div>
<div class="">It let's you interactively explore assembly emitted by the Swift compiler.&nbsp;<br class=""></div>
<div class=""><br class=""></div>
<div class="">Right now, if you want the compiler to emit Intel syntax instructions, pass "-emit-assembly -Xllvm --x86-asm-syntax=intel" to the compiler as a command line argument in the text field in the top right corner.<br class=""></div>
<div class=""><br class=""></div>
<div class="">Note that right now it's might still be kinda rough around the edges.<br class=""></div>
<div class=""><br class=""></div>
<div class="">You can contribute to the project here&nbsp;<a href="https://github.com/mattgodbolt/compiler-explorer" class="">https://github.com/mattgodbolt/compiler-explorer</a><br class=""></div>
<div class=""><br class=""></div>
<div class="">Adam<br class=""></div>
</div>
<div class=""><u class="">_______________________________________________</u><br class=""></div>
<div class="">swift-evolution mailing list<br class=""></div>
<div class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class=""></div>
<div class=""><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class=""></div>
</blockquote><div class=""><br class=""></div>
</div>

_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></body></html>