llvm-project/llvm/tools/lli
Craig Topper 243f20f117 [lli] Make lli support -mcpu=native for CPU autodetection
llc, opt, and clang can all autodetect the CPU and supported features. lli cannot as far as I could tell.

This patch uses the getCPUStr() and introduces a new getCPUFeatureList() and uses those in lli in place of MCPU and MAttrs.

Ideally, we would merge getCPUFeatureList and getCPUFeatureStr, but opt and llc need a string and lli wanted a list. Maybe we should just return the SubtargetFeature object and let the caller decide what it needs?

Differential Revision: https://reviews.llvm.org/D41833

llvm-svn: 322100
2018-01-09 18:14:18 +00:00
..
ChildTarget [CMake] lli-child-target depends on intrinsics gen 2016-11-19 02:09:51 +00:00
CMakeLists.txt Prune unused libdeps. 2016-12-08 15:28:02 +00:00
LLVMBuild.txt
OrcLazyJIT.cpp [ORC] Errorize the ORC APIs. 2017-07-07 02:59:13 +00:00
OrcLazyJIT.h Untabify. 2017-08-28 06:47:47 +00:00
RemoteJITUtils.h [Orc] Remove the memory manager argument to addModule, and de-templatize the 2017-07-04 04:42:30 +00:00
lli.cpp [lli] Make lli support -mcpu=native for CPU autodetection 2018-01-09 18:14:18 +00:00