1760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org/*
2760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org * Copyright © 2010 Intel Corporation
33a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org *
43a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * Permission is hereby granted, free of charge, to any person obtaining a
53a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * copy of this software and associated documentation files (the "Software"),
63a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * to deal in the Software without restriction, including without limitation
73a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * the rights to use, copy, modify, merge, publish, distribute, sublicense,
83a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * and/or sell copies of the Software, and to permit persons to whom the
93a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * Software is furnished to do so, subject to the following conditions:
103a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org *
113a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * The above copyright notice and this permission notice (including the next
123a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * paragraph) shall be included in all copies or substantial portions of the
133a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * Software.
143a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org *
153a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
163a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
183a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
193a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
203a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
213a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org * DEALINGS IN THE SOFTWARE.
22760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org */
233a0db227ffe90888ad760c61a63226988c974e0apatrick@chromium.org
24760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.orgvoid call_for_basic_blocks(exec_list *instructions,
25760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org			   void (*callback)(ir_instruction *first,
26760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org					    ir_instruction *last,
27760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org					    void *data),
28760fd893ba809a7a5daa25c2749ff502f7186e83kbr@chromium.org			   void *data);
29