Change @llvm.clear_cache default to call rt-lib
authorRenato Golin <renato.golin@linaro.org>
Wed, 26 Mar 2014 14:01:32 +0000 (14:01 +0000)
committerRenato Golin <renato.golin@linaro.org>
Wed, 26 Mar 2014 14:01:32 +0000 (14:01 +0000)
commit58839f43de03c894c3398ba2f7429c3ba82c96c1
tree87aaf33c8ea1753977004fca30253065b725feac
parentcee1aecc57161f75c6d6af7c1f2ea6758bdd6b02
Change @llvm.clear_cache default to call rt-lib

After some discussion on IRC, emitting a call to the library function seems
like a better default, since it will move from a compiler internal error to
a linker error, that the user can work around until LLVM is fixed.

I'm also adding a note on the responsibility of the user to confirm that
the cache was cleared on platforms where nothing is done.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204806 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
include/llvm/Target/TargetLowering.h
lib/Target/ARM/ARMISelLowering.h
lib/Target/Mips/MipsISelLowering.h