Home
last modified time | relevance | path

Searched refs:asm_stmt (Results 1 – 25 of 41) sorted by relevance

12

/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgimple-streamer-in.c135 gasm *asm_stmt = as_a <gasm *> (stmt); in input_gimple_stmt() local
137 asm_stmt->ni = streamer_read_uhwi (ib); in input_gimple_stmt()
138 asm_stmt->no = streamer_read_uhwi (ib); in input_gimple_stmt()
139 asm_stmt->nc = streamer_read_uhwi (ib); in input_gimple_stmt()
140 asm_stmt->nl = streamer_read_uhwi (ib); in input_gimple_stmt()
142 asm_stmt->string = TREE_STRING_POINTER (str); in input_gimple_stmt()
221 gasm *asm_stmt = as_a <gasm *> (stmt); in input_gimple_stmt() local
224 for (i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in input_gimple_stmt()
226 tree op = TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in input_gimple_stmt()
H A Dgimple-streamer-out.c112 gasm *asm_stmt = as_a <gasm *> (stmt); in output_gimple_stmt() local
113 streamer_write_uhwi (ob, gimple_asm_ninputs (asm_stmt)); in output_gimple_stmt()
114 streamer_write_uhwi (ob, gimple_asm_noutputs (asm_stmt)); in output_gimple_stmt()
115 streamer_write_uhwi (ob, gimple_asm_nclobbers (asm_stmt)); in output_gimple_stmt()
116 streamer_write_uhwi (ob, gimple_asm_nlabels (asm_stmt)); in output_gimple_stmt()
118 gimple_asm_string (asm_stmt), true); in output_gimple_stmt()
H A Dgimple.h3912 gimple_asm_ninputs (const gasm *asm_stmt)
3914 return asm_stmt->ni;
3921 gimple_asm_noutputs (const gasm *asm_stmt)
3923 return asm_stmt->no;
3930 gimple_asm_nclobbers (const gasm *asm_stmt)
3932 return asm_stmt->nc;
3938 gimple_asm_nlabels (const gasm *asm_stmt)
3940 return asm_stmt->nl;
3946 gimple_asm_input_op (const gasm *asm_stmt, unsigned index)
3948 gcc_gimple_checking_assert (index < asm_stmt->ni);
[all …]
H A Dgimplify-me.c184 gasm *asm_stmt = as_a <gasm *> (stmt); in gimple_regimplify_operands() local
185 size_t i, noutputs = gimple_asm_noutputs (asm_stmt); in gimple_regimplify_operands()
193 tree op = gimple_asm_output_op (asm_stmt, i); in gimple_regimplify_operands()
202 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in gimple_regimplify_operands()
204 tree op = gimple_asm_input_op (asm_stmt, i); in gimple_regimplify_operands()
H A Dsanopt.c288 gasm *asm_stmt; in imm_dom_path_with_freeing_call() local
291 || ((asm_stmt = dyn_cast <gasm *> (stmt)) in imm_dom_path_with_freeing_call()
292 && (gimple_asm_clobbers_memory_p (asm_stmt) in imm_dom_path_with_freeing_call()
293 || gimple_asm_volatile_p (asm_stmt)))) in imm_dom_path_with_freeing_call()
793 gasm *asm_stmt = dyn_cast <gasm *> (stmt); in sanopt_optimize_walker() local
794 if (asm_stmt in sanopt_optimize_walker()
796 && (gimple_asm_clobbers_memory_p (asm_stmt) in sanopt_optimize_walker()
797 || gimple_asm_volatile_p (asm_stmt))) in sanopt_optimize_walker()
H A Dgimple-walk.c848 else if (gasm *asm_stmt = dyn_cast <gasm *> (stmt)) in walk_stmt_load_store_addr_ops() local
854 noutputs = gimple_asm_noutputs (asm_stmt); in walk_stmt_load_store_addr_ops()
857 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in walk_stmt_load_store_addr_ops()
859 tree link = gimple_asm_output_op (asm_stmt, i); in walk_stmt_load_store_addr_ops()
875 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in walk_stmt_load_store_addr_ops()
877 tree link = gimple_asm_input_op (asm_stmt, i); in walk_stmt_load_store_addr_ops()
H A Dtree-ssa.c1761 gasm *asm_stmt = as_a <gasm *> (stmt); in execute_update_addresses_taken() local
1762 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in execute_update_addresses_taken()
1764 tree link = gimple_asm_output_op (asm_stmt, i); in execute_update_addresses_taken()
1779 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in execute_update_addresses_taken()
1781 tree link = gimple_asm_input_op (asm_stmt, i); in execute_update_addresses_taken()
2062 gasm *asm_stmt = as_a <gasm *> (stmt); in execute_update_addresses_taken() local
2064 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in execute_update_addresses_taken()
2066 tree link = gimple_asm_output_op (asm_stmt, i); in execute_update_addresses_taken()
2070 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in execute_update_addresses_taken()
2072 tree link = gimple_asm_input_op (asm_stmt, i); in execute_update_addresses_taken()
H A Dtree-sra.c1390 gasm *asm_stmt = as_a <gasm *> (stmt); in scan_function() local
1391 walk_stmt_load_store_addr_ops (asm_stmt, NULL, NULL, NULL, in scan_function()
1393 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in scan_function()
1395 t = TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in scan_function()
1396 ret |= build_access_from_expr (t, asm_stmt, false); in scan_function()
1398 for (i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in scan_function()
1400 t = TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in scan_function()
1401 ret |= build_access_from_expr (t, asm_stmt, true); in scan_function()
4479 gasm *asm_stmt = as_a <gasm *> (stmt); in sra_modify_function_body() local
4480 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in sra_modify_function_body()
[all …]
H A Dtree-ssa-coalesce.c1143 gasm *asm_stmt = as_a <gasm *> (stmt); in create_coalesce_list_for_region() local
1147 noutputs = gimple_asm_noutputs (asm_stmt); in create_coalesce_list_for_region()
1148 ninputs = gimple_asm_ninputs (asm_stmt); in create_coalesce_list_for_region()
1152 link = gimple_asm_output_op (asm_stmt, i); in create_coalesce_list_for_region()
1163 link = gimple_asm_input_op (asm_stmt, i); in create_coalesce_list_for_region()
H A Dipa-param-manipulation.c1738 gasm *asm_stmt = as_a <gasm *> (*stmt); in modify_gimple_stmt() local
1739 for (unsigned i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in modify_gimple_stmt()
1741 t = &TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in modify_gimple_stmt()
1744 for (unsigned i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in modify_gimple_stmt()
1746 t = &TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in modify_gimple_stmt()
H A Dtree-ssa-dce.c1023 else if (gasm *asm_stmt = dyn_cast <gasm *> (stmt)) in propagate_necessity() local
1028 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in propagate_necessity()
1030 tree op = TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in propagate_necessity()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgimple-streamer-in.cc135 gasm *asm_stmt = as_a <gasm *> (stmt); in input_gimple_stmt() local
137 asm_stmt->ni = streamer_read_uhwi (ib); in input_gimple_stmt()
138 asm_stmt->no = streamer_read_uhwi (ib); in input_gimple_stmt()
139 asm_stmt->nc = streamer_read_uhwi (ib); in input_gimple_stmt()
140 asm_stmt->nl = streamer_read_uhwi (ib); in input_gimple_stmt()
142 asm_stmt->string = TREE_STRING_POINTER (str); in input_gimple_stmt()
221 gasm *asm_stmt = as_a <gasm *> (stmt); in input_gimple_stmt() local
224 for (i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in input_gimple_stmt()
226 tree op = TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in input_gimple_stmt()
H A Dgimple.h4003 gimple_asm_ninputs (const gasm *asm_stmt)
4005 return asm_stmt->ni;
4012 gimple_asm_noutputs (const gasm *asm_stmt)
4014 return asm_stmt->no;
4021 gimple_asm_nclobbers (const gasm *asm_stmt)
4023 return asm_stmt->nc;
4029 gimple_asm_nlabels (const gasm *asm_stmt)
4031 return asm_stmt->nl;
4037 gimple_asm_input_op (const gasm *asm_stmt, unsigned index)
4039 gcc_gimple_checking_assert (index < asm_stmt->ni);
[all …]
H A Dgimple-streamer-out.cc112 gasm *asm_stmt = as_a <gasm *> (stmt); in output_gimple_stmt() local
113 streamer_write_uhwi (ob, gimple_asm_ninputs (asm_stmt)); in output_gimple_stmt()
114 streamer_write_uhwi (ob, gimple_asm_noutputs (asm_stmt)); in output_gimple_stmt()
115 streamer_write_uhwi (ob, gimple_asm_nclobbers (asm_stmt)); in output_gimple_stmt()
116 streamer_write_uhwi (ob, gimple_asm_nlabels (asm_stmt)); in output_gimple_stmt()
118 gimple_asm_string (asm_stmt), true); in output_gimple_stmt()
H A Dgimplify-me.cc184 gasm *asm_stmt = as_a <gasm *> (stmt); in gimple_regimplify_operands() local
185 size_t i, noutputs = gimple_asm_noutputs (asm_stmt); in gimple_regimplify_operands()
193 tree op = gimple_asm_output_op (asm_stmt, i); in gimple_regimplify_operands()
202 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in gimple_regimplify_operands()
204 tree op = gimple_asm_input_op (asm_stmt, i); in gimple_regimplify_operands()
H A Dsanopt.cc288 gasm *asm_stmt; in imm_dom_path_with_freeing_call() local
291 || ((asm_stmt = dyn_cast <gasm *> (stmt)) in imm_dom_path_with_freeing_call()
292 && (gimple_asm_clobbers_memory_p (asm_stmt) in imm_dom_path_with_freeing_call()
293 || gimple_asm_volatile_p (asm_stmt)))) in imm_dom_path_with_freeing_call()
794 gasm *asm_stmt = dyn_cast <gasm *> (stmt); in sanopt_optimize_walker() local
795 if (asm_stmt in sanopt_optimize_walker()
797 && (gimple_asm_clobbers_memory_p (asm_stmt) in sanopt_optimize_walker()
798 || gimple_asm_volatile_p (asm_stmt))) in sanopt_optimize_walker()
H A Dgimple-walk.cc865 else if (gasm *asm_stmt = dyn_cast <gasm *> (stmt)) in walk_stmt_load_store_addr_ops() local
871 noutputs = gimple_asm_noutputs (asm_stmt); in walk_stmt_load_store_addr_ops()
874 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in walk_stmt_load_store_addr_ops()
876 tree link = gimple_asm_output_op (asm_stmt, i); in walk_stmt_load_store_addr_ops()
892 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in walk_stmt_load_store_addr_ops()
894 tree link = gimple_asm_input_op (asm_stmt, i); in walk_stmt_load_store_addr_ops()
H A Dtree-ssa.cc1926 gasm *asm_stmt = as_a <gasm *> (stmt); in execute_update_addresses_taken() local
1927 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in execute_update_addresses_taken()
1929 tree link = gimple_asm_output_op (asm_stmt, i); in execute_update_addresses_taken()
1944 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in execute_update_addresses_taken()
1946 tree link = gimple_asm_input_op (asm_stmt, i); in execute_update_addresses_taken()
2235 gasm *asm_stmt = as_a <gasm *> (stmt); in execute_update_addresses_taken() local
2237 for (i = 0; i < gimple_asm_noutputs (asm_stmt); ++i) in execute_update_addresses_taken()
2239 tree link = gimple_asm_output_op (asm_stmt, i); in execute_update_addresses_taken()
2243 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in execute_update_addresses_taken()
2245 tree link = gimple_asm_input_op (asm_stmt, i); in execute_update_addresses_taken()
H A Dtree-sra.cc1413 gasm *asm_stmt = as_a <gasm *> (stmt); in scan_function() local
1414 walk_stmt_load_store_addr_ops (asm_stmt, NULL, NULL, NULL, in scan_function()
1416 if (stmt_ends_bb_p (asm_stmt) in scan_function()
1417 && !single_succ_p (gimple_bb (asm_stmt))) in scan_function()
1419 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in scan_function()
1421 t = TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in scan_function()
1424 for (i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in scan_function()
1426 t = TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in scan_function()
1432 for (i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in scan_function()
1434 t = TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in scan_function()
[all …]
H A Dtree-ssa-coalesce.cc1143 gasm *asm_stmt = as_a <gasm *> (stmt); in create_coalesce_list_for_region() local
1147 noutputs = gimple_asm_noutputs (asm_stmt); in create_coalesce_list_for_region()
1148 ninputs = gimple_asm_ninputs (asm_stmt); in create_coalesce_list_for_region()
1152 link = gimple_asm_output_op (asm_stmt, i); in create_coalesce_list_for_region()
1163 link = gimple_asm_input_op (asm_stmt, i); in create_coalesce_list_for_region()
H A Dipa-param-manipulation.cc2236 gasm *asm_stmt = as_a <gasm *> (*stmt); in modify_gimple_stmt() local
2237 for (unsigned i = 0; i < gimple_asm_ninputs (asm_stmt); i++) in modify_gimple_stmt()
2239 t = &TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in modify_gimple_stmt()
2242 for (unsigned i = 0; i < gimple_asm_noutputs (asm_stmt); i++) in modify_gimple_stmt()
2244 t = &TREE_VALUE (gimple_asm_output_op (asm_stmt, i)); in modify_gimple_stmt()
H A Dtree-ssa-dce.cc964 else if (gasm *asm_stmt = dyn_cast <gasm *> (stmt)) in propagate_necessity() local
969 for (i = 0; i < gimple_asm_ninputs (asm_stmt); ++i) in propagate_necessity()
971 tree op = TREE_VALUE (gimple_asm_input_op (asm_stmt, i)); in propagate_necessity()
/netbsd-src/external/gpl3/gcc/dist/gcc/analyzer/
H A Dregion-model-asm.cc114 deterministic_p (const gasm *asm_stmt) in deterministic_p() argument
118 if (gimple_asm_ninputs (asm_stmt) == 0 in deterministic_p()
119 && gimple_asm_volatile_p (asm_stmt)) in deterministic_p()
H A Dregion.cc1212 const gasm *asm_stmt = as_a <const gasm *> (ref->stmt); in ipa_ref_requires_tracking() local
1213 if (gimple_asm_noutputs (asm_stmt) > 0) in ipa_ref_requires_tracking()
1215 if (gimple_asm_nclobbers (asm_stmt) > 0) in ipa_ref_requires_tracking()
/netbsd-src/external/gpl3/gcc/dist/gcc/jit/
H A Djit-playback.cc2266 tree asm_stmt in add_extended_asm() local
2272 ASM_VOLATILE_P (asm_stmt) = (outputs->length () == 0); in add_extended_asm()
2273 ASM_INPUT_P (asm_stmt) = 0; /* extended asm stmts are not "simple". */ in add_extended_asm()
2274 ASM_INLINE_P (asm_stmt) = is_inline; in add_extended_asm()
2276 ASM_VOLATILE_P (asm_stmt) = 1; in add_extended_asm()
2278 set_tree_location (asm_stmt, loc); in add_extended_asm()
2279 add_stmt (asm_stmt); in add_extended_asm()

12