Searched refs:new_symbol (Results 1 – 14 of 14) sorted by relevance
29 self.assertEqual('temp', namer.new_symbol('temp', set()))34 self.assertEqual('temp', namer.new_symbol('temp', set()))35 self.assertEqual('temp_1', namer.new_symbol('temp', set()))41 self.assertEqual('temp_1', namer.new_symbol('temp', set()))43 self.assertEqual('temp_3', namer.new_symbol('temp', set(('temp_2',))))
177 inner_factory_name = namer.new_symbol(inner_factory_name, ())178 outer_factory_name = namer.new_symbol(outer_factory_name, ())353 new_name = namer.new_symbol(self.get_transformed_name(node), ())
31 def new_symbol(self, name_root, reserved_locals): member in Namer
250 self.ctx.namer.new_symbol(s.ssf(), body_scope.referenced)253 self.ctx.namer.new_symbol(s.ssf(), orelse_scope.referenced)263 cond_var_name = self.ctx.namer.new_symbol('cond', body_scope.referenced)264 body_name = self.ctx.namer.new_symbol('if_true', body_scope.referenced)265 orelse_name = self.ctx.namer.new_symbol('if_false', orelse_scope.referenced)267 state_getter_name = self.ctx.namer.new_symbol('get_state', all_referenced)268 state_setter_name = self.ctx.namer.new_symbol('set_state', all_referenced)410 state_getter_name = self.ctx.namer.new_symbol('get_state', reserved_symbols)411 state_setter_name = self.ctx.namer.new_symbol('set_state', reserved_symbols)447 test_name=self.ctx.namer.new_symbol('loop_test', reserved_symbols),[all …]
218 state_getter_name = self.ctx.namer.new_symbol('get_state', reserved)219 state_setter_name = self.ctx.namer.new_symbol('set_state', reserved)248 body_name=self.ctx.namer.new_symbol('if_body', reserved),250 orelse_name=self.ctx.namer.new_symbol('else_body', reserved),273 state_getter_name = self.ctx.namer.new_symbol('get_state', reserved)274 state_setter_name = self.ctx.namer.new_symbol('set_state', reserved)299 body_name=self.ctx.namer.new_symbol('loop_body', reserved),307 test_name=self.ctx.namer.new_symbol('loop_test', reserved),325 state_getter_name = self.ctx.namer.new_symbol('get_state', reserved)326 state_setter_name = self.ctx.namer.new_symbol('set_state', reserved)[all …]
63 function_context_name = self.ctx.namer.new_symbol('lscope',85 function_context_name = self.ctx.namer.new_symbol('fscope',
78 break_var = self.ctx.namer.new_symbol('break_', scope.referenced)124 break_var = self.ctx.namer.new_symbol('break_', scope.referenced)
347 do_return_var_name = self.ctx.namer.new_symbol('do_return',349 retval_var_name = self.ctx.namer.new_symbol('retval_', scope.referenced)
103 continue_var = self.ctx.namer.new_symbol('continue_', scope.referenced)
102 pop_var_name = self.ctx.namer.new_symbol(target_name, scope.referenced)
2200 new_symbol = "tf.math.conj(a)"2204 expected_text = "import tensorflow.compat.v2 as tf\n" + new_symbol2212 expected_text = new_import_header + new_symbol2224 expected_text = expected_header + new_symbol2235 expected_text = expected_header + new_symbol2247 expected_text = expected_header + new_symbol2254 expected_text = "from tensorflow.compat.v2 import foo\n" + new_symbol2261 expected_text = "from tensorflow.compat.v2 import *\n" + new_symbol2268 expected_text = "from tensorflow.compat.v2.foo import bar\n" + new_symbol2280 expected_text = expected_header + new_symbol[all …]
383 const Optional<StringRef>& new_symbol, Value token) { in RewriteCallOp() argument390 call.getLoc(), new_result_types, new_symbol ? *new_symbol : call.callee(), in RewriteCallOp()
221 self.ctx.namer.new_symbol(node.name, []),
693 return '%' + self.ctx.namer.new_symbol(prefix, set())