summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombine.h
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2012-05-10 23:17:35 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2012-05-10 23:17:35 +0000
commitf573030391ce1f67e4d656dd941cb86cd91ee9ba (patch)
tree3a4241f1a7e46eee377247982c6b59bc3c7289af /llvm/lib/Transforms/InstCombine/InstCombine.h
parentd9fc53509e8c0d8abf5aee0d6dbe492bdc8298a3 (diff)
downloadbcm5719-llvm-f573030391ce1f67e4d656dd941cb86cd91ee9ba.tar.gz
bcm5719-llvm-f573030391ce1f67e4d656dd941cb86cd91ee9ba.zip
objectsize: add support for GEPs with non-constant indexes
add an additional parameter to InstCombiner::EmitGEPOffset() to force it to *not* emit operations with NUW flag llvm-svn: 156585
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombine.h')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombine.h b/llvm/lib/Transforms/InstCombine/InstCombine.h
index 199df519ce0..41b2456e728 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombine.h
+++ b/llvm/lib/Transforms/InstCombine/InstCombine.h
@@ -226,7 +226,7 @@ private:
bool DoXform = true);
Instruction *transformSExtICmp(ICmpInst *ICI, Instruction &CI);
bool WillNotOverflowSignedAdd(Value *LHS, Value *RHS);
- Value *EmitGEPOffset(User *GEP);
+ Value *EmitGEPOffset(User *GEP, bool NoNUW = false);
public:
// InsertNewInstBefore - insert an instruction New before instruction Old
OpenPOWER on IntegriCloud