def architecture_name_from_target(target):
    """
    Return architecture name from given LLDB target.

    :param lldb.SBTarget target: LLDB target.
    :return: Architecture name or None if cannot find architecture.
    :rtype: str | None
    """
    triple = target.GetTriple()
    """:type : str"""
    if triple.startswith('i386'):
        return 'i386'
    elif triple.startswith('x86_64'):
        return 'x86_64'
    elif triple.startswith('armv7'):
        return 'armv7'
    elif triple.startswith('armv7s'):
        return 'armv7s'
    elif triple.startswith('arm64'):
        return 'arm64'
    return None
