Deleted Added
full compact
PredIteratorCache.h (276479) PredIteratorCache.h (280031)
1//===- PredIteratorCache.h - pred_iterator Cache ----------------*- 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//===----------------------------------------------------------------------===//
9//
10// This file defines the PredIteratorCache class.
11//
12//===----------------------------------------------------------------------===//
13
1//===- PredIteratorCache.h - pred_iterator Cache ----------------*- 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//===----------------------------------------------------------------------===//
9//
10// This file defines the PredIteratorCache class.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_IR_PREDITERATORCACHE_H
15#define LLVM_IR_PREDITERATORCACHE_H
16
14#include "llvm/ADT/DenseMap.h"
15#include "llvm/ADT/SmallVector.h"
16#include "llvm/IR/CFG.h"
17#include "llvm/Support/Allocator.h"
18
17#include "llvm/ADT/DenseMap.h"
18#include "llvm/ADT/SmallVector.h"
19#include "llvm/IR/CFG.h"
20#include "llvm/Support/Allocator.h"
21
19#ifndef LLVM_IR_PREDITERATORCACHE_H
20#define LLVM_IR_PREDITERATORCACHE_H
21
22namespace llvm {
23
24 /// PredIteratorCache - This class is an extremely trivial cache for
25 /// predecessor iterator queries. This is useful for code that repeatedly
26 /// wants the predecessor list for the same blocks.
27 class PredIteratorCache {
28 /// BlockToPredsMap - Pointer to null-terminated list.
29 DenseMap<BasicBlock*, BasicBlock**> BlockToPredsMap;

--- 41 unchanged lines hidden ---
22namespace llvm {
23
24 /// PredIteratorCache - This class is an extremely trivial cache for
25 /// predecessor iterator queries. This is useful for code that repeatedly
26 /// wants the predecessor list for the same blocks.
27 class PredIteratorCache {
28 /// BlockToPredsMap - Pointer to null-terminated list.
29 DenseMap<BasicBlock*, BasicBlock**> BlockToPredsMap;

--- 41 unchanged lines hidden ---