Changes between Version 66 and Version 67 of Orio
- Timestamp:
- 06/14/08 03:18:27 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Orio
v66 v67 247 247 '''The abstract class of Orio's code transformation module''' 248 248 249 def __init__(self, cmd_line_opts, perf_params, module_ code, line_no, indent_size, annot_body_code):249 def __init__(self, cmd_line_opts, perf_params, module_body_code, line_no, indent_size, annot_body_code): 250 250 ''' 251 251 The class constructor used to instantiate a program transformation module. 252 252 253 253 The following are the class attributes: 254 cmd_line_opts an object representingthe command line options254 cmd_line_opts information about the command line options 255 255 (see src/main/cmd_line_opts.py for more details) 256 256 perf_params a table that maps each performance parameter to its value 257 module_ code the code of annotation module body257 module_body_code the code inside the module body block 258 258 line_no the starting line position of the module code in the source code 259 259 indent_size an integer representing the number of space characters used in the 260 260 indentation of the leader annotation 261 annot_body_code the text located in the annotation body block261 annot_body_code the code contained in the annotation body block 262 262 ''' 263 263 self.cmd_line_opts = cmd_line_opts 264 264 self.perf_params = perf_params 265 self.module_ code = module_code265 self.module_body_code = module_body_code 266 266 self.line_no = line_no 267 267 self.indent_size = indent_size … … 277 277 }}} 278 278 279 Among all the class attributes, three of them are very important for performing code optimization and generation: ''performance parameters'', ''module body code'', and ''annotation body code''. 280 279 281 ''Currently under construction'' 280 282