[PATCH] D83746: [llvm][NFC] expose LLVM_HAVE_TF_API through llvm-config.h

Mircea Trofin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 22:35:37 PDT 2020


mtrofin created this revision.
mtrofin added reviewers: mehdi_amini, davidxl.
Herald added subscribers: llvm-commits, aaron.ballman, mgorny.
Herald added a project: LLVM.

This allows users of the llvm library discover whether llvm was built
with the tensorflow c API dependency, which helps if using the TFUtils
wrapper, for example.

We don't do the same for the LLVM_HAVE_TF_AOT flag, because that does
not expose any API.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83746

Files:
  llvm/CMakeLists.txt
  llvm/include/llvm/Analysis/Utils/TFUtils.h
  llvm/include/llvm/Config/llvm-config.h.cmake
  llvm/unittests/Analysis/InlineSizeEstimatorAnalysisTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83746.277672.patch
Type: text/x-patch
Size: 4602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200714/9ae6a498/attachment.bin>


More information about the llvm-commits mailing list