summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2014-03-26 14:01:32 +0000
committerRenato Golin <renato.golin@linaro.org>2014-03-26 14:01:32 +0000
commit58839f43de03c894c3398ba2f7429c3ba82c96c1 (patch)
tree87aaf33c8ea1753977004fca30253065b725feac /include
parentcee1aecc57161f75c6d6af7c1f2ea6758bdd6b02 (diff)
downloadllvm-58839f43de03c894c3398ba2f7429c3ba82c96c1.tar.gz
llvm-58839f43de03c894c3398ba2f7429c3ba82c96c1.tar.bz2
llvm-58839f43de03c894c3398ba2f7429c3ba82c96c1.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetLowering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index fbc8b74e9e..7f35244f19 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -2109,8 +2109,9 @@ public:
}
/// Return the builtin name for the __builtin___clear_cache intrinsic
+ /// Default is to invoke the clear cache library call
virtual const char * getClearCacheBuiltinName() const {
- llvm_unreachable("Not Implemented");
+ return "__clear_cache";
}
/// Return the type that should be used to zero or sign extend a