diff options
author | John McCall <rjmccall@apple.com> | 2010-10-27 20:58:56 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-10-27 20:58:56 +0000 |
commit | 3a7f6926d16c53748f29253581ed33304a3cfb0c (patch) | |
tree | e2319d165e05d692ca7489f1eec9e316df6ed3d9 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 5e7cb5fc273f23ba0f5780a38564834cdf14db5a (diff) | |
download | bcm5719-llvm-3a7f6926d16c53748f29253581ed33304a3cfb0c.tar.gz bcm5719-llvm-3a7f6926d16c53748f29253581ed33304a3cfb0c.zip |
Restore r117403 (fixing IR gen for bool atomics), this time being less
aggressive about the form we expect bools to be in. I don't really have
time to fix all the sources right now.
llvm-svn: 117486
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 53056bc6098..09b7168a9ea 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/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. |