Returns a vector of BufferInfo instances in `buffer_infos` that are temp buffers.
| 113 | // Returns a vector of BufferInfo instances in `buffer_infos` that are temp |
| 114 | // buffers. |
| 115 | std::vector<BufferInfo> ExtractTempBufferInfos( |
| 116 | const std::vector<BufferInfo>& buffer_infos) { |
| 117 | std::vector<BufferInfo> result; |
| 118 | std::copy_if(buffer_infos.begin(), buffer_infos.end(), |
| 119 | std::back_inserter(result), [](const BufferInfo& buffer_info) { |
| 120 | return buffer_info.is_temp_buffer(); |
| 121 | }); |
| 122 | return result; |
| 123 | } |
| 124 | |
| 125 | // Add (from,to) rewrite pairs based on the given shape. These rewrite pairs |
| 126 | // are used to generate methods for args and results. |
no test coverage detected