diff options
author | John McCall <rjmccall@apple.com> | 2010-10-26 22:09:15 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-26 22:09:15 +0000 |
commit | 789a1597250e57d7f35f253467165913c68979ad (patch) | |
tree | df1726f799b6e581d8f4024eaedd8ee76ef5613e /lib/CodeGen/CodeGenFunction.h | |
parent | 9c13f5bc0e0ecdd9f00872fdc0b0ac48e01fec38 (diff) |
Extract procedures to do scalar-to-memory and memory-to-scalar conversions
in IR gen, and use those to fix a correctness issue with bool atomic
intrinsics. rdar://problem/8461234
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117403 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 53056bc609..09b7168a9e 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1349,6 +1349,14 @@ public: /// object. LValue EmitCheckedLValue(const Expr *E); + /// EmitToMemory - Change a scalar value from its value + /// representation to its in-memory representation. + llvm::Value *EmitToMemory(llvm::Value *Value, QualType Ty); + + /// EmitFromMemory - Change a scalar value from its memory + /// representation to its value representation. + llvm::Value *EmitFromMemory(llvm::Value *Value, QualType Ty); + /// EmitLoadOfScalar - Load a scalar value from an address, taking /// care to appropriately convert from the memory representation to /// the LLVM value representation. |