/gem5/src/mem/slicc/ast/ |
H A D | TypeAST.py | 33 def __init__(self, slicc, ident): 36 self.ident = ident 39 return self.ident 42 return self.ident 46 type = self.symtab.find(self.ident, Type)
|
H A D | ObjDeclAST.py | 32 def __init__(self, slicc, type_ast, ident, pairs, rvalue, pointer): 36 self.ident = ident 41 return "[ObjDecl: %r]" % self.ident 52 if self.ident == "version": 54 elif self.ident == "machineID": 56 elif self.ident == "clusterID": 58 elif self.ident == "recycle_latency": 61 c_code = "(*m_%s_ptr)" % (self.ident) 73 v = Var(self.symtab, self.ident, sel [all...] |
H A D | LocalVariableAST.py | 34 def __init__(self, slicc, type_ast, ident, pointer = False): 37 self.ident = ident 41 return "[LocalVariableAST: %r %r]" % (self.type_ast, self.ident) 57 ident = "%s" % self.ident; 60 v = Var(self.symtab, self.ident, self.location, type, ident, 67 code += "%s* %s" % (type.c_ident, ident) 69 code += "%s %s" % (type.c_ident, ident) [all...] |
H A D | StateDeclAST.py | 45 ident = "%s_%s" % (parent, self.type_ast.ident) 47 ident = self.type_ast.ident 48 s = set(("%s.hh" % ident, "%s.cc" % ident)) 52 ident = str(self.type_ast) 55 t = Type(self.symtab, ident, self.location, self.pairs, 68 t.ident, func_id, self.location, 78 t.ident, func_i [all...] |
H A D | MachineAST.py | 35 self.ident = mtype.value 41 return "[Machine: %r]" % self.ident 44 s = set(('%s_Controller.cc' % self.ident, 45 '%s_Controller.hh' % self.ident, 46 '%s_Controller.py' % self.ident, 47 '%s_Transitions.cc' % self.ident, 48 '%s_Wakeup.cc' % self.ident)) 50 s |= self.decls.files(self.ident) 58 machine = StateMachine(self.symtab, self.ident, self.location, 73 mtype = self.ident [all...] |
H A D | TypeDeclAST.py | 46 ident = "%s_%s" % (parent, self.type_ast.ident) 48 ident = self.type_ast.ident 49 return set(("%s.hh" % ident, "%s.cc" % ident)) 52 ident = str(self.type_ast) 56 new_type = Type(self.symtab, ident, self.location, self.pairs,
|
H A D | EnumDeclAST.py | 46 ident = "%s_%s" % (parent, self.type_ast.ident) 48 ident = self.type_ast.ident 49 s = set(("%s.hh" % ident, "%s.cc" % ident)) 53 ident = str(self.type_ast) 56 t = Type(self.symtab, ident, self.location, self.pairs,
|
H A D | FuncDeclAST.py | 32 def __init__(self, slicc, return_type, ident, formals, pairs, statements): 36 self.ident = ident 41 return "[FuncDecl: %s]" % self.ident 61 type, ident = formal.generate() 63 params.append(ident) 77 func_name_args = self.ident 83 arg_name = arg.type_ast.ident 89 func = Func(self.symtab, func_name_args, self.ident, self.location, 94 self.error("Duplicate method: %s:%s()" % (parent, self.ident)) [all...] |
H A D | OutPortDeclAST.py | 34 def __init__(self, slicc, ident, msg_type, var_expr, pairs): 37 self.ident = ident 43 return "[OutPortDecl: %r]" % self.ident 54 if not self.symtab.find(self.msg_type.ident, Type): 56 self.msg_type.ident) 58 var = Var(self.symtab, self.ident, self.location, self.queue_type.type,
|
H A D | FormalParamAST.py | 32 def __init__(self, slicc, type_ast, ident, default = None, pointer = False): 35 self.ident = ident 40 return "[FormalParamAST: %s]" % self.ident 44 return self.ident 48 param = "param_%s" % self.ident 51 v = Var(self.symtab, self.ident, self.location, type, param,
|
H A D | ActionDeclAST.py | 32 def __init__(self, slicc, ident, pairs, statement_list): 34 self.ident = ident 38 return "[ActionDecl: %r]" % (self.ident) 79 action = Action(self.symtab, self.ident, resources, self.location,
|
H A D | InPortDeclAST.py | 33 def __init__(self, slicc, ident, msg_type, var_expr, pairs, statements): 36 self.ident = ident 43 return "[InPortDecl: %s]" % self.ident 62 in_port = Var(self.symtab, self.ident, self.location, type, str(code), 91 trigger_func_name += "_" + param.ident
|
H A D | AssignStatementAST.py | 48 if not (ltype == rtype or (ltype.isInterface and ltype['interface'] == rtype.ident)):
|
H A D | ExprStatementAST.py | 49 "return type is '%s'", actual_type.ident)
|
/gem5/src/mem/slicc/symbols/ |
H A D | Action.py | 31 def __init__(self, table, ident, resources, location, pairs): 32 super(Action, self).__init__(table, ident, location, pairs) 36 return "[Action: %s]" % self.ident
|
H A D | Var.py | 31 def __init__(self, symtab, ident, location, type, code, pairs, 33 super(Var, self).__init__(symtab, ident, location, pairs) 40 return "[Var id: %s]" % (self.ident)
|
H A D | Event.py | 32 return "[Event: %s]" % self.ident
|
H A D | RequestType.py | 31 return "[RequestType: %s]" % self.ident
|
H A D | Symbol.py | 31 def __init__(self, symtab, ident, location, pairs=None): 37 if not isinstance(ident, str): raise AttributeError 41 self.ident = ident 46 self["short"] = self.ident 50 return "[Symbol: %s]" % self.ident 53 return str(self.ident)
|
H A D | StateMachine.py | 57 def __init__(self, symtab, ident, location, pairs, config_parameters): 58 super(StateMachine, self).__init__(symtab, ident, location, pairs) 70 var = Var(symtab, param.ident, location, param.type_ast.type, 71 "(*m_%s_ptr)" % param.ident, {}, self) 73 var = Var(symtab, param.ident, location, param.type_ast.type, 74 "m_%s" % param.ident, {}, self) 76 self.symtab.registerSym(param.ident, var) 100 return "[StateMachine: %s]" % self.ident 104 self.states[state.ident] = state 108 self.events[event.ident] [all...] |
H A D | Type.py | 35 def __init__(self, symtab, ident, location, type, code, pairs, 37 super(DataMember, self).__init__(symtab, ident, location, type, 42 def __init__(self, ident, pairs): 44 self.ident = ident 48 def __init__(self, table, ident, location, pairs, machine=None): 49 super(Type, self).__init__(table, ident, location, pairs) 50 self.c_ident = ident 58 self.c_ident = "%s_%s" % (machine, ident) 69 if self.ident i [all...] |
H A D | State.py | 32 return "[State: %s]" % self.ident
|
H A D | SymbolTable.py | 73 def find(self, ident, types=None): 76 symbol = sym_map[ident] 113 def registerGlobalSym(self, ident, symbol): 115 if ident in self.sym_map_vec[0]: 116 symbol.error("Symbol '%s' redeclared in global scope." % ident) 118 self.sym_map_vec[0][ident] = symbol 148 name = "%s_table.html" % machines[0].ident
|
H A D | Transition.py | 34 ident = "%s|%s" % (state, event) 35 super(Transition, self).__init__(table, ident, location)
|
H A D | Func.py | 32 def __init__(self, table, ident, name, location, return_type, param_types, 34 super(Func, self).__init__(table, ident, location, pairs) 40 self.c_ident = ident
|