This just adds feature declarations and some boilerplate.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp | ||
---|---|---|
147 | see the comment on line 136. The template getTotalSize and the macro go hand in hand. The use case (resetting) is specific to regalloc. It's not impossible to make these APIs of the MLModelRunner, but it'd involve exposing some notion of tensor type to the non-development mode runners, and we don't need that right now elsewhere. I'd prefer to wait and see if there are more usecases like this. |
should this be a common function somewhere?