Home
last modified time | relevance | path

Searched refs:decls (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/external/selinux/libsepol/tests/
Dtest-linker-types.c100 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 …]
Dtest-linker-roles.c72 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 …]
Dtest-linker-cond-map.c90 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/
DUnresolvedSet.h83 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/
DUnresolvedSet.h76 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/
Dsvga_state_vdecl.c46 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()
Dsvga_pipe_streamout.c58 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/
DClangExpressionDeclMapTest.cpp87 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/
DT.g2 * 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/
DCMakeLists.txt8 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/
Dcdecl.py123 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/mesa3d/src/gallium/frontends/nine/
Dvertexdeclaration9.c195 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/clang/utils/
Dmodfuzz.py24 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/
Dmodfuzz.py25 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/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/IR/
DCMakeLists.txt19 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/
DDeclGroup.cpp28 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/
DDeclGroup.cpp28 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/
Dt046rewrite.g24 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/
Dt046rewrite.g24 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/
Dt046rewrite.g24 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/
DCMakeLists.txt5 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/
Dt046rewrite.g37 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/
DCMakeLists.txt5 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/python/pycparser/pycparser/
Dc_parser.py375 def _build_declarations(self, spec, decls, typedef_namespace=False): argument
386 if decls[0].get('bitsize') is not None:
394 elif decls[0]['decl'] is None:
405 decls[0]['decl'] = c_ast.TypeDecl(
416 elif not isinstance(decls[0]['decl'],
418 decls_0_tail = decls[0]['decl']
425 for decl in decls:
471 decls=[dict(decl=decl, init=None)],
696 decls = [c_ast.Decl(
712 decls = self._build_declarations(
[all …]
/external/skqp/src/sksl/
DSkSLPipelineStageCodeGenerator.cpp87 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()

12345678910>>...19