diff options
author | Duncan Sands <baldrick@free.fr> | 2012-03-13 11:42:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2012-03-13 11:42:19 +0000 |
commit | 0aa85eb231dc76bcabcd35f6dc9a50536f607df3 (patch) | |
tree | 798755d0e6353b2d1245fe0e3384f08149276174 /include/llvm/Analysis | |
parent | 61b1851a205cb8dd29c1d3d4231efb8f8f7da283 (diff) | |
download | external_llvm-0aa85eb231dc76bcabcd35f6dc9a50536f607df3.zip external_llvm-0aa85eb231dc76bcabcd35f6dc9a50536f607df3.tar.gz external_llvm-0aa85eb231dc76bcabcd35f6dc9a50536f607df3.tar.bz2 |
Uniformize the InstructionSimplify interface by ensuring that all routines
take a TargetLibraryInfo parameter. Internally, rather than passing TD, TLI
and DT parameters around all over the place, introduce a struct for holding
them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/InstructionSimplify.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h index 3dd194c..d85ae4f 100644 --- a/include/llvm/Analysis/InstructionSimplify.h +++ b/include/llvm/Analysis/InstructionSimplify.h @@ -141,11 +141,13 @@ namespace llvm { /// the result. If not, this returns null. Value *SimplifySelectInst(Value *Cond, Value *TrueVal, Value *FalseVal, const TargetData *TD = 0, + const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); /// SimplifyGEPInst - Given operands for an GetElementPtrInst, see if we can /// fold the result. If not, this returns null. Value *SimplifyGEPInst(ArrayRef<Value *> Ops, const TargetData *TD = 0, + const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); /// SimplifyInsertValueInst - Given operands for an InsertValueInst, see if we @@ -153,6 +155,7 @@ namespace llvm { Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const TargetData *TD = 0, + const TargetLibraryInfo *TLI = 0, const DominatorTree *DT = 0); //=== Helper functions for higher up the class hierarchy. |