AArch64: use __clear_cache under GCCish environments
authorTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 18:52:44 +0000 (18:52 +0000)
committerTim Northover <Tim.Northover@arm.com>
Sat, 4 May 2013 18:52:44 +0000 (18:52 +0000)
commit9a29cf281e5fc4e3fd4f4f83296fbc22ebfdac86
tree66201d91ab9ac99e66d88fb2d0e11370621449c2
parent7153a30610e78c5cd1347a31f3a90dde2f335f37
AArch64: use __clear_cache under GCCish environments

AArch64 is going to need some kind of cache-invalidation in order to
successfully JIT since it has a weak memory-model. This is provided by
a __clear_cache builtin in libgcc, which acts very much like the
32-bit ARM equivalent (on platforms where it exists).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181129 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Memory.inc