Home
last modified time | relevance | path

Searched refs:expr_type (Results 1 – 25 of 37) sorted by relevance

12

/third_party/selinux/libsepol/tests/
Dtest-linker-cond-map.c55 uint32_t expr_type; member
71 CU_ASSERT(expr->expr_type == bools[i].expr_type); in test_cond_expr_mapping()
104 bools[0].expr_type = COND_BOOL; in base_cond_tests()
114 bools[0].expr_type = COND_BOOL; in base_cond_tests()
132 bools[0].expr_type = COND_BOOL; in module_cond_tests()
142 bools[0].expr_type = COND_BOOL; in module_cond_tests()
154 bools[0].expr_type = COND_BOOL; in module_cond_tests()
156 bools[1].expr_type = COND_BOOL; in module_cond_tests()
158 bools[2].expr_type = COND_AND; in module_cond_tests()
Ddebug.c42 switch (cur->expr_type) { in display_expr()
65 fprintf(fp, "error! (%d)", cur->expr_type); in display_expr()
/third_party/toybox/kconfig/
Dexpr.h34 enum expr_type { enum
44 enum expr_type type;
162 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
163 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
164 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
180 void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2);
181 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
Dlkc_proto.h41 P(expr_compare_type,int,(enum expr_type t1, enum expr_type t2));
Dexpr.c24 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one()
33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two()
43 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp()
135 static void __expr_eliminate_eq(enum expr_type type, struct expr **ep1, struct expr **ep2) in __expr_eliminate_eq()
509 static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2) in expr_eliminate_dups1()
561 static void expr_eliminate_dups2(enum expr_type type, struct expr **ep1, struct expr **ep2) in expr_eliminate_dups2()
853 void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2) in expr_extract_eq()
882 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym) in expr_trans_compare()
984 int expr_compare_type(enum expr_type t1, enum expr_type t2) in expr_compare_type()
/third_party/selinux/libsepol/src/
Dconditional.c125 if (cur_a->expr_type != cur_b->expr_type) in cond_expr_equal()
127 if (cur_a->expr_type == COND_BOOL) { in cond_expr_equal()
221 switch (cur->expr_type) { in cond_evaluate_expr()
281 new_expr->expr_type = cur->expr_type; in cond_copy_expr()
367 if (e->expr_type == COND_NOT) { in cond_normalize_expr()
388 switch (e->expr_type) { in cond_normalize_expr()
735 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_isvalid()
777 expr->expr_type = le32_to_cpu(buf[0]); in cond_read_node()
Dpolicydb_validate.c239 if (cexp->expr_type == CEXPR_NAMES) { in validate_constraint_nodes()
279 } else if (cexp->expr_type == CEXPR_ATTR) { in validate_constraint_nodes()
314 switch (cexp->expr_type) { in validate_constraint_nodes()
889 switch(expr->expr_type) { in validate_cond_expr()
Dkernel_to_conf.c44 if (curr->expr_type == COND_BOOL) { in cond_expr_to_str()
53 switch(curr->expr_type) { in cond_expr_to_str()
61 sepol_log_err("Unknown conditional operator: %i", curr->expr_type); in cond_expr_to_str()
136 if (curr->expr_type == CEXPR_ATTR || curr->expr_type == CEXPR_NAMES) { in constraint_expr_to_str()
176 if (curr->expr_type == CEXPR_ATTR) { in constraint_expr_to_str()
207 switch (curr->expr_type) { in constraint_expr_to_str()
212 sepol_log_err("Unknown constraint expression type: %i", curr->expr_type); in constraint_expr_to_str()
Dkernel_to_cil.c45 if (curr->expr_type == COND_BOOL) { in cond_expr_to_str()
54 switch(curr->expr_type) { in cond_expr_to_str()
63 curr->expr_type); in cond_expr_to_str()
138 if (curr->expr_type == CEXPR_ATTR || curr->expr_type == CEXPR_NAMES) { in constraint_expr_to_str()
179 if (curr->expr_type == CEXPR_ATTR) { in constraint_expr_to_str()
210 switch (curr->expr_type) { in constraint_expr_to_str()
216 curr->expr_type); in constraint_expr_to_str()
Dmodule_to_cil.c1274 if (curr->expr_type == COND_BOOL) { in cond_expr_to_cil()
1291 switch(curr->expr_type) { in cond_expr_to_cil()
1303 num_params = curr->expr_type == COND_NOT ? 1 : 2; in cond_expr_to_cil()
1734 if (expr->expr_type == CEXPR_ATTR || expr->expr_type == CEXPR_NAMES) { in constraint_expr_to_string()
1769 if (expr->expr_type == CEXPR_ATTR) { in constraint_expr_to_string()
1842 switch (expr->expr_type) { in constraint_expr_to_string()
1847 log_err("Unknown constraint expression type: %i", expr->expr_type); in constraint_expr_to_string()
1852 num_params = expr->expr_type == CEXPR_NOT ? 1 : 2; in constraint_expr_to_string()
/third_party/selinux/checkpolicy/
Dpolicy_define.h19 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void* arg2);
75 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2);
Dpolicy_define.c3497 newe->expr_type = e->expr_type; in constraint_expr_clone()
3500 if (newe->expr_type == CEXPR_NAMES) { in constraint_expr_clone()
3543 switch (e->expr_type) { in define_constraint()
3702 switch (e->expr_type) { in define_validatetrans()
3783 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2) in define_cexpr() argument
3794 if (expr_type == CEXPR_NAMES) { in define_cexpr()
3807 expr->expr_type = expr_type; in define_cexpr()
3809 switch (expr_type) { in define_cexpr()
3960 switch (e->expr_type) { in define_conditional()
4029 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void *arg2) in define_cond_expr() argument
[all …]
/third_party/selinux/libsepol/include/sepol/policydb/
Dconstraint.h39 uint32_t expr_type; /* expression type */ member
Dconditional.h56 uint32_t expr_type; member
/third_party/selinux/libsepol/cil/src/
Dcil_resolve_ast.h95 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_…
Dcil_binary.c2125 (*head)->expr_type = COND_BOOL; in __cil_cond_item_to_sepol_expr()
2167 op->expr_type = COND_NOT; in __cil_cond_expr_to_sepol_expr_helper()
2170 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
2173 op->expr_type = COND_AND; in __cil_cond_expr_to_sepol_expr_helper()
2176 op->expr_type = COND_XOR; in __cil_cond_expr_to_sepol_expr_helper()
2179 op->expr_type = COND_EQ; in __cil_cond_expr_to_sepol_expr_helper()
2182 op->expr_type = COND_NEQ; in __cil_cond_expr_to_sepol_expr_helper()
2231 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
2265 switch (e->expr_type) { in __cil_validate_cond_expr()
2705 expr->expr_type = CEXPR_ATTR; in __cil_constrain_expr_leaf_to_sepol_expr()
[all …]
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_msl.cpp6778 auto &expr_type = get_pointee_type(ptr_type.self); in emit_tessellation_io_load() local
6834 expr_type.vecsize > sub_type.vecsize) in emit_tessellation_io_load()
6878 const auto &expr_mbr_type = get<SPIRType>(expr_type.member_types[j]); in emit_tessellation_io_load()
6980 if (expr_type.vecsize > result_type.vecsize) in emit_tessellation_io_load()
6998 if (expr_type.vecsize > result_type.vecsize) in emit_tessellation_io_load()
7025 if (expr_type.vecsize > result_type.vecsize) in emit_tessellation_io_load()
7046 if (expr_type.vecsize > result_type.vecsize) in emit_tessellation_io_load()
7311 auto *expr_type = &get_variable_data_type(*var); in emit_tessellation_access_chain() local
7313expr_type = &get<SPIRType>(get_extended_decoration(ops[2], SPIRVCrossDecorationTessIOOriginalInput… in emit_tessellation_access_chain()
7316 if (!is_array(*expr_type) && expr_type->basetype == SPIRType::Struct) in emit_tessellation_access_chain()
[all …]
Dspirv_glsl.hpp773 …std::string bitcast_expression(const SPIRType &target_type, SPIRType::BaseType expr_type, const st…
906 …rtual void cast_to_builtin_store(uint32_t target_id, std::string &expr, const SPIRType &expr_type);
907 …tual void cast_from_builtin_load(uint32_t source_id, std::string &expr, const SPIRType &expr_type);
Dspirv_hlsl.cpp4512 SPIRType::BaseType expr_type; in emit_atomic() local
4516 expr_type = data_type.basetype; in emit_atomic()
4524 expr_type = SPIRType::UInt; in emit_atomic()
4529 auto expr = bitcast_expression(type, expr_type, to_name(id)); in emit_atomic()
5852 auto &expr_type = expression_type(op0); in get_bitcast_type() local
5854 …if (rslt_type.basetype == SPIRType::BaseType::UInt64 && expr_type.basetype == SPIRType::BaseType::… in get_bitcast_type()
5855 expr_type.vecsize == 2) in get_bitcast_type()
5858 expr_type.basetype == SPIRType::BaseType::UInt64) in get_bitcast_type()
Dspirv_glsl.cpp4304 string CompilerGLSL::dereference_expression(const SPIRType &expr_type, const std::string &expr) in dereference_expression() argument
4313 …else if (expr_type.storage == StorageClassPhysicalStorageBufferEXT && expr_type.basetype != SPIRTy… in dereference_expression()
4314 expr_type.pointer_depth == 1) in dereference_expression()
5883 auto &expr_type = expression_type(op0); in emit_unary_func_op_cast() local
5888 expected_type.width = expr_type.width; in emit_unary_func_op_cast()
5891 if (expr_type.basetype != input_type) in emit_unary_func_op_cast()
5893 if (expr_type.basetype == SPIRType::Boolean) in emit_unary_func_op_cast()
8177 …:string CompilerGLSL::bitcast_expression(const SPIRType &target_type, SPIRType::BaseType expr_type, in bitcast_expression() argument
8180 if (target_type.basetype == expr_type) in bitcast_expression()
8184 src_type.basetype = expr_type; in bitcast_expression()
[all …]
Dspirv_msl.hpp958 …void cast_to_builtin_store(uint32_t target_id, std::string &expr, const SPIRType &expr_type) overr…
959 …void cast_from_builtin_load(uint32_t source_id, std::string &expr, const SPIRType &expr_type) over…
/third_party/python/Python/
DPython-ast.c199 Py_CLEAR(state->expr_type); in _PyAST_Fini()
1297 state->expr_type = make_type(state, "expr", state->AST_type, NULL, 0, in init_types()
1325 if (!state->expr_type) return 0; in init_types()
1326 if (!add_attributes(state, state->expr_type, expr_attributes, 4)) return 0; in init_types()
1327 if (PyObject_SetAttr(state->expr_type, state->end_lineno, Py_None) == -1) in init_types()
1329 if (PyObject_SetAttr(state->expr_type, state->end_col_offset, Py_None) == in init_types()
1332 state->BoolOp_type = make_type(state, "BoolOp", state->expr_type, in init_types()
1336 state->NamedExpr_type = make_type(state, "NamedExpr", state->expr_type, in init_types()
1340 state->BinOp_type = make_type(state, "BinOp", state->expr_type, in init_types()
1344 state->UnaryOp_type = make_type(state, "UnaryOp", state->expr_type, in init_types()
[all …]
/third_party/python/Include/internal/
Dpycore_ast_state.h185 PyObject *expr_type; member
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder.cc978 auto* expr_type = expr_sem->Type(); in GenerateMemberAccessor() local
989 info->source_type = expr_type; in GenerateMemberAccessor()
991 auto result_type_id = GenerateTypeIfNeeded(expr_type); in GenerateMemberAccessor()
1006 info->source_type = expr_type; in GenerateMemberAccessor()
1023 auto result_type_id = GenerateTypeIfNeeded(expr_type); in GenerateMemberAccessor()
1038 info->source_type = expr_type; in GenerateMemberAccessor()
1066 info->source_id = GenerateLoadIfNeeded(expr_type, extract_id); in GenerateMemberAccessor()
1067 info->source_type = expr_type->UnwrapRef(); in GenerateMemberAccessor()
1071 auto result_type_id = GenerateTypeIfNeeded(expr_type); in GenerateMemberAccessor()
1092 info->source_type = expr_type; in GenerateMemberAccessor()
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl.cc2602 auto* expr_type = TypeOf(expr->expr)->UnwrapRef(); in EmitUnaryOp() local
2604 expr_type->is_signed_scalar_or_vector()) { in EmitUnaryOp()
2606 utils::GetOrCreate(unary_minus_funcs_, expr_type, [&]() -> std::string { in EmitUnaryOp()
2617 if (!EmitTypeAndName(decl, expr_type, fn_name)) { in EmitUnaryOp()
2621 if (!EmitType(decl, expr_type, "")) { in EmitUnaryOp()

12