summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/CFGBuilder.h
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [Dominators] Define Arc less-than operator inline.Jakub Kuderski2017-07-131-1/+5
| | | | | | This fixes warnings on some buildbots. llvm-svn: 307974
* [Dominators] Rename Update.Arc to Update.EdgeJakub Kuderski2017-07-131-1/+1
| | | | | | Update.Arc of type Arc caused a warning on some buildbots. llvm-svn: 307968
* [Dominators] Add CFGBuilder testing utilityJakub Kuderski2017-07-131-0/+90
Summary: This patch introduces a new testing utility for building and modifying CFG -- CFGBuilder. The primary use case for the utility is testing the upcoming incremental dominator tree update API. The current design provides a simple mechanism of constructing arbitrary graphs and then applying series of updates to them. CFGBuilder takes care of creating empty functions, connecting and disconnecting basic blocks. Under the hood it uses SwitchInst and UnreachableInst. It will be also possible to create a thin wrapper over CFGBuilder for parsing string input and to hook it up to other textual tools (e.g. opt used with FileCheck). Reviewers: dberlin, sanjoy, grosser, dblaikie Reviewed By: dblaikie Subscribers: davide, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D34798 llvm-svn: 307960
OpenPOWER on IntegriCloud