[PATCH] D13426: Move types in the LLVM C API from Core to Support

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 4 16:26:43 PDT 2015


deadalnix created this revision.
deadalnix added reviewers: jyknight, ributzka, lhames, grosbach, echristo, joker.eph.
deadalnix added a subscriber: llvm-commits.

Becuase these type were on Core, it required core to be included all over the place, notably in IR/Value.h and IR/Type.h . As a result, any change in Core.h require to recompile LLVM almost completely, which is painful.

Moving them to Support.h allow for most of LLVM to not depend on Core.h , saving a lot of compilation time.

There is no functionality change, only reorganisation of header to save compilation time.

http://reviews.llvm.org/D13426

Files:
  include/llvm-c/Analysis.h
  include/llvm-c/BitReader.h
  include/llvm-c/BitWriter.h
  include/llvm-c/Core.h
  include/llvm-c/ExecutionEngine.h
  include/llvm-c/IRReader.h
  include/llvm-c/Initialization.h
  include/llvm-c/Linker.h
  include/llvm-c/Object.h
  include/llvm-c/Support.h
  include/llvm-c/Target.h
  include/llvm-c/TargetMachine.h
  include/llvm/IR/DiagnosticInfo.h
  include/llvm/IR/LLVMContext.h
  include/llvm/IR/Type.h
  include/llvm/IR/Use.h
  include/llvm/IR/Value.h
  include/llvm/PassRegistry.h
  include/llvm/Support/CBindingWrapping.h
  lib/Bitcode/Reader/BitReader.cpp
  tools/llvm-c-test/object.c
  unittests/IR/ConstantsTest.cpp
  unittests/Linker/LinkModulesTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13426.36475.patch
Type: text/x-patch
Size: 13097 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151004/8b1442fe/attachment.bin>


More information about the llvm-commits mailing list