Context

public class Context

A Context represents execution states for the core LLVM IR system.

  • Retrieves the global context instance.

    Declaration

    Swift

    public static let global: Context
  • Creates a Context object using LLVMContextCreate

    Declaration

    Swift

    public init()
  • Creates a Context object from an LLVMContextRef object.

    Declaration

    Swift

    public init(llvm: LLVMContextRef, ownsContext: Bool = false)