diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-18 17:56:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-18 17:56:28 +0000 |
commit | 890f92b744fb074465bc2b7006ee753a181f62a4 (patch) | |
tree | 0300a386e2f78a01341f5351e32841c9f4349db0 /include/llvm/Analysis/ScalarEvolutionExpander.h | |
parent | f34c921713111fb327623400cf8c23d322513790 (diff) | |
download | llvm-890f92b744fb074465bc2b7006ee753a181f62a4.tar.gz llvm-890f92b744fb074465bc2b7006ee753a181f62a4.tar.bz2 llvm-890f92b744fb074465bc2b7006ee753a181f62a4.tar.xz |
Use more const qualifiers with SCEV interfaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69450 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 2f660c9c5b..b5072da4ad 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -69,7 +69,7 @@ namespace llvm { /// addInsertedValue - Remember the specified instruction as being the /// canonical form for the specified SCEV. - void addInsertedValue(Instruction *I, SCEV *S) { + void addInsertedValue(Instruction *I, const SCEV *S) { InsertedExpressions[S] = (Value*)I; InsertedInstructions.insert(I); } @@ -90,31 +90,31 @@ namespace llvm { static Value *InsertBinop(Instruction::BinaryOps Opcode, Value *LHS, Value *RHS, Instruction *InsertPt); protected: - Value *expand(SCEV *S); + Value *expand(const SCEV *S); - Value *visitConstant(SCEVConstant *S) { + Value *visitConstant(const SCEVConstant *S) { return S->getValue(); } - Value *visitTruncateExpr(SCEVTruncateExpr *S); + Value *visitTruncateExpr(const SCEVTruncateExpr *S); - Value *visitZeroExtendExpr(SCEVZeroExtendExpr *S); + Value *visitZeroExtendExpr(const SCEVZeroExtendExpr *S); - Value *visitSignExtendExpr(SCEVSignExtendExpr *S); + Value *visitSignExtendExpr(const SCEVSignExtendExpr *S); - Value *visitAddExpr(SCEVAddExpr *S); + Value *visitAddExpr(const SCEVAddExpr *S); - Value *visitMulExpr(SCEVMulExpr *S); + Value *visitMulExpr(const SCEVMulExpr *S); - Value *visitUDivExpr(SCEVUDivExpr *S); + Value *visitUDivExpr(const SCEVUDivExpr *S); - Value *visitAddRecExpr(SCEVAddRecExpr *S); + Value *visitAddRecExpr(const SCEVAddRecExpr *S); - Value *visitSMaxExpr(SCEVSMaxExpr *S); + Value *visitSMaxExpr(const SCEVSMaxExpr *S); - Value *visitUMaxExpr(SCEVUMaxExpr *S); + Value *visitUMaxExpr(const SCEVUMaxExpr *S); - Value *visitUnknown(SCEVUnknown *S) { + Value *visitUnknown(const SCEVUnknown *S) { return S->getValue(); } }; |