| /netbsd-src/external/bsd/kyua-cli/dist/utils/sqlite/ |
| H A D | statement_test.cpp | 50 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() local 53 ATF_REQUIRE(!stmt.step()); in ATF_TEST_CASE_BODY() 63 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() local 66 ATF_REQUIRE(stmt.step()); in ATF_TEST_CASE_BODY() 67 ATF_REQUIRE(!stmt.step()); in ATF_TEST_CASE_BODY() 75 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() local 77 ATF_REQUIRE(!stmt.step()); in ATF_TEST_CASE_BODY() 78 REQUIRE_API_ERROR("sqlite3_step", stmt.step()); in ATF_TEST_CASE_BODY() 86 sqlite::statement stmt = db.create_statement( in ATF_TEST_CASE_BODY() local 89 stmt.step_without_results(); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/tests/usr.bin/indent/ |
| H A D | opt_eei.c | 20 stmt(); 24 stmt(); 27 stmt(); 30 stmt(); 42 stmt(); 46 stmt(); 49 stmt(); 52 stmt(); 66 stmt(); 70 stmt(); [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/ |
| H A D | tree-ssa-operands.c | 301 add_use_op (struct function *fn, gimple *stmt, tree *op, use_optype_p last) in add_use_op() argument 307 link_imm_use_stmt (USE_OP_PTR (new_use), *op, stmt); in add_use_op() 319 finalize_ssa_defs (struct function *fn, gimple *stmt) in finalize_ssa_defs() argument 324 tree oldvdef = gimple_vdef (stmt); in finalize_ssa_defs() 329 gimple_set_vdef (stmt, build_vdef); in finalize_ssa_defs() 334 && gimple_vdef (stmt) != NULL_TREE) in finalize_ssa_defs() 336 if (TREE_CODE (gimple_vdef (stmt)) == SSA_NAME) in finalize_ssa_defs() 338 unlink_stmt_vdef (stmt); in finalize_ssa_defs() 339 release_ssa_name_fn (fn, gimple_vdef (stmt)); in finalize_ssa_defs() 341 gimple_set_vdef (stmt, NULL_TREE); in finalize_ssa_defs() [all …]
|
| H A D | gimple-walk.c | 90 walk_gimple_asm (gasm *stmt, walk_tree_fn callback_op, in walk_gimple_asm() argument 100 noutputs = gimple_asm_noutputs (stmt); in walk_gimple_asm() 105 op = gimple_asm_output_op (stmt, i); in walk_gimple_asm() 121 n = gimple_asm_ninputs (stmt); in walk_gimple_asm() 124 op = gimple_asm_input_op (stmt, i); in walk_gimple_asm() 148 n = gimple_asm_nlabels (stmt); in walk_gimple_asm() 151 op = gimple_asm_label_op (stmt, i); in walk_gimple_asm() 177 walk_gimple_op (gimple *stmt, walk_tree_fn callback_op, in walk_gimple_op() argument 185 wi->stmt = stmt; in walk_gimple_op() 187 switch (gimple_code (stmt)) in walk_gimple_op() [all …]
|
| H A D | tree-ssa-dse.c | 97 initialize_ao_ref_for_dse (gimple *stmt, ao_ref *write) in initialize_ao_ref_for_dse() argument 100 if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL)) in initialize_ao_ref_for_dse() 102 switch (DECL_FUNCTION_CODE (gimple_call_fndecl (stmt))) in initialize_ao_ref_for_dse() 113 tree size = gimple_call_arg (stmt, 2); in initialize_ao_ref_for_dse() 114 tree ptr = gimple_call_arg (stmt, 0); in initialize_ao_ref_for_dse() 124 tree nelem = gimple_call_arg (stmt, 0); in initialize_ao_ref_for_dse() 125 tree selem = gimple_call_arg (stmt, 1); in initialize_ao_ref_for_dse() 129 && (lhs = gimple_call_lhs (stmt)) != NULL_TREE) in initialize_ao_ref_for_dse() 142 else if (is_gimple_assign (stmt)) in initialize_ao_ref_for_dse() 144 ao_ref_init (write, gimple_assign_lhs (stmt)); in initialize_ao_ref_for_dse() [all …]
|
| H A D | tree-ssa-dce.c | 130 mark_stmt_necessary (gimple *stmt, bool add_to_worklist) in mark_stmt_necessary() argument 132 gcc_assert (stmt); in mark_stmt_necessary() 134 if (gimple_plf (stmt, STMT_NECESSARY)) in mark_stmt_necessary() 140 print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM); in mark_stmt_necessary() 144 gimple_set_plf (stmt, STMT_NECESSARY, true); in mark_stmt_necessary() 146 worklist.safe_push (stmt); in mark_stmt_necessary() 147 if (add_to_worklist && bb_contains_live_stmts && !is_gimple_debug (stmt)) in mark_stmt_necessary() 148 bitmap_set_bit (bb_contains_live_stmts, gimple_bb (stmt)->index); in mark_stmt_necessary() 157 gimple *stmt; in mark_operand_necessary() local 165 stmt = SSA_NAME_DEF_STMT (op); in mark_operand_necessary() [all …]
|
| H A D | value-prof.c | 115 enum hist_type type, gimple *stmt, tree value) in gimple_alloc_histogram_value() argument 119 hist->hvalue.stmt = stmt; in gimple_alloc_histogram_value() 129 return htab_hash_pointer (((const_histogram_value)x)->hvalue.stmt); in histogram_hash() 137 return ((const_histogram_value) x)->hvalue.stmt == (const gimple *) y; in histogram_eq() 143 set_histogram_value (struct function *fun, gimple *stmt, histogram_value hist) in set_histogram_value() argument 151 loc = htab_find_slot_with_hash (VALUE_HISTOGRAMS (fun), stmt, in set_histogram_value() 152 htab_hash_pointer (stmt), in set_histogram_value() 166 gimple_histogram_value (struct function *fun, gimple *stmt) in gimple_histogram_value() argument 170 return (histogram_value) htab_find_with_hash (VALUE_HISTOGRAMS (fun), stmt, in gimple_histogram_value() 171 htab_hash_pointer (stmt)); in gimple_histogram_value() [all …]
|
| H A D | gimple-low.c | 55 greturn *stmt; member 131 || (gimple_return_retval (data.return_statements.last().stmt) in lower_function_body() 148 gsi_insert_after (&i, t.stmt, GSI_CONTINUE_LINKING); in lower_function_body() 154 gimple_set_location (t.stmt, UNKNOWN_LOCATION); in lower_function_body() 227 gimple *stmt; in lower_omp_directive() local 229 stmt = gsi_stmt (*gsi); in lower_omp_directive() 231 lower_sequence (gimple_omp_body_ptr (stmt), data); in lower_omp_directive() 232 gsi_insert_seq_after (gsi, gimple_omp_body (stmt), GSI_CONTINUE_LINKING); in lower_omp_directive() 233 gimple_omp_set_body (stmt, NULL); in lower_omp_directive() 248 gimple *stmt = gsi_stmt (*gsi); in lower_stmt() local [all …]
|
| H A D | tree-ssa-propagate.c | 210 ssa_propagation_engine::simulate_stmt (gimple *stmt) in simulate_stmt() argument 217 bitmap_clear_bit (ssa_edge_worklist, gimple_uid (stmt)); in simulate_stmt() 221 if (!prop_simulate_again_p (stmt)) in simulate_stmt() 224 if (gimple_code (stmt) == GIMPLE_PHI) in simulate_stmt() 226 val = visit_phi (as_a <gphi *> (stmt)); in simulate_stmt() 227 output_name = gimple_phi_result (stmt); in simulate_stmt() 230 val = visit_stmt (stmt, &taken_edge, &output_name); in simulate_stmt() 234 prop_set_simulate_again (stmt, false); in simulate_stmt() 243 if (stmt_ends_bb_p (stmt)) in simulate_stmt() 247 basic_block bb = gimple_bb (stmt); in simulate_stmt() [all …]
|
| H A D | gimple-fold.c | 196 create_tmp_reg_or_ssa_name (tree type, gimple *stmt) in create_tmp_reg_or_ssa_name() argument 199 return make_ssa_name (type, stmt); in create_tmp_reg_or_ssa_name() 352 gimple *stmt = gsi_stmt (*si); in fold_gimple_assign() local 353 enum tree_code subcode = gimple_assign_rhs_code (stmt); in fold_gimple_assign() 354 location_t loc = gimple_location (stmt); in fold_gimple_assign() 362 tree rhs = gimple_assign_rhs1 (stmt); in fold_gimple_assign() 379 = possible_polymorphic_call_targets (rhs, stmt, &final); in fold_gimple_assign() 384 dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, stmt, in fold_gimple_assign() 464 TREE_TYPE (gimple_assign_lhs (stmt)), in fold_gimple_assign() 465 gimple_assign_rhs1 (stmt), in fold_gimple_assign() [all …]
|
| H A D | tree-ssa-dom.c | 438 gimple *stmt = gsi_stmt (gsi); in record_edge_info() local 439 location_t loc = gimple_location (stmt); in record_edge_info() 441 if (gimple_code (stmt) == GIMPLE_SWITCH) in record_edge_info() 443 gswitch *switch_stmt = as_a <gswitch *> (stmt); in record_edge_info() 485 if (gimple_code (stmt) == GIMPLE_COND) in record_edge_info() 490 tree op0 = gimple_cond_lhs (stmt); in record_edge_info() 491 tree op1 = gimple_cond_rhs (stmt); in record_edge_info() 492 enum tree_code code = gimple_cond_code (stmt); in record_edge_info() 820 gimple *stmt = need_noreturn_fixup.pop (); in execute() local 824 print_gimple_stmt (dump_file, stmt, 0); in execute() [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/store/ |
| H A D | transaction.cpp | 83 sqlite::statement stmt = db.create_statement( in get_env_vars() local 86 stmt.bind(":context_id", context_id); in get_env_vars() 88 while (stmt.step()) { in get_env_vars() 89 const std::string name = stmt.safe_column_text("var_name"); in get_env_vars() 90 const std::string value = stmt.safe_column_text("var_value"); in get_env_vars() 109 sqlite::statement stmt = db.create_statement( in get_metadata() local 111 stmt.bind(":metadata_id", metadata_id); in get_metadata() 112 while (stmt.step()) { in get_metadata() 113 const std::string name = stmt.safe_column_text("property_name"); in get_metadata() 114 const std::string value = stmt.safe_column_text("property_value"); in get_metadata() [all …]
|
| H A D | dbtypes.cpp | 47 store::bind_bool(sqlite::statement& stmt, const char* field, const bool value) in bind_bool() argument 49 stmt.bind(field, value ? "true" : "false"); in bind_bool() 59 store::bind_delta(sqlite::statement& stmt, const char* field, in bind_delta() argument 62 stmt.bind(field, static_cast< int64_t >(delta.to_microseconds())); in bind_delta() 76 store::bind_optional_string(sqlite::statement& stmt, const char* field, in bind_optional_string() argument 80 stmt.bind(field, sqlite::null()); in bind_optional_string() 82 stmt.bind(field, str); in bind_optional_string() 92 store::bind_timestamp(sqlite::statement& stmt, const char* field, in bind_timestamp() argument 95 stmt.bind(field, timestamp.to_microseconds()); in bind_timestamp() 108 store::column_bool(sqlite::statement& stmt, const char* column) in column_bool() argument [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | tree-ssa-dse.cc | 106 initialize_ao_ref_for_dse (gimple *stmt, ao_ref *write, bool may_def_ok = false) in initialize_ao_ref_for_dse() argument 109 if (gimple_call_builtin_p (stmt, BUILT_IN_NORMAL)) in initialize_ao_ref_for_dse() 111 switch (DECL_FUNCTION_CODE (gimple_call_fndecl (stmt))) in initialize_ao_ref_for_dse() 122 tree size = gimple_call_arg (stmt, 2); in initialize_ao_ref_for_dse() 123 tree ptr = gimple_call_arg (stmt, 0); in initialize_ao_ref_for_dse() 133 tree nelem = gimple_call_arg (stmt, 0); in initialize_ao_ref_for_dse() 134 tree selem = gimple_call_arg (stmt, 1); in initialize_ao_ref_for_dse() 138 && (lhs = gimple_call_lhs (stmt)) != NULL_TREE) in initialize_ao_ref_for_dse() 151 else if (tree lhs = gimple_get_lhs (stmt)) in initialize_ao_ref_for_dse() 154 && (may_def_ok || !stmt_could_throw_p (cfun, stmt))) in initialize_ao_ref_for_dse() [all …]
|
| H A D | gimple-walk.cc | 90 walk_gimple_asm (gasm *stmt, walk_tree_fn callback_op, in walk_gimple_asm() argument 100 noutputs = gimple_asm_noutputs (stmt); in walk_gimple_asm() 105 op = gimple_asm_output_op (stmt, i); in walk_gimple_asm() 121 n = gimple_asm_ninputs (stmt); in walk_gimple_asm() 124 op = gimple_asm_input_op (stmt, i); in walk_gimple_asm() 148 n = gimple_asm_nlabels (stmt); in walk_gimple_asm() 151 op = gimple_asm_label_op (stmt, i); in walk_gimple_asm() 177 walk_gimple_op (gimple *stmt, walk_tree_fn callback_op, in walk_gimple_op() argument 185 wi->stmt = stmt; in walk_gimple_op() 187 switch (gimple_code (stmt)) in walk_gimple_op() [all …]
|
| H A D | tree-ssa-dce.cc | 131 mark_stmt_necessary (gimple *stmt, bool add_to_worklist) in mark_stmt_necessary() argument 133 gcc_assert (stmt); in mark_stmt_necessary() 135 if (gimple_plf (stmt, STMT_NECESSARY)) in mark_stmt_necessary() 141 print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM); in mark_stmt_necessary() 145 gimple_set_plf (stmt, STMT_NECESSARY, true); in mark_stmt_necessary() 147 worklist.safe_push (stmt); in mark_stmt_necessary() 148 if (add_to_worklist && bb_contains_live_stmts && !is_gimple_debug (stmt)) in mark_stmt_necessary() 149 bitmap_set_bit (bb_contains_live_stmts, gimple_bb (stmt)->index); in mark_stmt_necessary() 158 gimple *stmt; in mark_operand_necessary() local 166 stmt = SSA_NAME_DEF_STMT (op); in mark_operand_necessary() [all …]
|
| H A D | value-prof.cc | 115 enum hist_type type, gimple *stmt, tree value) in gimple_alloc_histogram_value() argument 119 hist->hvalue.stmt = stmt; in gimple_alloc_histogram_value() 129 return htab_hash_pointer (((const_histogram_value)x)->hvalue.stmt); in histogram_hash() 137 return ((const_histogram_value) x)->hvalue.stmt == (const gimple *) y; in histogram_eq() 143 set_histogram_value (struct function *fun, gimple *stmt, histogram_value hist) in set_histogram_value() argument 151 loc = htab_find_slot_with_hash (VALUE_HISTOGRAMS (fun), stmt, in set_histogram_value() 152 htab_hash_pointer (stmt), in set_histogram_value() 166 gimple_histogram_value (struct function *fun, gimple *stmt) in gimple_histogram_value() argument 170 return (histogram_value) htab_find_with_hash (VALUE_HISTOGRAMS (fun), stmt, in gimple_histogram_value() 171 htab_hash_pointer (stmt)); in gimple_histogram_value() [all …]
|
| H A D | gimple-low.cc | 55 greturn *stmt; member 131 || (gimple_return_retval (data.return_statements.last().stmt) in lower_function_body() 148 gsi_insert_after (&i, t.stmt, GSI_CONTINUE_LINKING); in lower_function_body() 154 gimple_set_location (t.stmt, UNKNOWN_LOCATION); in lower_function_body() 227 gimple *stmt; in lower_omp_directive() local 229 stmt = gsi_stmt (*gsi); in lower_omp_directive() 231 lower_sequence (gimple_omp_body_ptr (stmt), data); in lower_omp_directive() 232 gsi_insert_seq_after (gsi, gimple_omp_body (stmt), GSI_CONTINUE_LINKING); in lower_omp_directive() 233 gimple_omp_set_body (stmt, NULL); in lower_omp_directive() 248 gimple *stmt = gsi_stmt (*gsi); in lower_stmt() local [all …]
|
| H A D | tree-ssa-dom.cc | 438 gimple *stmt = gsi_stmt (gsi); in record_edge_info() local 439 location_t loc = gimple_location (stmt); in record_edge_info() 441 if (gimple_code (stmt) == GIMPLE_SWITCH) in record_edge_info() 443 gswitch *switch_stmt = as_a <gswitch *> (stmt); in record_edge_info() 485 if (gimple_code (stmt) == GIMPLE_COND) in record_edge_info() 490 tree op0 = gimple_cond_lhs (stmt); in record_edge_info() 491 tree op1 = gimple_cond_rhs (stmt); in record_edge_info() 492 enum tree_code code = gimple_cond_code (stmt); in record_edge_info() 614 void record_ranges_from_stmt (gimple *stmt, bool temporary) override in record_ranges_from_stmt() argument 616 m_evrp->record_ranges_from_stmt (stmt, temporary); in record_ranges_from_stmt() [all …]
|
| H A D | tree-ssa-operands.cc | 112 stmt = statement; in operands_scanner() 139 gimple *stmt; member in operands_scanner 187 void maybe_add_call_vops (gcall *stmt); 190 void get_asm_stmt_operands (gasm *stmt); 371 add_use_op (struct function *fn, gimple *stmt, tree *op, use_optype_p last) in add_use_op() argument 377 link_imm_use_stmt (USE_OP_PTR (new_use), *op, stmt); in add_use_op() 394 tree oldvdef = gimple_vdef (stmt); in finalize_ssa_defs() 399 gimple_set_vdef (stmt, build_vdef); in finalize_ssa_defs() 404 && gimple_vdef (stmt) != NULL_TREE) in finalize_ssa_defs() 406 if (TREE_CODE (gimple_vdef (stmt)) == SSA_NAME) in finalize_ssa_defs() [all …]
|
| H A D | tree-ssa-threadedge.cc | 218 gimple *stmt = NULL; in record_temporary_equivalences_from_stmts_at_dest() local 230 stmt = gsi_stmt (gsi); in record_temporary_equivalences_from_stmts_at_dest() 233 if (gimple_code (stmt) == GIMPLE_NOP in record_temporary_equivalences_from_stmts_at_dest() 234 || gimple_code (stmt) == GIMPLE_LABEL in record_temporary_equivalences_from_stmts_at_dest() 235 || is_gimple_debug (stmt)) in record_temporary_equivalences_from_stmts_at_dest() 241 if (gimple_code (stmt) == GIMPLE_ASM in record_temporary_equivalences_from_stmts_at_dest() 242 && gimple_asm_volatile_p (as_a <gasm *> (stmt))) in record_temporary_equivalences_from_stmts_at_dest() 247 if (gimple_code (stmt) == GIMPLE_CALL in record_temporary_equivalences_from_stmts_at_dest() 248 && gimple_call_internal_p (stmt) in record_temporary_equivalences_from_stmts_at_dest() 249 && gimple_call_internal_unique_p (stmt)) in record_temporary_equivalences_from_stmts_at_dest() [all …]
|
| H A D | gimple.cc | 146 gimple *stmt; in gimple_alloc() local 156 stmt = ggc_alloc_cleared_gimple_statement_stat (size PASS_MEM_STAT); in gimple_alloc() 157 gimple_init (stmt, code, num_ops); in gimple_alloc() 158 return stmt; in gimple_alloc() 544 gimple_cond_set_condition_from_tree (gcond *stmt, tree cond) in gimple_cond_set_condition_from_tree() argument 550 gimple_cond_set_condition (stmt, code, lhs, rhs); in gimple_cond_set_condition_from_tree() 835 gimple_build_debug_bind (tree var, tree value, gimple *stmt MEM_STAT_DECL) in gimple_build_debug_bind() 843 if (stmt) in gimple_build_debug_bind() 844 gimple_set_location (p, gimple_location (stmt)); in gimple_build_debug_bind() 856 gimple *stmt MEM_STAT_DECL) in gimple_build_debug_source_bind() [all …]
|
| H A D | tree-ssa-propagate.cc | 210 ssa_propagation_engine::simulate_stmt (gimple *stmt) in simulate_stmt() argument 217 bitmap_clear_bit (ssa_edge_worklist, gimple_uid (stmt)); in simulate_stmt() 221 if (!prop_simulate_again_p (stmt)) in simulate_stmt() 224 if (gimple_code (stmt) == GIMPLE_PHI) in simulate_stmt() 226 val = visit_phi (as_a <gphi *> (stmt)); in simulate_stmt() 227 output_name = gimple_phi_result (stmt); in simulate_stmt() 230 val = visit_stmt (stmt, &taken_edge, &output_name); in simulate_stmt() 234 prop_set_simulate_again (stmt, false); in simulate_stmt() 243 if (stmt_ends_bb_p (stmt)) in simulate_stmt() 247 basic_block bb = gimple_bb (stmt); in simulate_stmt() [all …]
|
| H A D | tree-ssa-strlen.cc | 97 gimple *stmt; member 190 gimple *stmt; member 205 get_range (tree val, gimple *stmt, wide_int minmax[2], in get_range() argument 219 if (!rvals->range_of_expr (vr, val, stmt)) in get_range() 266 void maybe_warn_overflow (gimple *stmt, bool call_lhs, tree len, 269 void maybe_warn_overflow (gimple *stmt, bool call_lhs, 273 void adjust_last_stmt (strinfo *si, gimple *stmt, bool is_strcat); 274 tree strxcmp_eqz_result (gimple *stmt, tree arg1, int idx1, 280 gimple *stmt, 284 gimple *stmt, [all …]
|
| /netbsd-src/lib/lua/sqlite/ |
| H A D | sqlite.c | 136 sqlite3_stmt **stmt; in db_prepare() local 140 stmt = lua_newuserdata(L, sizeof(sqlite3_stmt *)); in db_prepare() 143 (int)strlen(sql) + 1, stmt, NULL)); in db_prepare() 204 sqlite3_stmt **stmt; in stmt_bind() local 207 stmt = luaL_checkudata(L, 1, SQLITE_STMT_METATABLE); in stmt_bind() 212 lua_pushinteger(L, sqlite3_bind_double(*stmt, pidx, in stmt_bind() 216 lua_pushinteger(L, sqlite3_bind_text(*stmt, pidx, in stmt_bind() 220 lua_pushinteger(L, sqlite3_bind_null(*stmt, pidx)); in stmt_bind() 232 sqlite3_stmt **stmt; in stmt_bind_parameter_count() local 234 stmt = luaL_checkudata(L, 1, SQLITE_STMT_METATABLE); in stmt_bind_parameter_count() [all …]
|