diff --git a/llvm/include/llvm/Analysis/InlineAdvisor.h b/llvm/include/llvm/Analysis/InlineAdvisor.h --- a/llvm/include/llvm/Analysis/InlineAdvisor.h +++ b/llvm/include/llvm/Analysis/InlineAdvisor.h @@ -14,7 +14,7 @@ #include #include "llvm/Analysis/InlineCost.h" -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #include "llvm/IR/PassManager.h" namespace llvm { diff --git a/llvm/include/llvm/Analysis/Utils/TFUtils.h b/llvm/include/llvm/Analysis/Utils/TFUtils.h --- a/llvm/include/llvm/Analysis/Utils/TFUtils.h +++ b/llvm/include/llvm/Analysis/Utils/TFUtils.h @@ -9,7 +9,7 @@ #ifndef LLVM_ANALYSIS_UTILS_TFUTILS_H #define LLVM_ANALYSIS_UTILS_TFUTILS_H -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #ifdef LLVM_HAVE_TF_API #include "llvm/IR/LLVMContext.h" diff --git a/llvm/include/llvm/Config/config.h.cmake b/llvm/include/llvm/Config/config.h.cmake --- a/llvm/include/llvm/Config/config.h.cmake +++ b/llvm/include/llvm/Config/config.h.cmake @@ -347,7 +347,4 @@ /* Whether Timers signpost passes in Xcode Instruments */ #cmakedefine01 LLVM_SUPPORT_XCODE_SIGNPOSTS -/* Define if LLVM was built with a dependency to the tensorflow compiler */ -#cmakedefine LLVM_HAVE_TF_AOT - #endif diff --git a/llvm/include/llvm/Config/llvm-config.h.cmake b/llvm/include/llvm/Config/llvm-config.h.cmake --- a/llvm/include/llvm/Config/llvm-config.h.cmake +++ b/llvm/include/llvm/Config/llvm-config.h.cmake @@ -82,4 +82,7 @@ /* Define if LLVM was built with a dependency to the libtensorflow dynamic library */ #cmakedefine LLVM_HAVE_TF_API +/* Define if LLVM was built with a dependency to the tensorflow compiler */ +#cmakedefine LLVM_HAVE_TF_AOT + #endif diff --git a/llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp b/llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp --- a/llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp +++ b/llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp @@ -11,7 +11,7 @@ // loading of a model from a command line option. // //===----------------------------------------------------------------------===// -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #if defined(LLVM_HAVE_TF_API) #include "llvm/Analysis/CallGraph.h" diff --git a/llvm/lib/Analysis/ReleaseModeModelRunner.cpp b/llvm/lib/Analysis/ReleaseModeModelRunner.cpp --- a/llvm/lib/Analysis/ReleaseModeModelRunner.cpp +++ b/llvm/lib/Analysis/ReleaseModeModelRunner.cpp @@ -10,7 +10,7 @@ // Only inference is supported. // //===----------------------------------------------------------------------===// -#include "llvm/Config/config.h" +#include "llvm/Config/llvm-config.h" #if defined(LLVM_HAVE_TF_AOT) #include "llvm/Analysis/InlineModelFeatureMaps.h"