[mlgo] Use LLVM_HAVE_TFLITE instead of LLVM_HAVE_TF_API in C++ code (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 12 Dec 2022 19:28:40 +0000 (11:28 -0800)
committerKazu Hirata <kazu@google.com>
Mon, 12 Dec 2022 19:28:40 +0000 (11:28 -0800)
commitedc83a15b45e6b91fce3f35622a6b0a6d34e5211
tree988c47bd72cbb5f4772ac2c7bd771ca1feaf34ba
parent842b0d0fe2dd142305a9461e50cdce9aff7f86bc
[mlgo] Use LLVM_HAVE_TFLITE instead of LLVM_HAVE_TF_API in C++ code (NFC)

We use LLVM_HAVE_TFLITE as the key to enable the mlgo work these days,
and LLVM_HAVE_TF_API is defined whenever LLVM_HAVE_TF_API is defined.

I'm posting this patch because it's purely mechanical.

I'll post a follow-up patch to remove LLVM_HAVE_TF_API in non-C++
files, and that will not be as mechanical as this one.

Differential Revision: https://reviews.llvm.org/D139863
13 files changed:
llvm/include/llvm/Analysis/ModelUnderTrainingRunner.h
llvm/include/llvm/Analysis/Utils/TFUtils.h
llvm/include/llvm/Analysis/Utils/TrainingLogger.h
llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
llvm/lib/Analysis/InlineAdvisor.cpp
llvm/lib/Analysis/InlineSizeEstimatorAnalysis.cpp
llvm/lib/Analysis/ModelUnderTrainingRunner.cpp
llvm/lib/Analysis/TFLiteUtils.cpp
llvm/lib/Analysis/TrainingLogger.cpp
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
llvm/lib/CodeGen/MLRegallocPriorityAdvisor.cpp
llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
llvm/lib/CodeGen/RegAllocPriorityAdvisor.cpp