/external/llvm/include/llvm/ADT/ |
ArrayRef.h | 1 //===--- ArrayRef.h - Array Reference Wrapper -------------------*- C++ -*-===// 19 /// ArrayRef - Represent a constant reference to an array (0 or more elements 25 /// extends past that of the ArrayRef. For this reason, it is not in general 26 /// safe to store an ArrayRef. 31 class ArrayRef { 50 /// Construct an empty ArrayRef. 51 /*implicit*/ ArrayRef() : Data(nullptr), Length(0) {} 53 /// Construct an empty ArrayRef from None. 54 /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {} 56 /// Construct an ArrayRef from a single element [all...] |
edit_distance.h | 19 #include "llvm/ADT/ArrayRef.h" 43 unsigned ComputeEditDistance(ArrayRef<T> FromArray, ArrayRef<T> ToArray, 55 typename ArrayRef<T>::size_type m = FromArray.size(); 56 typename ArrayRef<T>::size_type n = ToArray.size(); 71 for (typename ArrayRef<T>::size_type y = 1; y <= m; ++y) { 75 for (typename ArrayRef<T>::size_type x = 1; x <= n; ++x) {
|
/external/llvm/unittests/ADT/ |
ArrayRefTest.cpp | 1 //===- llvm/unittest/ADT/ArrayRefTest.cpp - ArrayRef unit tests -----------===// 10 #include "llvm/ADT/ArrayRef.h" 17 // Check that the ArrayRef-of-pointer converting constructor only allows adding 20 std::is_convertible<ArrayRef<int *>, ArrayRef<const int *>>::value, 23 std::is_convertible<ArrayRef<int *>, ArrayRef<volatile int *>>::value, 25 static_assert(!std::is_convertible<ArrayRef<int *>, ArrayRef<float *>>::value, 28 !std::is_convertible<ArrayRef<const int *>, ArrayRef<int *>>::value [all...] |
VariadicFunctionTest.cpp | 11 #include "llvm/ADT/ArrayRef.h" 19 std::string StringCatImpl(ArrayRef<const std::string *> Args) { 42 long SumImpl(ArrayRef<const int *> Args) { 59 int StringAppendImpl(std::string *Dest, ArrayRef<const std::string *> Args) { 89 ArrayRef<const int *> Args) {
|
/art/compiler/linker/x86_64/ |
relative_patcher_x86_64_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 31 static const ArrayRef<const uint8_t> kDexCacheLoadCode; 44 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kCallCode(kCallRawCode); 51 const ArrayRef<const uint8_t> X86_64RelativePatcherTest::kDexCacheLoadCode( 58 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); 64 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 71 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); 75 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); 86 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); 93 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))) [all...] |
/art/compiler/utils/ |
array_ref.h | 30 * @details The template class ArrayRef provides a container that references 31 * an external array. This external array must remain alive while the ArrayRef 41 class ArrayRef { 60 constexpr ArrayRef() 65 constexpr ArrayRef(T (&array)[size]) 70 constexpr ArrayRef(U (&array)[size], 76 constexpr ArrayRef(T* array_in, size_t size_in) 81 explicit ArrayRef(std::vector<T, Alloc>& v) 86 ArrayRef(const std::vector<U, Alloc>& v, 92 ArrayRef(const ArrayRef&) = default [all...] |
/art/compiler/linker/x86/ |
relative_patcher_x86_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 42 const ArrayRef<const uint8_t> X86RelativePatcherTest::kCallCode(kCallRawCode); 48 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); 54 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))); 61 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(method1_patches)); 65 AddCompiledMethod(MethodRef(2u), kCallCode, ArrayRef<const LinkerPatch>(method2_patches)); 76 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(method1_expected_code))); 83 EXPECT_TRUE(CheckLinkedMethod(MethodRef(2u), ArrayRef<const uint8_t>(method2_expected_code))); 90 AddCompiledMethod(MethodRef(1u), kCallCode, ArrayRef<const LinkerPatch>(patches)); 101 EXPECT_TRUE(CheckLinkedMethod(MethodRef(1u), ArrayRef<const uint8_t>(expected_code))) [all...] |
/external/llvm/include/llvm/ProfileData/ |
CoverageMappingWriter.h | 18 #include "llvm/ADT/ArrayRef.h" 29 ArrayRef<StringRef> Filenames; 32 CoverageFilenamesSectionWriter(ArrayRef<StringRef> Filenames) 41 ArrayRef<unsigned> VirtualFileMapping; 42 ArrayRef<CounterExpression> Expressions; 46 CoverageMappingWriter(ArrayRef<unsigned> VirtualFileMapping, 47 ArrayRef<CounterExpression> Expressions, 52 CoverageMappingWriter(ArrayRef<CounterExpression> Expressions,
|
/art/compiler/ |
compiled_method.cc | 23 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array) 29 void CompiledCode::SetCode(const ArrayRef<const uint8_t>* quick_code) { 126 const ArrayRef<const uint8_t>& quick_code, 131 const ArrayRef<const uint8_t>& mapping_table, 132 const ArrayRef<const uint8_t>& vmap_table, 133 const ArrayRef<const uint8_t>& native_gc_map, 134 const ArrayRef<const uint8_t>& cfi_info, 135 const ArrayRef<const LinkerPatch>& patches) 160 driver->DeduplicateSrcMappingTable(ArrayRef<SrcMapElem>()) : 161 driver->DeduplicateSrcMappingTable(ArrayRef<SrcMapElem>(*src_mapping_table)) [all...] |
compiled_method.h | 38 const ArrayRef<const uint8_t>& quick_code, bool owns_code_array); 50 void SetCode(const ArrayRef<const uint8_t>* quick_code); 314 const ArrayRef<const uint8_t>& quick_code, 319 const ArrayRef<const uint8_t>& mapping_table, 320 const ArrayRef<const uint8_t>& vmap_table, 321 const ArrayRef<const uint8_t>& native_gc_map, 322 const ArrayRef<const uint8_t>& cfi_info, 323 const ArrayRef<const LinkerPatch>& patches); 330 const ArrayRef<const uint8_t>& quick_code, 335 const ArrayRef<const uint8_t>& mapping_table [all...] |
/external/clang/lib/AST/ |
SelectorLocationsKind.cpp | 65 SourceLocation getArgLoc(unsigned Index, ArrayRef<T*> Args) { 71 ArrayRef<SourceLocation> SelLocs, 72 ArrayRef<T *> Args, 98 ArrayRef<SourceLocation> SelLocs, 99 ArrayRef<Expr *> Args, 107 ArrayRef<Expr *> Args, 115 ArrayRef<SourceLocation> SelLocs, 116 ArrayRef<ParmVarDecl *> Args, 124 ArrayRef<ParmVarDecl *> Args,
|
/art/compiler/linker/arm/ |
relative_patcher_thumb2_test.cc | 29 static const ArrayRef<const uint8_t> kCallCode; 31 static const ArrayRef<const uint8_t> kNopCode; 41 bool Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, 42 const ArrayRef<const LinkerPatch>& method1_patches, 43 const ArrayRef<const uint8_t>& method3_code, 44 const ArrayRef<const LinkerPatch>& method3_patches, 61 ArrayRef<const uint8_t> method2_code(method2_raw_code); 62 AddCompiledMethod(MethodRef(2u), method2_code, ArrayRef<const LinkerPatch>()); 96 ArrayRef<const uint8_t> expected_code(patcher->thunk_code_); 102 ArrayRef<const uint8_t> linked_code(&output_[thunk_offset], expected_code.size()) [all...] |
/external/llvm/lib/IR/ |
ConstantFold.h | 22 #include "llvm/ADT/ArrayRef.h" 43 ArrayRef<unsigned> Idxs); 45 ArrayRef<unsigned> Idxs); 51 ArrayRef<Constant *> Idxs); 53 ArrayRef<Value *> Idxs);
|
/art/compiler/linker/arm64/ |
relative_patcher_arm64_test.cc | 30 static const ArrayRef<const uint8_t> kCallCode; 32 static const ArrayRef<const uint8_t> kNopCode; 54 uint32_t Create2MethodsWithGap(const ArrayRef<const uint8_t>& method1_code, 55 const ArrayRef<const LinkerPatch>& method1_patches, 56 const ArrayRef<const uint8_t>& last_method_code, 57 const ArrayRef<const LinkerPatch>& last_method_patches, 81 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), 82 ArrayRef<const LinkerPatch>()); 87 AddCompiledMethod(MethodRef(method_idx), ArrayRef<const uint8_t>(gap_code), 88 ArrayRef<const LinkerPatch>()) [all...] |
/external/clang/include/clang/AST/ |
CommentSema.h | 20 #include "llvm/ADT/ArrayRef.h" 81 ArrayRef<T> copyArray(ArrayRef<T> Source) { 92 ArrayRef<InlineContentComment *> Content); 100 ArrayRef<BlockCommandComment::Argument> Args); 168 ArrayRef<VerbatimBlockLineComment *> Lines); 179 ArrayRef<HTMLStartTagComment::Attribute> Attrs, 187 FullComment *actOnFullComment(ArrayRef<BlockContentComment *> Blocks); 227 ArrayRef<const ParmVarDecl *> getParamVars(); 235 ArrayRef<const ParmVarDecl *> ParamVars) [all...] |
SelectorLocationsKind.h | 47 ArrayRef<SourceLocation> SelLocs, 48 ArrayRef<Expr *> Args, 60 ArrayRef<Expr *> Args, 65 ArrayRef<SourceLocation> SelLocs, 66 ArrayRef<ParmVarDecl *> Args, 78 ArrayRef<ParmVarDecl *> Args,
|
DeclOpenMP.h | 19 #include "llvm/ADT/ArrayRef.h" 45 ArrayRef<const Expr *> getVars() const { 56 void setVars(ArrayRef<Expr *> VL); 61 ArrayRef<Expr *> VL); 66 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator;
|
OpenMPClause.h | 88 void setVarRefs(ArrayRef<Expr *> VL) { 112 typedef ArrayRef<const Expr *>::iterator varlist_const_iterator; 137 ArrayRef<const Expr *> getVarRefs() const { 954 void setPrivateCopies(ArrayRef<Expr *> VL); 961 ArrayRef<const Expr *> getPrivateCopies() const { 977 SourceLocation EndLoc, ArrayRef<Expr *> VL, 978 ArrayRef<Expr *> PrivateVL); 987 typedef ArrayRef<const Expr *>::iterator private_copies_const_iterator; [all...] |
/art/compiler/linker/ |
relative_patcher_test.h | 71 const ArrayRef<const uint8_t>& code, 72 const ArrayRef<const LinkerPatch>& patches) { 76 0u, 0u, 0u, nullptr, ArrayRef<const uint8_t>(), ArrayRef<const uint8_t>(), 77 ArrayRef<const uint8_t>(), ArrayRef<const uint8_t>(), 127 ArrayRef<const uint8_t> code(*compiled_method->GetQuickCode()); 130 code = ArrayRef<const uint8_t>(patched_code_); 155 bool CheckLinkedMethod(MethodReference method_ref, const ArrayRef<const uint8_t>& expected_code) { 173 ArrayRef<const uint8_t> linked_code(&output_[offset], expected_code.size()) [all...] |
/external/llvm/include/llvm/Support/ |
MD5.h | 31 #include "llvm/ADT/ArrayRef.h" 52 void update(ArrayRef<uint8_t> Data); 65 const uint8_t *body(ArrayRef<uint8_t> Data);
|
/external/llvm/include/llvm/TableGen/ |
Error.h | 22 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 31 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(ArrayRef<SMLoc> ErrorLoc,
|
/external/clang/include/clang/Frontend/ |
DiagnosticRenderer.h | 78 ArrayRef<CharSourceRange> Ranges, 84 ArrayRef<CharSourceRange> Ranges, 90 ArrayRef<FixItHint> Hints, 118 ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, 122 ArrayRef<CharSourceRange> Ranges, 123 ArrayRef<FixItHint> Hints, 143 StringRef Message, ArrayRef<CharSourceRange> Ranges, 144 ArrayRef<FixItHint> FixItHints,
|
/external/antlr/antlr-3.4/runtime/Perl5/lib/ANTLR/Runtime/ |
DFA.pm | 10 isa => 'ArrayRef[Int]', 15 isa => 'ArrayRef[Int]', 20 isa => 'ArrayRef[Str]', 25 isa => 'ArrayRef[Str]', 30 isa => 'ArrayRef[Int]', 35 isa => 'ArrayRef[Int]', 40 isa => 'ArrayRef[ArrayRef[Int]]',
|
/frameworks/compile/mclinker/include/mcld/Support/ |
MemoryRegion.h | 14 #include <llvm/ADT/ArrayRef.h> 22 typedef llvm::ArrayRef<uint8_t> ConstMemoryRegion;
|
/external/llvm/include/llvm/Object/ |
MachO.h | 18 #include "llvm/ADT/ArrayRef.h" 59 ExportEntry(ArrayRef<uint8_t> Trie); 95 ArrayRef<uint8_t> Trie; 110 MachORebaseEntry(ArrayRef<uint8_t> opcodes, bool is64Bit); 126 ArrayRef<uint8_t> Opcodes; 148 MachOBindEntry(ArrayRef<uint8_t> Opcodes, bool is64Bit, MachOBindEntry::Kind); 169 ArrayRef<uint8_t> Opcodes; 280 static iterator_range<export_iterator> exports(ArrayRef<uint8_t> Trie); 286 static iterator_range<rebase_iterator> rebaseTable(ArrayRef<uint8_t> Opcodes, 299 static iterator_range<bind_iterator> bindTable(ArrayRef<uint8_t> Opcodes [all...] |