[Costmodel] Add "type-based-intrinsic-cost" cli option
authorMalhar Jajoo <malhar.jajoo@arm.com>
Fri, 22 Jul 2022 12:52:20 +0000 (13:52 +0100)
committerMalhar Jajoo <malhar.jajoo@arm.com>
Fri, 22 Jul 2022 14:50:57 +0000 (15:50 +0100)
commit41958f76d8a2c47484fa176cba1de565cfe84de7
tree2b460579e50eb0083d0a75f65b5c8d7eb2d8ca6c
parent600172a72bfb87acda6e2411671d1a6ee42206f9
[Costmodel] Add "type-based-intrinsic-cost" cli option

This patch adds a command line flag to be able to test
the type based cost-model analysis for Intrinsics.

Differential Revision: https://reviews.llvm.org/D129109
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/lib/Analysis/CostModel.cpp
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/AArch64/sve-intrinsics.ll