aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2022-07-14 12:19:18 -0700
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>2022-07-27 10:01:26 -0700
commit0562cf442f128e2665ecddc68ca9511a6a4a479b (patch)
tree5eaac9f309d110cc6b30c9ca4ad7eda2e3008917 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent7ce39d80a86a4afbcf1be932b6c98b348b5b6549 (diff)
downloadllvm-0562cf442f128e2665ecddc68ca9511a6a4a479b.zip
llvm-0562cf442f128e2665ecddc68ca9511a6a4a479b.tar.gz
llvm-0562cf442f128e2665ecddc68ca9511a6a4a479b.tar.bz2
Allow data prefetch into non-default address space
I am playing with the LoopDataPrefetch pass and found out that it bails to work with a pointer in a non-zero address space. This patch adds the target callback to check if an address space is to be considered for prefetching. Default implementation still only allows address space 0, so this is NFCI. This does not currently affect any known targets, but seems to be generally useful for the future. Differential Revision: https://reviews.llvm.org/D129795
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
0 files changed, 0 insertions, 0 deletions