This is an archive of the discontinued LLVM Phabricator instance.

[llvm][NFC] expose LLVM_HAVE_TF_API through llvm-config.h
ClosedPublic

Authored by mtrofin on Jul 13 2020, 10:35 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mtrofin created this revision.Jul 13 2020, 10:35 PM
This revision is now accepted and ready to land.Jul 14 2020, 1:16 PM
This revision was automatically updated to reflect the committed changes.