Lines Matching refs:self
23 def __init__(self, filename): argument
24 self.base_file_name = os.path.basename(filename)
25 self.full_file_name = filename
26 self.passes = []
27 self.instruction_set_features = ImmutableDict()
28 self.read_barrier_type = "none"
30 def set_isa_features(self, features): argument
31 self.instruction_set_features = ImmutableDict(features)
33 def set_read_barrier_type(self, read_barrier_type): argument
34 self.read_barrier_type = read_barrier_type
36 def add_pass(self, new_pass): argument
37 self.passes.append(new_pass)
39 def find_pass(self, name): argument
40 for entry in self.passes:
45 def __eq__(self, other): argument
46 return (isinstance(other, self.__class__)
47 and self.passes == other.passes
48 and self.instruction_set_features == other.instruction_set_features
49 and self.read_barrier_type == other.read_barrier_type)
53 def __init__(self, parent, name, body, start_line_no): argument
54 self.parent = parent
55 self.name = name
56 self.body = body
57 self.start_line_no = start_line_no
59 if not self.name:
60 Logger.fail("C1visualizer pass does not have a name", self.filename, self.start_line_no)
61 if not self.body:
62 Logger.fail("C1visualizer pass does not have a body", self.filename, self.start_line_no)
64 self.parent.add_pass(self)
67 def filename(self): argument
68 return self.parent.base_file_name
70 def __eq__(self, other): argument
71 return (isinstance(other, self.__class__)
72 and self.name == other.name
73 and self.body == other.body)