[llvm-exegesis] Change how the native architecture is determined
authorJohn Brawn <john.brawn@arm.com>
Mon, 2 Jul 2018 13:53:46 +0000 (13:53 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 2 Jul 2018 13:53:46 +0000 (13:53 +0000)
commit346856dc6c208fc103ca6838ec3a552cccad9267
tree75bc4bdcb0dd9d2e1689156fae30002af93ee0e4
parentc48908781d540d5407245520fb4fe6e6a2f69ef8
[llvm-exegesis] Change how the native architecture is determined

Currently the llvm-exegesis native architecture is determined by comparing the
llvm native architecture with X86, so to add a new target would mean adding a
new check. Change this to building up a list of the targets llvm-exegesis
supports then using that, as this means that when adding a new target you just
add the target to the list of supported targets.

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

llvm-svn: 336105
llvm/tools/llvm-exegesis/CMakeLists.txt
llvm/tools/llvm-exegesis/lib/CMakeLists.txt