[swift-dev] Swift kernel hacking, compiler options and target triples

Simon Evans si at si.org
Tue Mar 29 08:13:30 CDT 2016


> On 28 Mar 2016, at 22:20, Greg Parker <gparker at apple.com> wrote:
> 
> swiftc has a hidden -Xllvm flag that passes options to the LLVM code generator. That might work for low-level options like instruction selection and maybe the red zone. It's not the right answer for production use, but it might be good enough for your experiments.

Ah, I hadn’t seen that flag only the -Xcc one. I modified LLVM to accept a wildcard in the -force-attribute arg and “-Xllvm -force-attribute=.:noredzone” seems to do the right thing now

Thanks
Simon


More information about the swift-dev mailing list