Example #1
0
 def __init__(self, target, description = "generate basic-blocks pass"):
     FunctionPass.__init__(self, description, target)
     self.memoization_map = {}
     self.top_bb_list = None
     self.current_bb_stack = []
     self.bb_tag_index = 0
     # unique loop identifier
     self.loop_id = -1
Example #2
0
 def __init__(self,
              target,
              default_precision,
              default_integer_format=ML_Int32,
              default_boolean_precision=ML_Int32):
     FunctionPass.__init__(self, "instantiate_prec")
     self.default_integer_format = default_integer_format
     self.default_boolean_precision = default_boolean_precision
     self.default_precision = default_precision
Example #3
0
    def __init__(self, target):
        FunctionPass.__init__(self, "vector promotion pass", target)
        ## memoization map for promoted optree
        self.memoization_map = {}
        ## memoization map for converted promoted optree
        self.conversion_map = {}
        # memoization map for copy
        self.copy_map = {}

        self.support_checker = Pass_CheckSupport(target)
Example #4
0
 def __init__(self,
              target,
              change_handle=True,
              dot_product_enabled=False,
              silence=False):
     FunctionPass.__init__(self, "fuse_fma")
     self.memoization_map = {}
     self.change_handle = change_handle
     self.dot_product_enabled = dot_product_enabled
     self.silence = silence
Example #5
0
 def __init__(self, target, description="lower operation for target"):
     FunctionPass.__init__(self, description, target)
Example #6
0
 def __init__(self, target):
     """ pass initialization """
     FunctionPass.__init__(self, "size_datapath", target)
     self.format_solver = FormatSolver()
Example #7
0
 def __init__(self, tag, target):
     FunctionPass.__init__(self, tag, target)
Example #8
0
 def __init__(self, target, language=C_Code, debug=False):
     FunctionPass.__init__(self, "check_processor_support")
     self.processor = target
     self.language = language
     self.debug = debug
Example #9
0
 def __init__(self, target):
     FunctionPass.__init__(self, "sub_expr_sharing")
     self.memoization_map = {}
Example #10
0
 def __init__(self, target, language=C_Code):
     FunctionPass.__init__(self, "tag_node", target)
     self.language = language
     self.tag_id = collections.defaultdict(lambda: 0)
Example #11
0
 def __init__(self, target, force=False):
     FunctionPass.__init__(self, "silence_fp_ops")
     self.memoization_map = {}
     self.force = force
Example #12
0
 def __init__(self, target, default_precision=None):
     FunctionPass.__init__(self, "instantiate_abstract_prec")
     self.default_precision = default_precision
Example #13
0
 def __init__(self, target=None):
     FunctionPass.__init__(self, target=target)
     self.memoization_map = {}
 def __init__(self, target):
     FunctionPass.__init__(
         self, "virtual vector bool legalization pass", target)
     ## memoization map for promoted optree
     self.memoization_map = {}
     self.simplifier = NumericalSimplifier(target)
Example #15
0
 def __init__(self, target, debug_tags, language=C_Code):
     FunctionPass.__init__(self, "debug_tagged_node", target)
     self.language = language
     self.tag_list = [] if debug_tags in [True, False, None] else debug_tags
     # if debug_tags==True then debug's attributes must not be modified
     self.default_tags = (debug_tags is True)
Example #16
0
 def __init__(self, target, description = "simplify basic-blocks pass"):
     FunctionPass.__init__(self, description, target)
     self.memoization_map = {}
Example #17
0
 def __init__(self, target, description="translate basic-blocks into ssa form pass"):
     FunctionPass.__init__(self, description, target)
     self.memoization_map = {}
     self.top_bb_list = None
Example #18
0
 def __init__(self, target):
     FunctionPass.__init__(self, "logical operation simplification pass",
                           target)
     ## memoization map for promoted optree
     self.memoization_map = {}
     self.simplifier = LogicalSimplification(target)