[PATCH] D90437: [NFC] Clean up PassBuilder
Arthur Eubanks via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 15:58:49 PDT 2020
aeubanks created this revision.
aeubanks added reviewers: ychen, asbirlea.
Herald added subscribers: llvm-commits, cfe-commits, steven_wu, hiraditya.
Herald added projects: clang, LLVM.
aeubanks requested review of this revision.
Make DebugLogging a member variable so that users of PassBuilder don't
need to pass it around so much.
Move call to TargetMachine::registerPassBuilderCallbacks() within
PassBuilder so users don't need to remember to call it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90437
Files:
clang/lib/CodeGen/BackendUtil.cpp
llvm/include/llvm/Passes/PassBuilder.h
llvm/lib/LTO/LTOBackend.cpp
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
llvm/tools/opt/NewPMDriver.cpp
llvm/unittests/IR/PassBuilderCallbacksTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90437.301780.patch
Type: text/x-patch
Size: 46793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201029/8ce35d75/attachment-0001.bin>
More information about the cfe-commits
mailing list