[PATCH] D82817: [llvm] Native size estimator for training -Oz inliner
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 14 13:40:40 PDT 2020
mtrofin added a comment.
In D82817#2151481 <https://reviews.llvm.org/D82817#2151481>, @mehdi_amini wrote:
> I have some concerns about TensorFlow types and datastructure being directly exposed to Analysis, and relying on macros to conditionally compile all this away.
> This seems to me like an indication of a missing layering, and some dependencies to cut through injection somehow.
>
> Can you explain what in InlineSizeEstimatorAnalysis.cpp depends on TF for example? That would be a good starting point to help me understand how to break this dependency.
>
> Thanks!
In 'development' mode, InlineSizeEstimatorAnaysis uses a tensorflow model to estimate the native size of a function from some features.
In this upcoming patch (https://reviews.llvm.org/D83733), also in 'development' mode, we use a tensorflow model that we want to load via command line (see the patch description).
Note that the TF APIs are those limited to the C API surface area - basic data types and TF_Tensor. If one builds LLVM with TF API support, and then wants to add an analysis, they may benefit from reusing this API.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82817/new/
https://reviews.llvm.org/D82817
More information about the llvm-commits
mailing list