summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-12-22 02:30:30 +0000
committerCraig Topper <craig.topper@intel.com>2017-12-22 02:30:30 +0000
commite268598dd3c8df79e2c2ca6a392fe5128bb276c8 (patch)
tree2aa934665b80961c82555a2dbf7458872135c3f9 /clang/lib/Lex/ModuleMap.cpp
parent9befe89367d24c7f3bdae1f7659cb3654e571e11 (diff)
downloadbcm5719-llvm-e268598dd3c8df79e2c2ca6a392fe5128bb276c8.tar.gz
bcm5719-llvm-e268598dd3c8df79e2c2ca6a392fe5128bb276c8.zip
[X86] Add prefetchwt1 instruction and overhaul priorities and isel enabling for prefetch instructions.
Previously prefetch was only considered legal if sse was enabled, but it should be supported with 3dnow as well. The prfchw flag now imply at least some form of prefetch without the write hint is available, either the sse or 3dnow version. This is true even if 3dnow and sse are explicitly disabled. Similarly prefetchwt1 feature implies availability of prefetchw and the the prefetcht0/1/2/nta instructions. This way we can support _MM_HINT_ET0 using prefetchw and _MM_HINT_ET1 with prefetchwt1. And its assumed that if we have levels for the write hint we would have levels for the non-write hint, thus why we enable the sse prefetch instructions. I believe this behavior is consistent with gcc. I've updated the prefetch.ll to test all of these combinations. llvm-svn: 321335
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud