Home | History | Annotate | Download | only in tutorial

Lines Matching full:variable

423 This expression defines a new variable ("i" in this case) which iterates
460 variable name and the constituent expressions in the node.
574 // Emit the start code first, without 'variable' in scope.
607 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str());
608 Variable->addIncoming(StartVal, PreheaderBB);
612 create the PHI node for the loop induction variable. Since we already
619 // Within the loop, the variable is defined equal to the PHI node. If it
620 // shadows an existing variable, we have to restore it, so save it now.
622 NamedValues[VarName] = Variable;
631 new variable to the symbol table. This means that our symbol table can
633 before we codegen the body of the loop, we add the loop variable as the
635 variable of the same name in the outer scope. It would be easy to make
640 shadowed variable).
642 Once the loop variable is set into the symbol table, the code
644 variable: any references to it will naturally find it in the symbol
659 Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar");
662 variable by adding the step value, or 1.0 if it isn't present.
663 '``NextVar``' will be the value of the loop variable on the next
704 Variable->addIncoming(NextVar, LoopEndBB);
706 // Restore the unshadowed variable.
718 we remove the loop variable from the symbol table, so that it isn't in