In trying to use JIT.runFunction I ran into trouble in trying to figure out how to use the IRValue return values. There doesn't seem to be any exposed API for unwrapping these values to access the native value of the return type.
@harlanhaskins suggested on Twitter that a swift API is needed that wraps LLVMGenericValueRef functionality.