[TTI] There is actually no realistic way to pop TTI implementations off
authorChandler Carruth <chandlerc@gmail.com>
Mon, 10 Mar 2014 02:45:14 +0000 (02:45 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 10 Mar 2014 02:45:14 +0000 (02:45 +0000)
commit436906ab3cbe991826a8967f2c3c14850d267cbf
treeabbb50957f8a22f9cd77651503dfb12bc0256cbd
parent804ff192731d217fc82d4e63070dda060de02ebe
[TTI] There is actually no realistic way to pop TTI implementations off
the stack of the analysis group because they are all immutable passes.
This is made clear by Craig's recent work to use override
systematically -- we weren't overriding anything for 'finalizePass'
because there is no such thing.

This is kind of a lame restriction on the API -- we can no longer push
and pop things, we just set up the stack and run. However, I'm not
invested in building some better solution on top of the existing
(terrifying) immutable pass and legacy pass manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203437 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfo.h
lib/Analysis/TargetTransformInfo.cpp
lib/CodeGen/BasicTargetTransformInfo.cpp
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
lib/Target/ARM/ARMTargetTransformInfo.cpp
lib/Target/PowerPC/PPCTargetTransformInfo.cpp
lib/Target/R600/AMDGPUTargetTransformInfo.cpp
lib/Target/X86/X86TargetTransformInfo.cpp
lib/Target/XCore/XCoreTargetTransformInfo.cpp