aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2022-01-19 21:19:53 -0800
committerMircea Trofin <mtrofin@google.com>2022-01-20 07:05:39 -0800
commitf29256a64ac11cf59cea878c8d1ba9537db4f523 (patch)
tree6690ec551f4c8ed2fdedae5ec0de308fdf87e5d7 /clang/lib/CodeGen/CodeGenFunction.cpp
parent81d35f27ddec579f616e3f5f15b25fe4cc92236e (diff)
downloadllvm-f29256a64ac11cf59cea878c8d1ba9537db4f523.zip
llvm-f29256a64ac11cf59cea878c8d1ba9537db4f523.tar.gz
llvm-f29256a64ac11cf59cea878c8d1ba9537db4f523.tar.bz2
[MLGO] Improved support for AOT cross-targeting scenarios
The tensorflow AOT compiler can cross-target, but it can't run on (for example) arm64. We added earlier support where the AOT-ed header and object would be built on a separate builder and then passed at build time to a build host where the AOT compiler can't run, but clang can be otherwise built. To simplify such scenarios given we now support more than one AOT-able case (regalloc and inliner), we make the AOT scenario centered on whether files are generated, case by case (this includes the "passed from a different builder" scenario). This means we shouldn't need an 'umbrella' LLVM_HAVE_TF_AOT, in favor of case by case control. A builder can opt out of an AOT case by passing that case's model path as `none`. Note that the overrides still take precedence. This patch controls conditional compilation with case-specific flags, which can be enabled locally, for the component where those are available. We still keep an overall flag for some tests. The 'development/training' mode is unchanged, because there the model is passed from the command line and interpreted. Differential Revision: https://reviews.llvm.org/D117752
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions