| 161 | } |
| 162 | |
| 163 | void Pipeline::AddModuleToComponent(Module *m, const struct Attribute *attr) { |
| 164 | ScopeComponent &component = scope_components_.back(); |
| 165 | |
| 166 | // Module has already been added to current scope component. |
| 167 | if (std::find(component.modules().begin(), component.modules().end(), m) != |
| 168 | component.modules().end()) { |
| 169 | return; |
| 170 | } |
| 171 | |
| 172 | if (component.modules().empty()) { |
| 173 | component.set_attr_id(get_attr_id(attr)); |
| 174 | component.set_size(attr->size); |
| 175 | } |
| 176 | component.add_module(m); |
| 177 | } |
| 178 | |
| 179 | const struct Attribute *Pipeline::FindAttr(Module *m, |
| 180 | const struct Attribute *attr) const { |
nothing calls this directly
no test coverage detected