summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-02-06 09:04:56 +0000
committerTim Northover <Tim.Northover@arm.com>2013-02-06 09:04:56 +0000
commit91a51c5a7c2299cdcf0a292a94f3a89e516425bc (patch)
tree75771173b10159f4f72bcf4c17127bf30db644ee /llvm/lib
parent63b8819445c809afcf381bb499d26291c85c45c9 (diff)
downloadbcm5719-llvm-91a51c5a7c2299cdcf0a292a94f3a89e516425bc.tar.gz
bcm5719-llvm-91a51c5a7c2299cdcf0a292a94f3a89e516425bc.zip
Add icache prefetch operations to AArch64
This adds hints to the various "prfm" instructions so that they can affect the instruction cache as well as the data cache. llvm-svn: 174495
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp6
-rw-r--r--llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h6
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
index 5f09074bcfa..ab9bba18369 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
@@ -120,6 +120,12 @@ const NamedImmMapper::Mapping A64PRFM::PRFMMapper::PRFMPairs[] = {
{"pldl2strm", PLDL2STRM},
{"pldl3keep", PLDL3KEEP},
{"pldl3strm", PLDL3STRM},
+ {"plil1keep", PLIL1KEEP},
+ {"plil1strm", PLIL1STRM},
+ {"plil2keep", PLIL2KEEP},
+ {"plil2strm", PLIL2STRM},
+ {"plil3keep", PLIL3KEEP},
+ {"plil3strm", PLIL3STRM},
{"pstl1keep", PSTL1KEEP},
{"pstl1strm", PSTL1STRM},
{"pstl2keep", PSTL2KEEP},
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index 48e6c83fd2f..5eebf444317 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -248,6 +248,12 @@ namespace A64PRFM {
PLDL2STRM = 0x03,
PLDL3KEEP = 0x04,
PLDL3STRM = 0x05,
+ PLIL1KEEP = 0x08,
+ PLIL1STRM = 0x09,
+ PLIL2KEEP = 0x0a,
+ PLIL2STRM = 0x0b,
+ PLIL3KEEP = 0x0c,
+ PLIL3STRM = 0x0d,
PSTL1KEEP = 0x10,
PSTL1STRM = 0x11,
PSTL2KEEP = 0x12,
OpenPOWER on IntegriCloud