Mercurial > hg > CbC > CbC_gcc
comparison gcc/ssa-iterators.h @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
130:e108057fa461 | 132:d34655255c78 |
---|---|
1 /* Header file for SSA iterators. | 1 /* Header file for SSA iterators. |
2 Copyright (C) 2013-2017 Free Software Foundation, Inc. | 2 Copyright (C) 2013-2018 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify it under | 6 GCC is free software; you can redistribute it and/or modify it under |
7 the terms of the GNU General Public License as published by the Free | 7 the terms of the GNU General Public License as published by the Free |
91 { \ | 91 { \ |
92 end_imm_use_stmt_traverse (&(ITER)); \ | 92 end_imm_use_stmt_traverse (&(ITER)); \ |
93 break; \ | 93 break; \ |
94 } | 94 } |
95 | 95 |
96 /* Similarly for return. */ | |
97 #define RETURN_FROM_IMM_USE_STMT(ITER, VAL) \ | |
98 { \ | |
99 end_imm_use_stmt_traverse (&(ITER)); \ | |
100 return (VAL); \ | |
101 } | |
96 | 102 |
97 /* Use this iterator in combination with FOR_EACH_IMM_USE_STMT to | 103 /* Use this iterator in combination with FOR_EACH_IMM_USE_STMT to |
98 get access to each occurrence of ssavar on the stmt returned by | 104 get access to each occurrence of ssavar on the stmt returned by |
99 that iterator.. for instance: | 105 that iterator.. for instance: |
100 | 106 |
445 { | 451 { |
446 const ssa_use_operand_t *const start = &(SSA_NAME_IMM_USE_NODE (var)); | 452 const ssa_use_operand_t *const start = &(SSA_NAME_IMM_USE_NODE (var)); |
447 const ssa_use_operand_t *ptr; | 453 const ssa_use_operand_t *ptr; |
448 unsigned int num = 0; | 454 unsigned int num = 0; |
449 | 455 |
450 if (!MAY_HAVE_DEBUG_STMTS) | 456 if (!MAY_HAVE_DEBUG_BIND_STMTS) |
451 { | 457 { |
452 for (ptr = start->next; ptr != start; ptr = ptr->next) | 458 for (ptr = start->next; ptr != start; ptr = ptr->next) |
453 if (USE_STMT (ptr)) | 459 if (USE_STMT (ptr)) |
454 num++; | 460 num++; |
455 } | 461 } |