diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-10 00:57:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-10 00:57:50 +0000 |
commit | 9d9cc874bcc168474757a8f90476684b4a93ed76 (patch) | |
tree | 7377c05b501916cfa5f6085251afd6900995c67c /lib/CodeGen/CodeGenFunction.h | |
parent | fdfe09b526b4777a026e165594a37ddd36b7a4e0 (diff) |
Add util Emit{LoadOf,StoreTo}Scalar methods to encapsulate conversion
from LLVM memory type to/from LLVM temporary type.
- No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64191 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 03230949e5..3f1e99599f 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -612,6 +612,18 @@ public: /// LValue EmitLValue(const Expr *E); + /// EmitLoadOfScalar - Load a scalar value from an address, taking + /// care to appropriately convert from the memory representation to + /// the LLVM value representation. + llvm::Value *EmitLoadOfScalar(llvm::Value *Addr, bool Volatile, + QualType Ty); + + /// EmitStoreOfScalar - Store a scalar value to an address, taking + /// care to appropriately convert from the memory representation to + /// the LLVM value representation. + void EmitStoreOfScalar(llvm::Value *Value, llvm::Value *Addr, + bool Volatile); + /// EmitLoadOfLValue - Given an expression that represents a value lvalue, /// this method emits the address of the lvalue, then loads the result as an /// rvalue, returning the rvalue. |