Change the 'global modification' APIs in SelectionDAG to take a new
authorChris Lattner <sabre@nondot.org>
Sun, 3 Feb 2008 06:49:24 +0000 (06:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 Feb 2008 06:49:24 +0000 (06:49 +0000)
commitf8dc0617baceeba8ccd67c8881eb88eb1be2902c
tree6fd770020176095d656d85005b3a5508542fe962
parent3d62d780abbe0c2dd8edd7dd37a27365b2032d73
Change the 'global modification' APIs in SelectionDAG to take a new
DAGUpdateListener object pointer instead of just returning a vector
of deleted nodes.  This makes the interfaces more efficient (no more
allocating a vector [at least a malloc], filling it in, then walking
it) and more clean.  This also allows the client to be notified of
nodes that are *changed* but not deleted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46677 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
utils/TableGen/DAGISelEmitter.cpp