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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/llvm-exegesis/CMakeLists.txt | ||
---|---|---|
14 ↗ | (On Diff #153531) | Does this work if the variable LLVM_EXEGESIS_TARGETS is never set (e.g. if llvm targets to build is just "ARM") ? |
tools/llvm-exegesis/CMakeLists.txt | ||
---|---|---|
14 ↗ | (On Diff #153531) | Yes, we get the some behaviour as we currently do (LLVM_EXEGESIS_NATIVE_ARCH is not set, so the default exegesis target is used). |