summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ScalarEvolutionExpander.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-22 19:09:18 +0000
committerDan Gohman <gohman@apple.com>2008-06-22 19:09:18 +0000
commit11f6d3b478c4fa09d126833c57fbac1d795ead31 (patch)
treeadf1a365cecf929a6e38840a7c6118ddecec2b01 /include/llvm/Analysis/ScalarEvolutionExpander.h
parent963a97f1a365c8d09ca681e922371f9ec3473ee8 (diff)
downloadllvm-11f6d3b478c4fa09d126833c57fbac1d795ead31.tar.gz
llvm-11f6d3b478c4fa09d126833c57fbac1d795ead31.tar.bz2
llvm-11f6d3b478c4fa09d126833c57fbac1d795ead31.tar.xz
Move a few more SCEVExpander methods out-of-line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolutionExpander.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolutionExpander.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h
index 7f990d6a7e..bd9596c7df 100644
--- a/include/llvm/Analysis/ScalarEvolutionExpander.h
+++ b/include/llvm/Analysis/ScalarEvolutionExpander.h
@@ -75,11 +75,7 @@ namespace llvm {
/// expandCodeFor - Insert code to directly compute the specified SCEV
/// expression into the program. The inserted code is inserted into the
/// specified block.
- Value *expandCodeFor(SCEVHandle SH, Instruction *IP) {
- // Expand the code for this SCEV.
- this->InsertPt = IP;
- return expand(SH);
- }
+ Value *expandCodeFor(SCEVHandle SH, Instruction *IP);
/// InsertCastOfTo - Insert a cast of V to the specified type, doing what
/// we can to share the casts.
@@ -96,20 +92,11 @@ namespace llvm {
return S->getValue();
}
- Value *visitTruncateExpr(SCEVTruncateExpr *S) {
- Value *V = expand(S->getOperand());
- return CastInst::CreateTruncOrBitCast(V, S->getType(), "tmp.", InsertPt);
- }
+ Value *visitTruncateExpr(SCEVTruncateExpr *S);
- Value *visitZeroExtendExpr(SCEVZeroExtendExpr *S) {
- Value *V = expand(S->getOperand());
- return CastInst::CreateZExtOrBitCast(V, S->getType(), "tmp.", InsertPt);
- }
+ Value *visitZeroExtendExpr(SCEVZeroExtendExpr *S);
- Value *visitSignExtendExpr(SCEVSignExtendExpr *S) {
- Value *V = expand(S->getOperand());
- return CastInst::CreateSExtOrBitCast(V, S->getType(), "tmp.", InsertPt);
- }
+ Value *visitSignExtendExpr(SCEVSignExtendExpr *S);
Value *visitAddExpr(SCEVAddExpr *S);