From 27fe2e6c97a3782a0639d87b460741e8ba5d076d Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 23 May 2009 22:29:41 +0000 Subject: Track volatile aggregate copies better. I'm hoping someone else will decide how to get the backend to know that the operation is volatile. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72348 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenFunction.h') diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 130bc369e3..9a9ca05768 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -419,8 +419,12 @@ public: RValue EmitAnyExprToTemp(const Expr *E, llvm::Value *AggLoc = 0, bool isAggLocVolatile = false); + /// EmitAggregateCopy - Emit an aggrate copy. + /// + /// \param isVolatile - True iff either the source or the destination is + /// volatile. void EmitAggregateCopy(llvm::Value *DestPtr, llvm::Value *SrcPtr, - QualType EltTy); + QualType EltTy, bool isVolatile=false); void EmitAggregateClear(llvm::Value *DestPtr, QualType Ty); -- cgit v1.2.3-70-g09d2