clang
6.0.0
include
clang
Basic
LLVM.h
Go to the documentation of this file.
1
//===--- LLVM.h - Import various common LLVM datatypes ----------*- 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
/// \file
11
/// \brief Forward-declares and imports various common LLVM datatypes that
12
/// clang wants to use unqualified.
13
///
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_CLANG_BASIC_LLVM_H
17
#define LLVM_CLANG_BASIC_LLVM_H
18
19
// Do not proliferate #includes here, require clients to #include their
20
// dependencies.
21
// Casting.h has complex templates that cannot be easily forward declared.
22
#include "llvm/Support/Casting.h"
23
// None.h includes an enumerator that is desired & cannot be forward declared
24
// without a definition of NoneType.
25
#include "llvm/ADT/None.h"
26
27
namespace
llvm
{
28
// ADT's.
29
class
StringRef;
30
class
Twine;
31
template
<
typename
T>
class
ArrayRef
;
32
template
<
typename
T>
class
MutableArrayRef
;
33
template
<
typename
T>
class
OwningArrayRef
;
34
template
<
unsigned
InternalLen>
class
SmallString
;
35
template
<
typename
T,
unsigned
N>
class
SmallVector
;
36
template
<
typename
T>
class
SmallVectorImpl
;
37
template
<
typename
T>
class
Optional
;
38
template
<
class
T>
class
Expected
;
39
40
template
<
typename
T>
41
struct
SaveAndRestore
;
42
43
// Reference counting.
44
template
<
typename
T>
class
IntrusiveRefCntPtr
;
45
template
<
typename
T>
struct
IntrusiveRefCntPtrInfo
;
46
template
<
class
Derived>
class
RefCountedBase
;
47
48
class
raw_ostream;
49
class
raw_pwrite_stream;
50
// TODO: DenseMap, ...
51
}
52
53
54
namespace
clang
{
55
// Casting operators.
56
using
llvm::isa
;
57
using
llvm::cast
;
58
using
llvm::dyn_cast;
59
using
llvm::dyn_cast_or_null;
60
using
llvm::cast_or_null;
61
62
// ADT's.
63
using
llvm::None;
64
using
llvm::Optional
;
65
using
llvm::StringRef;
66
using
llvm::Twine;
67
using
llvm::ArrayRef
;
68
using
llvm::MutableArrayRef
;
69
using
llvm::OwningArrayRef
;
70
using
llvm::SmallString
;
71
using
llvm::SmallVector
;
72
using
llvm::SmallVectorImpl
;
73
using
llvm::SaveAndRestore
;
74
75
// Error handling.
76
using
llvm::Expected
;
77
78
// Reference counting.
79
using
llvm::IntrusiveRefCntPtr
;
80
using
llvm::IntrusiveRefCntPtrInfo
;
81
using
llvm::RefCountedBase
;
82
83
using
llvm::raw_ostream;
84
using
llvm::raw_pwrite_stream;
85
}
// end namespace clang.
86
87
#endif
llvm
DominatorTree GraphTraits specialization so the DominatorTree can be iterable by generic graph iterat...
Definition:
Dominators.h:26
llvm::Optional
Definition:
LLVM.h:37
llvm::IntrusiveRefCntPtrInfo
Definition:
LLVM.h:45
llvm::SmallVectorImpl
Definition:
LLVM.h:36
llvm::Expected
Definition:
LLVM.h:38
llvm::RefCountedBase
Definition:
LLVM.h:46
llvm::ArrayRef
Definition:
LLVM.h:31
llvm::SmallString
Definition:
LLVM.h:34
llvm::MutableArrayRef
Definition:
LLVM.h:32
clang::isa
bool isa(CodeGen::Address addr)
Definition:
Address.h:112
llvm::IntrusiveRefCntPtr
Definition:
LLVM.h:44
llvm::OwningArrayRef
Definition:
LLVM.h:33
llvm::SmallVector
Definition:
LLVM.h:35
clang
Dataflow Directional Tag Classes.
Definition:
CFGReachabilityAnalysis.h:22
llvm::SaveAndRestore
Definition:
LLVM.h:41
clang::cast
U cast(CodeGen::Address addr)
Definition:
Address.h:109
Generated on Thu Feb 8 2018 09:14:02 for clang by
1.8.13