OperatorExprAST.py (10965:6f433e7f9767) | OperatorExprAST.py (11016:bc759340631f) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 53 unchanged lines hidden (view full) --- 62 # boolean inputs and output 63 expected_types = [("bool", "bool", "bool")] 64 elif self.op in ("<<", ">>"): 65 expected_types = [("int", "int", "int"), 66 ("Cycles", "int", "Cycles")] 67 elif self.op in ("+", "-", "*", "/"): 68 expected_types = [("int", "int", "int"), 69 ("Cycles", "Cycles", "Cycles"), | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 53 unchanged lines hidden (view full) --- 62 # boolean inputs and output 63 expected_types = [("bool", "bool", "bool")] 64 elif self.op in ("<<", ">>"): 65 expected_types = [("int", "int", "int"), 66 ("Cycles", "int", "Cycles")] 67 elif self.op in ("+", "-", "*", "/"): 68 expected_types = [("int", "int", "int"), 69 ("Cycles", "Cycles", "Cycles"), |
70 ("Tick", "Tick", "Tick"), |
|
70 ("Cycles", "int", "Cycles"), 71 ("Scalar", "int", "Scalar"), 72 ("int", "bool", "int"), 73 ("bool", "int", "int"), 74 ("int", "Cycles", "Cycles")] 75 else: 76 self.error("No operator matched with {0}!" .format(self.op)) 77 --- 51 unchanged lines hidden --- | 71 ("Cycles", "int", "Cycles"), 72 ("Scalar", "int", "Scalar"), 73 ("int", "bool", "int"), 74 ("bool", "int", "int"), 75 ("int", "Cycles", "Cycles")] 76 else: 77 self.error("No operator matched with {0}!" .format(self.op)) 78 --- 51 unchanged lines hidden --- |