Open m-birke opened 11 months ago
As for the return type bug, at the time the check is performed (in the DSL visitor), we likely cannot know the return type yet ("unknown"), because it is inferred later in the compilation chain. So from my pov the check is valid, but applied too early.
As for the seg fault, I can reproduce it and already digged a little bit into it. It occurs where the generic function templates are being specialized. callOp.setCalleeAttr(specializedFunc.getSymNameAttr());
causes the segfault (actually, in mlir::DictionaryAttr::getValue() const ()
), but couldn't really see what is going wrong there.
Hi, still a problem from readFrame from function parameter.
This does not work with
Segmentation fault (core dumped)
Adding the commented
print(power);
statement and it works ...UDF
Here I also encounter the problem that I can't define the return type:
def readPowerFromCycle(path: str) -> matrix<f64>{
leads to[error]: Parser error: Function 'readPowerFromCycle' returns different type than specified in the definition
This works
Also
works, but adding the
print(time);
statement, again segmentation fault.