| 2313 | } |
| 2314 | |
| 2315 | bool HasSystemRegister( Symbol* symbol ) |
| 2316 | { |
| 2317 | assert( symbol ); |
| 2318 | |
| 2319 | bool hasSystemRegister = false; |
| 2320 | for( auto& it : symbol->registerSpecifier ) |
| 2321 | { |
| 2322 | if( it.second.registerType == MetalRegister::System ) |
| 2323 | { |
| 2324 | hasSystemRegister = true; |
| 2325 | break; |
| 2326 | } |
| 2327 | } |
| 2328 | |
| 2329 | return hasSystemRegister; |
| 2330 | } |
| 2331 | |
| 2332 | // Given a function header, gathers all inputs for [[stage_in]] into a flat structure |
| 2333 | void GatherInputs( ASTNode* destStruct, std::vector<ASTNode*>& accessors, const std::vector<Symbol*>& params, ASTNode* header, ParserState& state ) |
no outgoing calls
no test coverage detected