-
Notifications
You must be signed in to change notification settings - Fork 1
/
Narrowing.h
52 lines (42 loc) · 1.03 KB
/
Narrowing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//===--- Narrowing.h - Pass definition ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief This file contains the declaration of narrowing classes for the
/// Ranged Based Alias Analysis
///
//===----------------------------------------------------------------------===//
#ifndef __NARROWING_H__
#define __NARROWING_H__
#include "llvm/Pass.h"
#include <set>
namespace llvm {
/// Forward declarations
class Value;
//class Range;
/// classes that help implementing the narrowing operations
class NarrowingData
{
public:
CmpInst::Predicate cmp_op;
Value* cmp_v1;
Value* cmp_v2;
std::set<const PHINode*> sigmas;
};
class NarrowingOp
{
public:
CmpInst::Predicate cmp_op;
Value* cmp_v;
Range* context;
NarrowingOp* contextualize(Range* c);
~NarrowingOp();
};
}
#endif