History log of /external/llvm/lib/Support/Unix/Memory.inc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2ed2ad00f9b54e015bc38ece1492eec50163dd9a 19-May-2013 Bob Wilson <bob.wilson@apple.com> Remove declaration of __clear_cache for __APPLE__. <rdar://problem/13924072>

This fixes a bootstrapping problem with builds for Apple ARM targets.
Clang had the wrong prototype for __clear_cache with ARM targets. Rafael
fixed that in clang svn r181784 and r181810, but without those changes,
we can't build this code for ARM because clang reports an error about the
declaration in Memory.inc not matching the builtin declaration. Some of our
buildbots need to use an older compiler that doesn't have the clang fix.
Since __clear_cache is never used here when __APPLE__ is defined, I'm just
conditionalizing the declaration to match that. I also moved the declaration
of sys_icache_invalidate inside the conditional for __APPLE__ while I was at
it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
820b147493d6d534f9482f1e7d4ff5af99d095b4 19-May-2013 Tim Northover <t.p.northover@gmail.com> Invalidate instruction cache when setting memory to be executable.

lli's remote MCJIT code calls setExecutable just prior to running
code. In line with Darwin behaviour this seems to be the place to
invalidate any caches needed so that relocations can take effect
properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
d1bf52275daa86e838ebbffc71efd43fc8c416f4 14-May-2013 Rafael Espindola <rafael.espindola@gmail.com> Fix __clear_cache declaration.

This fixes the build with gcc in gnu++98 and gnu++11 mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181811 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
15cf700b415f6477fa4152904b8e28cfa501d206 14-May-2013 Rafael Espindola <rafael.espindola@gmail.com> Declare __clear_cache.

GCC declares __clear_cache in the gnu modes (-std=gnu++98,
-std=gnu++11), but not in the strict modes (-std=c++98, -std=c++11). This patch
declares it and therefore fixes the build when using one of the strict modes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181785 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
9a29cf281e5fc4e3fd4f4f83296fbc22ebfdac86 04-May-2013 Tim Northover <Tim.Northover@arm.com> 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
/external/llvm/lib/Support/Unix/Memory.inc
21eecf43848fdc94bed5683c16a7f3d8ce6d1a70 14-Mar-2013 Akira Hatanaka <ahatanaka@mips.com> Android uses cacheflush(long start, long end, long flags) for MIPS.

Patch by Stephen Hines.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177101 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
033ee0f111b572ad4f167676e3c4bb4b71fe2da8 20-Feb-2013 Krzysztof Parzyszek <kparzysz@codeaurora.org> Add comment in Memory.inc explaining r175646.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175650 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
0464565baee4b9a1b660aafb70778db571730edc 20-Feb-2013 Krzysztof Parzyszek <kparzysz@codeaurora.org> On PowerPC, the cache-flush instructions dcbf and icbi are treated as
loads. On FreeBSD, add PROT_READ page protection flag before flushing
cache.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175646 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
f5867ab7178784bc63a3deafcf4fb09260e4d19a 01-Jan-2013 Chandler Carruth <chandlerc@gmail.com> Go ahead and get rid of the old page size interface and convert all the
users over to the new one. No sense maintaining this "compatibility"
layer it seems.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171331 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
bbf628b6cefc8d817eb9ec04c2a357ad3f27d618 19-Sep-2012 Andrew Kaylor <andrew.kaylor@intel.com> This patch adds memory support functions which will later be used to implement section-specific protection handling in MCJIT.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
7b617158dba128156141982c1a9a944263729dcc 11-Sep-2012 Chandler Carruth <chandlerc@gmail.com> Add support for finding cacheflush on OpenBSD/mips64 platforms.

Patch by Brad Smith!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
05f98a39e51cbe24612117c69ac9fa31da0861de 18-Mar-2011 Jim Grosbach <grosbach@apple.com> setExecutable() should default to success if there's nothing custom for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127891 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/Unix/Memory.inc
1f6efa3996dd1929fbc129203ce5009b620e6969 29-Nov-2010 Michael J. Spencer <bigcheesegs@gmail.com> Merge System into Support.

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