summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorMon P Wang <wangmp@apple.com>2010-03-30 21:02:45 +0000
committerMon P Wang <wangmp@apple.com>2010-03-30 21:02:45 +0000
commit231e99743a1ca6220674f5feff8723d3eb2636d8 (patch)
tree27f02bd0d5a7a665ddce194911b901379df4d718 /clang/lib/CodeGen/CodeGenModule.h
parent7460571381de44cf752265e6351bd4ae4d0b06d1 (diff)
downloadbcm5719-llvm-231e99743a1ca6220674f5feff8723d3eb2636d8.tar.gz
bcm5719-llvm-231e99743a1ca6220674f5feff8723d3eb2636d8.zip
Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset
llvm-svn: 99930
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 941dca82abd..5a794c511ee 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -98,10 +98,6 @@ class CodeGenModule : public BlockModule {
CGObjCRuntime* Runtime;
CGDebugInfo* DebugInfo;
-
- llvm::Function *MemCpyFn;
- llvm::Function *MemMoveFn;
- llvm::Function *MemSetFn;
// WeakRefReferences - A set of references that have only been seen via
// a weakref so far. This is used to remove the weak of the reference if we ever
@@ -291,9 +287,17 @@ public:
llvm::Value *getBuiltinLibFunction(const FunctionDecl *FD,
unsigned BuiltinID);
- llvm::Function *getMemCpyFn();
- llvm::Function *getMemMoveFn();
- llvm::Function *getMemSetFn();
+ llvm::Function *getMemCpyFn(const llvm::Type *DestType,
+ const llvm::Type *SrcType,
+ const llvm::Type *SizeType);
+
+ llvm::Function *getMemMoveFn(const llvm::Type *DestType,
+ const llvm::Type *SrcType,
+ const llvm::Type *SizeType);
+
+ llvm::Function *getMemSetFn(const llvm::Type *DestType,
+ const llvm::Type *SizeType);
+
llvm::Function *getIntrinsic(unsigned IID, const llvm::Type **Tys = 0,
unsigned NumTys = 0);
OpenPOWER on IntegriCloud