How to setup Xcode Swift Project to use LLVM C APIs
What is LLVM? “The LLVM compiler infrastructure project (formerly Low Level Virtual Machine) is a “collection of modular and reusable compiler and toolchain technologies” used to develop compiler front ends and back ends.” — Wikipedia This is what Wikipedia says about LLVM. What does it mean? In order to understand this, you should know very high-level picture of what is happening during compilation of Swift or any other programming language. Compilation Phases LLVM reduces the effort to make a compiler lot easier by abstracting optimization, code generation etc. LLVM Intermediate Representation (LLVM IR) is the one which makes it popular. LLVM IR is a machine independent representation which can be later converted to instruction for targeted architecture like x86, arm etc. Many popular programming languages like Swift, Objective-C, Haskell, Rust, Julia uses LLVM under the hood. Refer this video for more information related to LLVM Why should I use LLVM ...