def create_processor_uid_mapping(mapping_cache):
    """
    Create dictionary that maps processor name to uid
    :param mapping_cache: mapping_cache built in LqnBuilder
    :return: mapping for processor to uid
    """
    processor_uid_mapping = {}
    # Get uid mappings from mapping_cache
    branch_mapping = mapping_cache["branch_mapping"]
    loop_uid_mapping = mapping_cache["loop_uid_mapping"]
    composite_uid_mapping = mapping_cache["composite_uid_mapping"]
    # Add mappings to processor_uid_mapping
    for branch_id, processor_dict in branch_mapping.items():
        processor_uid_mapping.update(processor_dict)
    processor_uid_mapping.update(loop_uid_mapping)
    processor_uid_mapping.update(composite_uid_mapping)
    return processor_uid_mapping