Use Module& wherever possible.
Since every reduction immediately turns Chunks into an Oracle, directly pass Oracle instead.
Details
Details
- Reviewers
Meinersbur hans - Commits
- rG77bc3ba3650e: [NFC][llvm-reduce] Cleanup types
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
std::vector<Chunk> -> Oracle: LGTM
Module* -> Module&: It's a code style question and I prefer using Module* (or wrapped in a smart pointer) consistently. I don't like that sometimes it's M. but sometimes M->. It also makes "Has TestRunner been assigned a Program yet?" undefined behaviour.
There are some comment reflows. I assume this is due to adding a new scope, clang-format, removing the scope, clang-format again. Could you clean that up?
Comment Actions
undo comment reformatting
we should never have a null Module, added asserts for that and changed the constructor to force an initial Module
I prefer Module& to show that it can never be null