1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/include/llvm/Transforms
Eli Bendersky fa2b4f20f2 Move duplicated code into a helper function (exposed through overload).
There's a bit of duplicated "magic" code in opt.cpp and Clang's CodeGen that
computes the inliner threshold from opt level and size opt level.

This patch moves the code to a function that lives alongside the inliner itself,
providing a convenient overload to the inliner creation.

A separate patch can be committed to Clang to use this once it's committed to
LLVM. Standalone tools that use the inlining pass can also avoid duplicating
this code and fearing it will go out of sync.

Note: this patch also restructures the conditinal logic of the computation to
be cleaner.

llvm-svn: 203669
2014-03-12 16:12:36 +00:00
..
IPO [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-05 09:10:37 +00:00
Utils Cloning a function now also clones its debug metadata if 'ModuleLevelChanges' is true. 2014-03-12 14:42:51 +00:00
Instrumentation.h Don't build DFSan functionality for Android. 2014-02-13 21:21:09 +00:00
IPO.h Move duplicated code into a helper function (exposed through overload). 2014-03-12 16:12:36 +00:00
ObjCARC.h Extracted ObjCARC.cpp into its own library libLLVMObjCARCOpts in preparation for refactoring the ARC Optimizer. 2013-01-28 01:35:51 +00:00
Scalar.h Pass to emit DWARF path discriminators. 2014-03-03 20:06:11 +00:00
Vectorize.h Add #pragma vectorize enable/disable to LLVM 2013-12-05 21:20:02 +00:00