Home
last modified time | relevance | path

Searched refs:stmt (Results 1 – 7 of 7) sorted by relevance

/scripts/gcc-plugins/
Dgcc-common.h213 static inline bool gimple_call_builtin_p(gimple stmt, enum built_in_function code) in gimple_call_builtin_p() argument
217 if (!is_gimple_call(stmt)) in gimple_call_builtin_p()
219 fndecl = gimple_call_fndecl(stmt); in gimple_call_builtin_p()
284 static inline bool gimple_asm_clobbers_memory_p(const_gimple stmt) in gimple_asm_clobbers_memory_p() argument
288 for (i = 0; i < gimple_asm_nclobbers(stmt); i++) { in gimple_asm_clobbers_memory_p()
289 tree op = gimple_asm_clobber_op(stmt, i); in gimple_asm_clobbers_memory_p()
457 #define ipa_remove_stmt_references(cnode, stmt) argument
468 static inline gasm *as_a_gasm(gimple stmt) in as_a_gasm() argument
470 return stmt; in as_a_gasm()
473 static inline const gasm *as_a_const_gasm(const_gimple stmt) in as_a_const_gasm() argument
[all …]
Drandomize_layout_plugin.c754 static bool type_name_eq(gimple stmt, const_tree type_tree, const char *wanted_name) in type_name_eq() argument
769 INFORM(gimple_location(stmt), "found non-char INTEGER_TYPE cast comparison: %qT\n", type_tree); in type_name_eq()
779 INFORM(gimple_location(stmt), "found non-void POINTER_TYPE cast comparison %qT\n", type_tree); in type_name_eq()
784 INFORM(gimple_location(stmt), "unhandled cast comparison: %qT\n", type_tree); in type_name_eq()
792 static bool whitelisted_cast(gimple stmt, const_tree lhs_tree, const_tree rhs_tree) in whitelisted_cast() argument
795 expanded_location xloc = expand_location(gimple_location(stmt)); in whitelisted_cast()
801 if (type_name_eq(stmt, lhs_tree, entry->lhs) && type_name_eq(stmt, rhs_tree, entry->rhs)) in whitelisted_cast()
824 gimple stmt; in find_bad_casts_execute() local
835 stmt = gsi_stmt(gsi); in find_bad_casts_execute()
839 debug_gimple_stmt(stmt); in find_bad_casts_execute()
[all …]
Dstackleak_plugin.c56 gimple stmt; in add_stack_tracking_gcall() local
62 stmt = gimple_build_call(track_function_decl, 0); in add_stack_tracking_gcall()
63 gimple_call = as_a_gcall(stmt); in add_stack_tracking_gcall()
78 static bool is_alloca(gimple stmt) in is_alloca() argument
80 if (gimple_call_builtin_p(stmt, BUILT_IN_ALLOCA)) in is_alloca()
84 if (gimple_call_builtin_p(stmt, BUILT_IN_ALLOCA_WITH_ALIGN)) in is_alloca()
194 gimple stmt; in stackleak_instrument_execute() local
196 stmt = gsi_stmt(gsi); in stackleak_instrument_execute()
199 if (is_gimple_call(stmt)) in stackleak_instrument_execute()
202 if (!is_alloca(stmt)) in stackleak_instrument_execute()
Dsancov_plugin.c43 const_gimple stmt; in sancov_execute() local
50 stmt = gsi_stmt(gsi); in sancov_execute()
52 gimple_set_location(gcall, gimple_location(stmt)); in sancov_execute()
Dstructleak_plugin.c133 gimple stmt = gsi_stmt(gsi); in initialize() local
137 if (!gimple_assign_single_p(stmt)) in initialize()
139 rhs1 = gimple_assign_rhs1(stmt); in initialize()
146 if (gimple_get_lhs(stmt) != var) in initialize()
Dlatent_entropy_plugin.c401 gimple stmt = gsi_stmt(gsi); in handle_tail_calls() local
403 if (!is_gimple_call(stmt)) in handle_tail_calls()
406 call = as_a_gcall(stmt); in handle_tail_calls()
/scripts/
Dcheckpatch.pl1804 my ($stmt) = @_;
1807 $stmt =~ s/(^|\n)./$1/g;
1808 $stmt =~ s/^\s*//;
1809 $stmt =~ s/\s*$//;
1811 my @stmt_lines = ($stmt =~ /\n/g);
1817 my ($stmt) = @_;
1819 my @stmt_lines = ($stmt =~ /\n/g);
1825 my ($stmt) = @_;
1827 $stmt =~ s/(^|\n)./$1/g;
1828 $stmt =~ s/^\s*{//;
[all …]