llvm-6502/include/llvm
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
..
ADT Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
Analysis Begin fleshing out an interface in TTI for modelling the costs of 2013-01-22 11:26:02 +00:00
Assembly
Bitcode r173072 is causing some regressions on big endian hosts, I don't have time to debug it 2013-01-21 19:08:15 +00:00
CodeGen Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
Config
DebugInfo
ExecutionEngine
IR Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
MC [MC/Mach-O] Add support for linker options in Mach-O files. 2013-01-18 01:26:07 +00:00
Object Revert "[Object] .bss sections have no content. PR15005." 2013-01-21 08:13:04 +00:00
Option
Support Support/Compiler.h: MSC1600, aka VS2010, is not C++11-ready. 2013-01-21 00:30:31 +00:00
TableGen
Target Split TargetLowering into a CodeGen and a SelectionDAG part. 2013-01-11 20:05:37 +00:00
Transforms Move Blacklist.h to include/ to enable use from clang. 2013-01-18 11:29:21 +00:00
AutoUpgrade.h
CMakeLists.txt
DebugInfo.h Define metadata interfaces for describing a static data member 2013-01-16 01:22:23 +00:00
DIBuilder.h Define metadata interfaces for describing a static data member 2013-01-16 01:22:23 +00:00
GVMaterializer.h
InitializePasses.h Make the inline cost a proper analysis pass. This remains essentially 2013-01-21 11:39:18 +00:00
InstVisitor.h
LinkAllIR.h
LinkAllPasses.h
Linker.h [Linker] Zap a dead typedef. 2013-01-18 20:08:09 +00:00
Pass.h
PassAnalysisSupport.h
PassManager.h
PassManagers.h
PassRegistry.h
PassSupport.h