/third_party/selinux/libsepol/tests/ |
H A D | test-linker-cond-map.c | 55 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 in module_cond_tests() [all...] |
H A D | debug.c | 42 switch (cur->expr_type) { in display_expr() 65 fprintf(fp, "error! (%d)", cur->expr_type); in display_expr()
|
/third_party/toybox/kconfig/ |
H A D | expr.h | 34 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);
|
H A D | expr.c | 24 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 t [all...] |
/third_party/selinux/libsepol/src/ |
H A D | conditional.c | 125 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_LAS in expr_isvalid() [all...] |
H A D | kernel_to_cil.c | 45 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()
|
H A D | kernel_to_conf.c | 44 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()
|
H A D | policydb_validate.c | 244 if (cexp->expr_type == CEXPR_NAMES) { in validate_constraint_nodes() 284 } else if (cexp->expr_type == CEXPR_ATTR) { in validate_constraint_nodes() 319 switch (cexp->expr_type) { in validate_constraint_nodes() 966 switch(expr->expr_type) { in validate_cond_expr()
|
H A D | module_to_cil.c | 1274 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/ |
H A D | policy_define.h | 19 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);
|
H A D | policy_define.c | 3497 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() 4029 define_cond_expr(uint32_t expr_type, void *arg1, void *arg2) define_cond_expr() argument [all...] |
/third_party/selinux/libsepol/include/sepol/policydb/ |
H A D | constraint.h | 38 uint32_t expr_type; /* expression type */ member
|
H A D | conditional.h | 56 uint32_t expr_type; member
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_resolve_ast.h | 95 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_expr, struct cil_tree_node *parent, void *extra_args);
|
H A D | cil_binary.c | 2125 (*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 in __cil_constrain_expr_leaf_to_sepol_expr() [all...] |
/third_party/skia/third_party/externals/spirv-cross/ |
H A D | spirv_msl.cpp | 6778 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 7313 expr_type = &get<SPIRType>(get_extended_decoration(ops[2], SPIRVCrossDecorationTessIOOriginalInputTypeID)); in emit_tessellation_access_chain() 7316 if (!is_array(*expr_type) in emit_tessellation_access_chain() [all...] |
H A D | spirv_glsl.hpp | 773 std::string bitcast_expression(const SPIRType &target_type, SPIRType::BaseType expr_type, const std::string &expr); 906 virtual void cast_to_builtin_store(uint32_t target_id, std::string &expr, const SPIRType &expr_type); 907 virtual void cast_from_builtin_load(uint32_t source_id, std::string &expr, const SPIRType &expr_type);
|
H A D | spirv_glsl.cpp | 4304 string CompilerGLSL::dereference_expression(const SPIRType &expr_type, const std::string &expr) 4313 else if (expr_type.storage == StorageClassPhysicalStorageBufferEXT && expr_type.basetype != SPIRType::Struct && 4314 expr_type.pointer_depth == 1) 5883 auto &expr_type = expression_type(op0); 5888 expected_type.width = expr_type.width; 5891 if (expr_type.basetype != input_type) 5893 if (expr_type.basetype == SPIRType::Boolean) 8177 std::string CompilerGLSL::bitcast_expression(const SPIRType &target_type, SPIRType::BaseType expr_type, 8180 if (target_type.basetype == expr_type) [all...] |
H A D | spirv_hlsl.cpp | 4512 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::UInt && in get_bitcast_type() 5855 expr_type.vecsize == 2) in get_bitcast_type() 5858 expr_type.basetype == SPIRType::BaseType::UInt64) in get_bitcast_type()
|
/third_party/python/Python/ |
H A D | Python-ast.c | 201 Py_CLEAR(state->expr_type); in _PyAST_Fini() 1310 state->expr_type = make_type(state, "expr", state->AST_type, NULL, 0, in init_types() 1338 if (!state->expr_type) return 0; in init_types() 1339 if (!add_attributes(state, state->expr_type, expr_attributes, 4)) return 0; in init_types() 1340 if (PyObject_SetAttr(state->expr_type, state->end_lineno, Py_None) == -1) in init_types() 1342 if (PyObject_SetAttr(state->expr_type, state->end_col_offset, Py_None) == in init_types() 1345 state->BoolOp_type = make_type(state, "BoolOp", state->expr_type, in init_types() 1349 state->NamedExpr_type = make_type(state, "NamedExpr", state->expr_type, in init_types() 1353 state->BinOp_type = make_type(state, "BinOp", state->expr_type, in init_types() 1357 state->UnaryOp_type = make_type(state, "UnaryOp", state->expr_type, in init_types() [all...] |
/third_party/python/Include/internal/ |
H A D | pycore_ast_state.h | 188 PyObject *expr_type; member
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
H A D | builder.cc | 978 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() [all...] |
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
H A D | generator_impl.cc | 2602 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()
|
/third_party/selinux/checkpolicy/test/ |
H A D | dispol.c | 197 switch (cur->expr_type) { in display_expr()
|
/third_party/skia/third_party/externals/tint/src/reader/spirv/ |
H A D | function.cc | 4987 const Type* expr_type = nullptr; in MakeNumericConversion() local 4990 expr_type = requested_type; in MakeNumericConversion() 4998 expr_type = parser_impl_.GetUnsignedIntMatchingShape(arg_expr.type); in MakeNumericConversion() 5006 expr_type = parser_impl_.GetSignedIntMatchingShape(arg_expr.type); in MakeNumericConversion() 5013 if (expr_type == nullptr) { in MakeNumericConversion() 5021 expr_type, in MakeNumericConversion() 5022 builder_.Construct(GetSourceForInst(inst), expr_type->Build(builder_), in MakeNumericConversion() 5025 if (requested_type == expr_type) { in MakeNumericConversion()
|