Deleted Added
full compact
DataFlow.h (208954) DataFlow.h (212904)
1//===-- llvm/Support/DataFlow.h - dataflow as graphs ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 11 unchanged lines hidden (view full) ---

20namespace llvm {
21
22//===----------------------------------------------------------------------===//
23// Provide specializations of GraphTraits to be able to treat def-use/use-def
24// chains as graphs
25
26template <> struct GraphTraits<const Value*> {
27 typedef const Value NodeType;
1//===-- llvm/Support/DataFlow.h - dataflow as graphs ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 11 unchanged lines hidden (view full) ---

20namespace llvm {
21
22//===----------------------------------------------------------------------===//
23// Provide specializations of GraphTraits to be able to treat def-use/use-def
24// chains as graphs
25
26template <> struct GraphTraits<const Value*> {
27 typedef const Value NodeType;
28 typedef Value::use_const_iterator ChildIteratorType;
28 typedef Value::const_use_iterator ChildIteratorType;
29
30 static NodeType *getEntryNode(const Value *G) {
31 return G;
32 }
33
34 static inline ChildIteratorType child_begin(NodeType *N) {
35 return N->use_begin();
36 }

--- 67 unchanged lines hidden ---
29
30 static NodeType *getEntryNode(const Value *G) {
31 return G;
32 }
33
34 static inline ChildIteratorType child_begin(NodeType *N) {
35 return N->use_begin();
36 }

--- 67 unchanged lines hidden ---