jroesch opened a new pull request #6162:
URL: https://github.com/apache/incubator-tvm/pull/6162


   This PR implements both metadata parsing and converts everything to the new 
diagnostic machinery. 
   
   I initially believed that the right way to parse the metadata table is to 
generate delayed references to the metadata table and then expand them after 
parsing is complete. In order to do this we need a piece of syntax i.e Expr, 
Type, Attrs, and so on for each meta reference. Currently this only works for 
`Expr` as I tried to define MetaRef as `op` right now in order to minimize 
changes.  
   
   This brings up a bigger long term question of how much we should rely on the 
meta table outside of things such as the constants or other "unprintable" 
values. I realize with my tokenization approach we could eagerly expand the 
meta references but this requires that we have the full program on hand in 
order to successfully parse any program fragment.
   
   Would love to get some more thoughts and feedback cc @MarisaKirisame 
@joshpoll @tqchen @zhiics @electriclilies @mbrookhart @junrushao1994. 
   
   FYI cc @tmoreau89 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to