You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We never run the code so index must be determined at compile-time, so PythonToMLIR object should be the one tracking instantiations rather than the circular buffer itself.
deffunc(a: CircularBuffer, b: CircularBuffer):
a.read() # read default size from circular buffer index 1? a=ba.read() # read .. index 2?
Valid code above? Can choose. Could make it a rule (=> error) that circular buffers must only be referenced by their parameter name, or could allow dynamism but then can't just use a var_name -> CBIndex map in PythonToMLIR. First case is simpler and should cover most, if not all, programs.
The text was updated successfully, but these errors were encountered:
Create a class to model Circular Buffers.
Some things that may be useful:
We never run the code so index must be determined at compile-time, so
PythonToMLIR
object should be the one tracking instantiations rather than the circular buffer itself.Valid code above? Can choose. Could make it a rule (=> error) that circular buffers must only be referenced by their parameter name, or could allow dynamism but then can't just use a
var_name -> CBIndex
map inPythonToMLIR
. First case is simpler and should cover most, if not all, programs.The text was updated successfully, but these errors were encountered: