[PATCH] D115035: Move header ConstantFold.h into include directory

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 3 02:31:28 PST 2021


sepavloff created this revision.
sepavloff added reviewers: craig.topper, kpn, RKSimon.
Herald added subscribers: dexonsmith, hiraditya.
sepavloff requested review of this revision.
Herald added a project: LLVM.

Functions in ConstantFold.h were declared as internal interface so this
header resided in `lib` directory. However the functions declared there
are useful in other places, in particular, in ConstantFolding.cpp. To
avoid code duplication, these functions are moved into `include`
directory, so the interface declared in ConstantFold.h is not internal
anymore.

This change only modes the include file, fixes references to it and
removes mentions about internal interface. No functional changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115035

Files:
  llvm/include/llvm/IR/ConstantFold.h
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/IR/ConstantFold.h
  llvm/lib/IR/Constants.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115035.391590.patch
Type: text/x-patch
Size: 7149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/a3a59839/attachment.bin>


More information about the llvm-commits mailing list