You can access the learn sets from other generations by clicking whatever gen you're looking for above the |X/Y|B2/W2|B/W| learn sets (it's labeled "in other generations")