diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 03:05:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 03:05:23 +0000 |
commit | 8b9023ba35a86838789e2c9034a6128728c547aa (patch) | |
tree | c9eec99bbdc78aab992b202d1f1b5180bc19b9d3 /CodeGen/CodeGenFunction.h | |
parent | b7b50bc29bf832e0bba25b2963afeed61d7d9e2a (diff) |
Implement codegen for + and - with pointers. Patch contributed by
Keith Bauer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenFunction.h')
-rw-r--r-- | CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CodeGen/CodeGenFunction.h b/CodeGen/CodeGenFunction.h index fe570feb93..268a70276a 100644 --- a/CodeGen/CodeGenFunction.h +++ b/CodeGen/CodeGenFunction.h @@ -334,7 +334,11 @@ public: RValue EmitDiv(RValue LHS, RValue RHS, QualType EltTy); RValue EmitRem(RValue LHS, RValue RHS, QualType EltTy); RValue EmitAdd(RValue LHS, RValue RHS, QualType EltTy); + RValue EmitPointerAdd(RValue LHS, QualType LHSTy, + RValue RHS, QualType RHSTy, QualType EltTy); RValue EmitSub(RValue LHS, RValue RHS, QualType EltTy); + RValue EmitPointerSub(RValue LHS, QualType LHSTy, + RValue RHS, QualType RHSTy, QualType EltTy); RValue EmitShl(RValue LHS, RValue RHS, QualType ResTy); RValue EmitShr(RValue LHS, RValue RHS, QualType ResTy); RValue EmitBinaryCompare(const BinaryOperator *E, unsigned UICmpOpc, |