Template Xcode project to play with Swift and LLVM
git clone [email protected]:AlexDenisov/LLVMTemplate.git
make setup
make build
open LLVMTemplate.xcodeproj
The commands above will fetch and build LLVM sources for you.
Note: By default the 'build system' will use $(HOME)/LLVM/src
and $(HOME)/LLVM/build
for source and build directories respectively. These values can be changed at LLVM.xcconfig
.
Everything you need is to open the Xcode project and start exploring main.swift
and Helpers.swift
.
I included few sample modules to play with, they may be created using the following method calls: sampleMathModule()
, sampleFindMaxModule()
, sampleFibModule()
.
Enjoy and happy hacking!
This is free and unencumbered software released into the public domain.