/external/selinux/libsepol/tests/ |
D | test-linker-types.c | 100 static void test_type_datum(policydb_t * p, const char *id, unsigned int *decls, int len, unsigned … in test_type_datum() argument 116 type = hashtab_search(p->decl_val_to_struct[decls[i] - 1]->p_types.table, id); in test_type_datum() 127 unsigned int decls[2]; in base_type_tests() local 136 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_type_tests() 137 test_sym_presence(base, "g_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 140 test_sym_presence(base, "g_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 145 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_o1_b"))->decl_id; in base_type_tests() 146 test_sym_presence(base, "o1_b_type_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 149 test_sym_presence(base, "o1_b_attr_1", SYM_TYPES, SCOPE_DECL, decls, 1); in base_type_tests() 151 test_attr_types(base, "o1_b_attr_1", base->decl_val_to_struct[decls[0] - 1], types, 1); in base_type_tests() [all …]
|
D | test-linker-roles.c | 72 unsigned int decls[2]; in base_role_tests() local 79 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_b"))->decl_id; in base_role_tests() 80 test_sym_presence(base, "g_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 89 decls[0] = decl->decl_id; in base_role_tests() 90 test_sym_presence(base, "o1_b_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in base_role_tests() 102 unsigned int decls[3]; in module_role_tests() local 110 decls[0] = (test_find_decl_by_sym(base, SYM_TYPES, "tag_g_m1"))->decl_id; in module_role_tests() 111 test_sym_presence(base, "g_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() 120 decls[0] = decl->decl_id; in module_role_tests() 121 test_sym_presence(base, "o1_m1_role_1", SYM_ROLES, SCOPE_DECL, decls, 1); in module_role_tests() [all …]
|
D | test-linker-cond-map.c | 90 unsigned int decls[1]; in base_cond_tests() local 98 decls[0] = d->decl_id; in base_cond_tests() 99 test_sym_presence(base, "g_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests() 108 decls[0] = d->decl_id; in base_cond_tests() 109 test_sym_presence(base, "o1_b_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in base_cond_tests() 121 unsigned int decls[1]; in module_cond_tests() local 126 decls[0] = d->decl_id; in module_cond_tests() 127 test_sym_presence(base, "g_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests() 136 decls[0] = d->decl_id; in module_cond_tests() 137 test_sym_presence(base, "o1_m1_bool_1", SYM_BOOLS, SCOPE_DECL, decls, 1); in module_cond_tests() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | UnresolvedSet.h | 83 iterator begin() { return iterator(decls().begin()); } in begin() 84 iterator end() { return iterator(decls().end()); } in end() 86 const_iterator begin() const { return const_iterator(decls().begin()); } in begin() 87 const_iterator end() const { return const_iterator(decls().end()); } in end() 89 ArrayRef<DeclAccessPair> pairs() const { return decls(); } in pairs() 96 decls().push_back(DeclAccessPair::make(D, AS)); in addDecl() 103 for (DeclsTy::iterator I = decls().begin(), E = decls().end(); I != E; ++I) in replace() 117 void erase(unsigned I) { decls()[I] = decls().pop_back_val(); } in erase() 119 void erase(iterator I) { *I.I = decls().pop_back_val(); } in erase() 123 void clear() { decls().clear(); } in clear() [all …]
|
/external/clang/include/clang/AST/ |
D | UnresolvedSet.h | 76 iterator begin() { return iterator(decls().begin()); } in begin() 77 iterator end() { return iterator(decls().end()); } in end() 79 const_iterator begin() const { return const_iterator(decls().begin()); } in begin() 80 const_iterator end() const { return const_iterator(decls().end()); } in end() 87 decls().push_back(DeclAccessPair::make(D, AS)); in addDecl() 94 for (DeclsTy::iterator I = decls().begin(), E = decls().end(); I != E; ++I) in replace() 108 void erase(unsigned I) { decls()[I] = decls().pop_back_val(); } in erase() 110 void erase(iterator I) { *I.I = decls().pop_back_val(); } in erase() 114 void clear() { decls().clear(); } in clear() 115 void set_size(unsigned N) { decls().set_size(N); } in set_size() [all …]
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_state_vdecl.c | 46 SVGA3dVertexDecl decls[SVGA3D_INPUTREG_MAX]; in emit_hw_vs_vdecl() local 102 decls[i].identity.type = svga->curr.velems->decl_type[i]; in emit_hw_vs_vdecl() 103 decls[i].identity.method = SVGA3D_DECLMETHOD_DEFAULT; in emit_hw_vs_vdecl() 104 decls[i].identity.usage = usage; in emit_hw_vs_vdecl() 105 decls[i].identity.usageIndex = index; in emit_hw_vs_vdecl() 106 decls[i].array.stride = vb->stride; in emit_hw_vs_vdecl() 111 decls[i].array.offset = (vb->buffer_offset in emit_hw_vs_vdecl() 116 assert(decls[i].array.offset >= 0); in emit_hw_vs_vdecl() 125 decls, in emit_hw_vs_vdecl()
|
D | svga_pipe_streamout.c | 58 const SVGA3dStreamOutputDeclarationEntry decls[SVGA3D_MAX_STREAMOUT_DECLS], in svga_define_stream_output() 71 i, decls[i].outputSlot, decls[i].registerIndex, in svga_define_stream_output() 72 decls[i].registerMask, decls[i].stream); in svga_define_stream_output() 102 memcpy(map, decls, bufSize); in svga_define_stream_output() 120 decls)); in svga_define_stream_output() 136 SVGA3dStreamOutputDeclarationEntry decls[SVGA3D_MAX_STREAMOUT_DECLS]; in svga_create_stream_output() local 179 memset(decls, 0, sizeof(decls)); in svga_create_stream_output() 227 decls[numDecls].outputSlot = buf_idx, in svga_create_stream_output() 228 decls[numDecls].stream = info->output[i].stream; in svga_create_stream_output() 229 decls[numDecls].registerIndex = SVGA3D_INVALID_ID; in svga_create_stream_output() [all …]
|
/external/llvm-project/lldb/unittests/Expression/ |
D | ClangExpressionDeclMapTest.cpp | 87 llvm::SmallVector<clang::NamedDecl *, 16> decls; in TEST_F() local 91 NameSearchContext search(*target_ast, decls, name, dc); in TEST_F() 96 EXPECT_EQ(0U, decls.size()); in TEST_F() 110 llvm::SmallVector<clang::NamedDecl *, 16> decls; in TEST_F() local 114 NameSearchContext search(*target_ast, decls, name, dc); in TEST_F() 118 EXPECT_EQ(1U, decls.size()); in TEST_F() 119 EXPECT_EQ(decl_name, decls.front()->getQualifiedNameAsString()); in TEST_F() 120 auto *record = llvm::cast<clang::RecordDecl>(decls.front()); in TEST_F()
|
/external/antlr/runtime/Perl5/examples/tweak/ |
D | T.g | 2 * convert method with "public void", add decls. This shows how to insert 29 // decls is on body's local variable stack but is visible to 31 // it is referenced as $body::decls 32 // From within rule body, you can use $decls shorthand 33 decls; 36 $body::decls = []; 41 foreach my $id ($body::decls) { 47 stat: ID '=' expr ';' { $body::decls->add($ID.text); } // track left-hand-sides
|
/external/llvm-project/mlir/test/lib/Dialect/Test/ |
D | CMakeLists.txt | 8 mlir_tablegen(TestTypeInterfaces.h.inc -gen-type-interface-decls) 10 mlir_tablegen(TestOpInterfaces.h.inc -gen-op-interface-decls) 15 mlir_tablegen(TestTypeDefs.h.inc -gen-typedef-decls) 21 mlir_tablegen(TestOps.h.inc -gen-op-decls) 23 mlir_tablegen(TestOpsDialect.h.inc -gen-dialect-decls) 24 mlir_tablegen(TestOpEnums.h.inc -gen-enum-decls) 26 mlir_tablegen(TestOpStructs.h.inc -gen-struct-attr-decls)
|
/external/python/pycparser/examples/ |
D | cdecl.py | 123 decls = [_explain_decl_node(mem_decl) for mem_decl in decl.decls] 124 members = ', '.join(decls) 150 if not decl.decls: 154 decl.decls = struct.decls 156 for i, mem_decl in enumerate(decl.decls): 157 decl.decls[i] = _expand_in_place(mem_decl, file_ast, expand_struct, 160 decl.decls = []
|
/external/clang/utils/ |
D | modfuzz.py | 24 if i not in model.decls: 27 if i in model.decls: 33 model.decls[i] = True 36 decls = [ variable 69 self.decls = {} 140 model.modules[n] = (model.source, model.decls) 141 (model.source, model.decls) = ('', {}) 147 d = random.choice([decl for decl in decls if decl.valid(model)]) 158 model.decls.update(model.modules[module_name][1])
|
/external/llvm-project/clang/utils/ |
D | modfuzz.py | 25 if i not in model.decls: 28 if i in model.decls: 34 model.decls[i] = True 37 decls = [ variable 70 self.decls = {} 141 model.modules[n] = (model.source, model.decls) 142 (model.source, model.decls) = ('', {}) 148 d = random.choice([decl for decl in decls if decl.valid(model)]) 159 model.decls.update(model.modules[module_name][1])
|
/external/mesa3d/src/gallium/frontends/nine/ |
D | vertexdeclaration9.c | 195 This->decls = CALLOC(This->nelems+1, sizeof(D3DVERTEXELEMENT9)); in NineVertexDeclaration9_ctor() 198 if (!This->decls || !This->elems || !This->usage_map) { return E_OUTOFMEMORY; } in NineVertexDeclaration9_ctor() 199 memcpy(This->decls, pElements, sizeof(D3DVERTEXELEMENT9)*(This->nelems+1)); in NineVertexDeclaration9_ctor() 202 uint16_t usage = nine_d3d9_to_nine_declusage(This->decls[i].Usage, in NineVertexDeclaration9_ctor() 203 This->decls[i].UsageIndex); in NineVertexDeclaration9_ctor() 206 if (This->decls[i].Usage == D3DDECLUSAGE_POSITIONT) in NineVertexDeclaration9_ctor() 209 This->elems[i].src_offset = This->decls[i].Offset; in NineVertexDeclaration9_ctor() 211 This->elems[i].vertex_buffer_index = This->decls[i].Stream; in NineVertexDeclaration9_ctor() 212 This->elems[i].src_format = decltype_format(This->decls[i].Type); in NineVertexDeclaration9_ctor() 216 This->decls[i].Stream, in NineVertexDeclaration9_ctor() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/ |
D | CMakeLists.txt | 19 mlir_tablegen(${dialect}.h.inc -gen-op-decls) 21 mlir_tablegen(${dialect}_structs.h.inc -gen-struct-attr-decls) 31 mlir_tablegen(hlo_ops.h.inc -gen-op-decls) 33 mlir_tablegen(hlo_ops_base_structs.h.inc -gen-struct-attr-decls) 35 mlir_tablegen(hlo_ops_base_enums.h.inc -gen-enum-decls) 40 mlir_tablegen(lhlo_gpu_ops.h.inc -gen-op-decls) 43 mlir_tablegen(lhlo_gpu_ops_structs.h.inc -gen-struct-attr-decls) 46 mlir_tablegen(lhlo_gpu_ops_enums.h.inc -gen-enum-decls)
|
/external/llvm-project/clang/lib/AST/ |
D | DeclGroup.cpp | 28 DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) { in DeclGroup() argument 30 assert(decls); in DeclGroup() 31 std::uninitialized_copy(decls, decls + numdecls, in DeclGroup()
|
/external/clang/lib/AST/ |
D | DeclGroup.cpp | 28 DeclGroup::DeclGroup(unsigned numdecls, Decl** decls) : NumDecls(numdecls) { in DeclGroup() argument 30 assert(decls); in DeclGroup() 31 std::uninitialized_copy(decls, decls + numdecls, in DeclGroup()
|
/external/antlr/runtime/Python/tests/ |
D | t046rewrite.g | 24 decls 27 $body::decls = set() 31 for it in $body::decls: 36 stat: ID '=' expr ';' {$body::decls.add($ID.text);}
|
/external/antlr/runtime/Python3/tests/ |
D | t046rewrite.g | 24 decls 27 $body::decls = set() 31 for it in $body::decls: 36 stat: ID '=' expr ';' {$body::decls.add($ID.text);}
|
/external/antlr/runtime/JavaScript/tests/functional/ |
D | t046rewrite.g | 24 decls 27 $body::decls = {}; 32 for (it in $body::decls) { 38 stat: ID '=' expr ';' {$body::decls[$ID.text] = true;}
|
/external/llvm-project/mlir/include/mlir/Dialect/GPU/ |
D | CMakeLists.txt | 5 mlir_tablegen(GPUOpInterfaces.h.inc -gen-op-interface-decls) 10 mlir_tablegen(ParallelLoopMapperAttr.h.inc -gen-struct-attr-decls) 15 mlir_tablegen(ParallelLoopMapperEnums.h.inc -gen-enum-decls) 20 mlir_tablegen(Passes.h.inc -gen-pass-decls -name GPU)
|
/external/antlr/runtime/Cpp/tests/ |
D | t046rewrite.g | 37 decls 40 $body::decls = set() 44 for it in $body::decls: 49 stat: ID '=' expr ';' {$body::decls.add($ID.text);}
|
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/ |
D | CMakeLists.txt | 5 mlir_tablegen(SPIRVEnums.h.inc -gen-enum-decls) 11 mlir_tablegen(SPIRVEnumAvailability.h.inc -gen-spirv-enum-avail-decls) 18 mlir_tablegen(SPIRVAvailability.h.inc -gen-avail-interface-decls) 35 mlir_tablegen(TargetAndABI.h.inc -gen-struct-attr-decls) 41 mlir_tablegen(Passes.h.inc -gen-pass-decls -name SPIRV)
|
/external/llvm-project/lldb/source/Symbol/ |
D | DeclVendor.cpp | 23 std::vector<CompilerDecl> decls; in FindTypes() local 24 if (FindDecls(name, /*append*/ true, max_matches, decls)) in FindTypes() 25 for (auto decl : decls) in FindTypes()
|
/external/skqp/src/sksl/ |
D | SkSLPipelineStageCodeGenerator.cpp | 87 const VarDeclarations& decls = (const VarDeclarations&) p; in writeFunctionCall() local 88 for (const auto& raw : decls.fVars) { in writeFunctionCall() 142 const VarDeclarations& decls = (const VarDeclarations&) e; in writeVariableReference() local 143 for (const auto& decl : decls.fVars) { in writeVariableReference() 216 const VarDeclarations& decls = (const VarDeclarations&) p; in writeProgramElement() local 217 if (!decls.fVars.size()) { in writeProgramElement() 220 const Variable& var = *((VarDeclaration&) *decls.fVars[0]).fVar; in writeProgramElement()
|