Esempio n. 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
Esempio n. 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
Esempio n. 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)
Esempio n. 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
Esempio n. 5
0
 def __init__(self, target, description="lower operation for target"):
     FunctionPass.__init__(self, description, target)
Esempio n. 6
0
 def __init__(self, target):
     """ pass initialization """
     FunctionPass.__init__(self, "size_datapath", target)
     self.format_solver = FormatSolver()
Esempio n. 7
0
 def __init__(self, tag, target):
     FunctionPass.__init__(self, tag, target)
Esempio n. 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
Esempio n. 9
0
 def __init__(self, target):
     FunctionPass.__init__(self, "sub_expr_sharing")
     self.memoization_map = {}
Esempio n. 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)
Esempio n. 11
0
 def __init__(self, target, force=False):
     FunctionPass.__init__(self, "silence_fp_ops")
     self.memoization_map = {}
     self.force = force
Esempio n. 12
0
 def __init__(self, target, default_precision=None):
     FunctionPass.__init__(self, "instantiate_abstract_prec")
     self.default_precision = default_precision
Esempio n. 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)
Esempio n. 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)
Esempio n. 16
0
 def __init__(self, target, description = "simplify basic-blocks pass"):
     FunctionPass.__init__(self, description, target)
     self.memoization_map = {}
Esempio n. 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
Esempio n. 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)