summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit93010e687fbac2800f04bfef2f32005179bc0f73 (patch)
treeab1259be4cbfb3ea070e1c13e03190d6b64d76f1 /llvm/lib
parent6dd7251599724fc308a5d6ae31baaccf3154bc4c (diff)
downloadbcm5719-llvm-93010e687fbac2800f04bfef2f32005179bc0f73.tar.gz
bcm5719-llvm-93010e687fbac2800f04bfef2f32005179bc0f73.zip
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. llvm-svn: 204806
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.h5
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.h5
2 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h
index 5f6ea754348..022945f625a 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.h
+++ b/llvm/lib/Target/ARM/ARMISelLowering.h
@@ -384,11 +384,6 @@ namespace llvm {
bool shouldConvertConstantLoadToIntImm(const APInt &Imm,
Type *Ty) const override;
- /// Clear cache library call
- const char * getClearCacheBuiltinName() const {
- return "__clear_cache";
- }
-
protected:
std::pair<const TargetRegisterClass*, uint8_t>
findRepresentativeClass(MVT VT) const override;
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.h b/llvm/lib/Target/Mips/MipsISelLowering.h
index 7831fecae1c..6f60a1e18f3 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.h
+++ b/llvm/lib/Target/Mips/MipsISelLowering.h
@@ -585,11 +585,6 @@ namespace llvm {
bool MemcpyStrSrc,
MachineFunction &MF) const;
- /// Clear cache library call
- const char * getClearCacheBuiltinName() const {
- return "__clear_cache";
- }
-
/// isFPImmLegal - Returns true if the target can instruction select the
/// specified FP immediate natively. If false, the legalizer will
/// materialize the FP immediate as a load from a constant pool.
OpenPOWER on IntegriCloud