{"push_id":2825946543,"size":1,"distinct_size":0,"ref":"refs/heads/upstream/master","head":"5eb83c58cd54e69e13eb3ed969879a0daa440536","before":"f798bee77127f8391e261d6d91cf1285c0438c51","commits":[{"sha":"5eb83c58cd54e69e13eb3ed969879a0daa440536","author":{"name":"Chandler Carruth","email":"420c9fb3407b8e11ac322a0e7703f7b1f526df04@gmail.com"},"message":"[IR] Begin removal of TerminatorInst by removing successor manipulation.\n\nThe core get and set routines move to the `Instruction` class. These\nroutines are only valid to call on instructions which are terminators.\n\nThe iterator and *generic* range based access move to `CFG.h` where all\nthe other generic successor and predecessor access lives. While moving\nthe iterator here, simplify it using the iterator utilities LLVM\nprovides and updates coding style as much as reasonable. The APIs remain\npointer-heavy when they could better use references, and retain the odd\nbehavior of `operator*` and `operator->` that is common in LLVM\niterators. Adjusting this API, if desired, should be a follow-up step.\n\nNon-generic range iteration is added for the two instructions where\nthere is an especially easy mechanism and where there was code\nattempting to use the range accessor from a specific subclass:\n`indirectbr` and `br`. In both cases, the successors are contiguous\noperands and can be easily iterated via the operand list.\n\nThis is the first major patch in removing the `TerminatorInst` type from\nthe IR's instruction type hierarchy. This change was discussed in an RFC\nhere and was pretty clearly positive:\nhttp://lists.llvm.org/pipermail/llvm-dev/2018-May/123407.html\n\nThere will be a series of much more mechanical changes following this\none to complete this move.\n\nDifferential Revision: https://reviews.llvm.org/D47467\n\ngit-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340698 91177308-0d34-0410-b5e6-96231b3b80d8","distinct":false,"url":"https://api.github.com/repos/fuchsia-mirror/third_party-llvm/commits/5eb83c58cd54e69e13eb3ed969879a0daa440536"}]}
{"actor":{"display_login":"fuchsia-infra-bot"}}