llvm-6502/lib
Chandler Carruth 13086a658a Begin fleshing out an interface in TTI for modelling the costs of
generic function calls and intrinsics. This is somewhat overlapping with
an existing intrinsic cost method, but that one seems targetted at
vector intrinsics. I'll merge them or separate their names and use cases
in a separate commit.

This sinks the test of 'callIsSmall' down into TTI where targets can
control it. The whole thing feels very hack-ish to me though. I've left
a FIXME comment about the fundamental design problem this presents. It
isn't yet clear to me what the users of this function *really* care
about. I'll have to do more analysis to figure that out. Putting this
here at least provides it access to proper analysis pass tools and other
such. It also allows us to more cleanly implement the baseline cost
interfaces in TTI.

With this commit, it is now theoretically possible to simplify much of
the inline cost analysis's handling of calls by calling through to this
interface. That conversion will have to happen in subsequent commits as
it requires more extensive restructuring of the inline cost analysis.

The CodeMetrics class is now really only in the business of running over
a block of code and aggregating the metrics on that block of code, with
the actual cost evaluation done entirely in terms of TTI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173148 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-22 11:26:02 +00:00
..
Analysis Begin fleshing out an interface in TTI for modelling the costs of 2013-01-22 11:26:02 +00:00
Archive Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
AsmParser Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
Bitcode Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
CodeGen Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
DebugInfo Fix the assembly and dissassembly of DW_FORM_sec_offset. Found this by 2013-01-17 03:00:04 +00:00
ExecutionEngine Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
IR Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
Linker [Linker] Kill Linker::LoadObject which is dead, and drop the BitReader dependency again. 2013-01-18 19:37:11 +00:00
MC [MC/Mach-O] Load commands are supposed to 8-byte aligned on 64-bit. 2013-01-22 03:42:49 +00:00
Object [MC/Mach-O] Add support for linker options in Mach-O files. 2013-01-18 01:26:07 +00:00
Option Resort the #include lines in include/... and lib/... with the 2013-01-02 10:22:59 +00:00
Support Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
TableGen TableGen: Keep track of superclass reference ranges. 2013-01-10 18:50:11 +00:00
Target Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
Transforms Begin fleshing out an interface in TTI for modelling the costs of 2013-01-22 11:26:02 +00:00
CMakeLists.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
LLVMBuild.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
Makefile Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00