[PATCH] D72050: [opt] refactor opt main function

Kókai Péter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 1 04:03:09 PST 2020


Kokan created this revision.
Kokan added a reviewer: LLVM.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- set ->keep() as soon as possible
- refactor target machine detection
- refactor early exit with -module-summary/hash with -S option
- refactor use OutputKind
- extract initialize passes
- run-twice small refactors
- use == for SmallVector

Signed-off-by: Peter Kokai <kokaipeter at gmail.com>


https://reviews.llvm.org/D72050

Files:
  llvm/tools/llc/llc.cpp
  llvm/tools/opt/opt.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72050.235757.patch
Type: text/x-patch
Size: 9189 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200101/7d23fd68/attachment.bin>


More information about the llvm-commits mailing list