Displaying 2 results from an estimated 2 matches for "instmetr".
Did you mean:
instmem
2013 Jan 30
2
[LLVMdev] InstMetrics would look a lot like NoTTI
...sibilities:
1) I could create a NoTTI pass wrapper so that NoTTI can be used as a utility in addition to part of the analysis group:
struct NoTTIBase : TargetTransformInfo {
... all the TTI hooks ...
};
struct NoTTI : ImmutablePass, NoTTIBase {
... pass interface ...
};
Create a new Analysis/InstMetrics.(h|cpp) to expose only the queries that No-TTI passes are allowed to use. Instatiate a NoTTI instance on-the-fly
2) I could move the Target-Independent "cost" metrics into InstMetrics.cpp and use that interface within NoTTI.
Thanks,
-Andy
2013 Jan 30
0
[LLVMdev] InstMetrics would look a lot like NoTTI
...describing is something with a very different motivation and
design constraints. Separating it thoroughly API-wise is going to be
important.
On Wed, Jan 30, 2013 at 11:07 AM, Andrew Trick <atrick at apple.com> wrote:
> 2) I could move the Target-Independent "cost" metrics into InstMetrics.cpp
> and use that interface within NoTTI.
I think this is a much better approach. It is minimally clever. It is
obvious how things work.
It also allows NoTTI to *selectively* use the pieces of your logic when it
makes sense as a baseline approximation of TTI's interface. It may not
al...