I wanted to create a mapping from template parameters to Var with a Forall type, but I encountered some difficulties.
- What should be the target type for Forall?
- What should be the type for the Var node under the mapping?
- How should that Var node be created?
Region::declare_var() will add the var to the scope in the Region. As a result, I will end up having the same Var node twice in the tree. Once as the child of the Mapping, and once directly in the scope of the Region.
I wanted to create a mapping from template parameters to Var with a
Foralltype, but I encountered some difficulties.Region::declare_var()will add the var to the scope in the Region. As a result, I will end up having the sameVarnode twice in the tree. Once as the child of theMapping, and once directly in the scope of theRegion.