summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ConstantFold.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-05-06 23:49:14 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-05-06 23:49:14 +0000
commite66a45fdb4ceb0ffab3ae1d5452583f9b064aecc (patch)
treeb5b39342aae4ce8a29e825922b90b7c9e058b31c /llvm/lib/IR/ConstantFold.h
parent74b63ebd53c292d95388b2159b26fb510af3ae3f (diff)
downloadbcm5719-llvm-e66a45fdb4ceb0ffab3ae1d5452583f9b064aecc.tar.gz
bcm5719-llvm-e66a45fdb4ceb0ffab3ae1d5452583f9b064aecc.zip
[opaque pointer type] Pass explicit pointer type through GEP constant folding
llvm-svn: 236670
Diffstat (limited to 'llvm/lib/IR/ConstantFold.h')
-rw-r--r--llvm/lib/IR/ConstantFold.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/ConstantFold.h b/llvm/lib/IR/ConstantFold.h
index a516abe024e..42a9c6ba908 100644
--- a/llvm/lib/IR/ConstantFold.h
+++ b/llvm/lib/IR/ConstantFold.h
@@ -51,6 +51,10 @@ namespace llvm {
ArrayRef<Constant *> Idxs);
Constant *ConstantFoldGetElementPtr(Constant *C, bool inBounds,
ArrayRef<Value *> Idxs);
+ Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds,
+ ArrayRef<Constant *> Idxs);
+ Constant *ConstantFoldGetElementPtr(Type *Ty, Constant *C, bool inBounds,
+ ArrayRef<Value *> Idxs);
} // End llvm namespace
#endif
OpenPOWER on IntegriCloud