NFC: Change getUserCost to return InstructionCost
authorSander de Smalen <sander.desmalen@arm.com>
Wed, 20 Jan 2021 17:17:23 +0000 (17:17 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Wed, 31 Mar 2021 09:13:09 +0000 (10:13 +0100)
commit3ccbd4f3c7d164f7cb655ea15ab048176f7ba5b8
tree12777aff8bac9e8d6347cb928c435b75524d91b6
parent49c0ab6d7611050ae902f6369fc878e17da453ad
NFC: Change getUserCost to return InstructionCost

This patch migrates the TTI cost interfaces to return an InstructionCost.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html

Depends on D97382

Reviewed By: ctetreau, paulwalker-arm

Differential Revision: https://reviews.llvm.org/D97466
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Analysis/InlineCost.cpp
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.h