Lines Matching refs:var
70 var = Var(symtab, param.ident, location, param.type_ast.type,
73 var = Var(symtab, param.ident, location, param.type_ast.type,
76 self.symtab.registerSym(param.ident, var)
79 self.prefetchers.append(var)
137 def addInPort(self, var):
138 self.in_ports.append(var)
284 for var in self.objects:
285 if var.type.ident not in seen_types and not var.type.isPrimitive:
286 code('#include "mem/ruby/protocol/${{var.type.c_ident}}.hh"')
287 seen_types.add(var.type.ident)
430 for var in self.objects:
431 th = var.get("template", "")
432 code('${{var.type.c_ident}}$th* m_${{var.ident}}_ptr;')
487 for var in self.objects:
488 if var.type.ident not in seen_types and not var.type.isPrimitive:
489 code('#include "mem/ruby/protocol/${{var.type.c_ident}}.hh"')
490 seen_types.add(var.type.ident)
576 for var in self.config_parameters:
577 vid = "m_%s_ptr" % var.ident
578 if "network" in var:
579 vtype = var.type_ast.type
583 network = var["network"]
585 if "virtual_network" in var:
586 vnet = var["virtual_network"]
587 vnet_type = var["vnet_type"]
597 if "rank" in var:
598 code('$vid->setPriority(${{var["rank"]}})')
612 for var in self.objects:
613 vtype = var.type
614 vid = "m_%s_ptr" % var.ident
615 if "network" not in var:
619 if "default" in var:
620 code('(*$vid) = ${{var["default"]}};')
623 th = var.get("template", "")
627 args = var.get("constructor", "")
632 if "default" in var:
633 code('*$vid = ${{var["default"]}}; // Object default')
1015 for var in self.objects:
1016 vtype = var.type
1018 vid = "m_%s_ptr" % var.ident
1021 for var in self.config_parameters:
1022 vtype = var.type_ast.type
1024 vid = "m_%s_ptr" % var.ident