This is really cool! I second Jacob’s request for nightlies. Many things in the Swift compiler are architected similarly to Clang (inspired by Clang), so hopefully any features the explorer can do for C++ it could do for Swift as well. The swift compiler dump ASTs similarly to Clang with e.g. -dump-ast. I’m not sure what “Show optimization output” is supposed to do, as I can’t seem to make it work even for C++ using Clang, but swiftc also supports emitting SIL and LLVM IR.
> On Jun 22, 2017, at 10:24 AM, Adam Nemecek via swift-evolution > <swift-evolution@swift.org> wrote: > > Howdy, > Matt Godbolt and I have added Swift support to his compiler explorer project > > https://swift.godbolt.org/ <https://swift.godbolt.org/> > > It let's you interactively explore assembly emitted by the Swift compiler. > > 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. > > Note that right now it's might still be kinda rough around the edges. > > You can contribute to the project here > https://github.com/mattgodbolt/compiler-explorer > <https://github.com/mattgodbolt/compiler-explorer> > > Adam > _______________________________________________ > swift-evolution mailing list > swift-evolution@swift.org > https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution