HomePhabricator

[BPF][NewPM] Make BPFTargetMachine properly adjust NPM optimizer pipeline

Authored by aeubanks on Oct 5 2020, 3:17 PM.

Description

[BPF][NewPM] Make BPFTargetMachine properly adjust NPM optimizer pipeline

This involves porting BPFAbstractMemberAccess and BPFPreserveDIType to
NPM, then adding them BPFTargetMachine::registerPassBuilderCallbacks
(the NPM equivalent of adjustPassManager()).

Reviewed By: yonghong-song, asbirlea

Differential Revision: https://reviews.llvm.org/D88855