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
See #978. For BRAT compilation, we'd like to be able to inline static functions, so an indirect_call of a static graph coming from a LoadFunction node becomes an instantiation of that graph. We can then get further by constant folding the whole hugr.
The text was updated successfully, but these errors were encountered:
I think that's two separate steps - firstly IndirectCall + LoadFunction -> direct Call (which doesn't require inlining, but removes the need for indirect-call which will likely move to the tierkreis extension); secondly, inlining of arbitrary direct Calls...
So #2059 has done the groundwork and the analysis here; we just need to either add a new pass, or extend the constant-folding pass (maybe with a config), to convert CallIndirect when the target is known into direct Calls. (interpret_leaf_op gets all the info it needs - this is not exposed to extension ops yet (#2087) but we don't need that here.)
See #978. For BRAT compilation, we'd like to be able to inline static functions, so an
indirect_call
of a static graph coming from aLoadFunction
node becomes an instantiation of that graph. We can then get further by constant folding the whole hugr.The text was updated successfully, but these errors were encountered: