1 //===--- LLVM.h - Import various common LLVM datatypes ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file forward declares and imports various common LLVM datatypes that
11 // clang wants to use unqualified.
13 //===----------------------------------------------------------------------===//
15 #ifndef CLANG_BASIC_LLVM_H
16 #define CLANG_BASIC_LLVM_H
18 // This should be the only #include, force #includes of all the others on
20 #include "llvm/Support/Casting.h"
26 template<typename T> class ArrayRef;
27 template<class T> class OwningPtr;
28 template<unsigned InternalLen> class SmallString;
29 template<typename T, unsigned N> class SmallVector;
30 template<typename T> class SmallVectorImpl;
32 // Reference counting.
33 template <typename T> class IntrusiveRefCntPtr;
34 template <typename T> struct IntrusiveRefCntPtrInfo;
35 template <class Derived> class RefCountedBase;
36 class RefCountedBaseVPTR;
39 // TODO: DenseMap, ...
48 using llvm::dyn_cast_or_null;
49 using llvm::cast_or_null;
52 using llvm::StringRef;
55 using llvm::OwningPtr;
56 using llvm::SmallString;
57 using llvm::SmallVector;
58 using llvm::SmallVectorImpl;
60 // Reference counting.
61 using llvm::IntrusiveRefCntPtr;
62 using llvm::IntrusiveRefCntPtrInfo;
63 using llvm::RefCountedBase;
64 using llvm::RefCountedBaseVPTR;
66 using llvm::raw_ostream;
67 } // end namespace clang.