Home | History | Annotate | Download | only in Chapter6

Lines Matching refs:Variable

149 /// VariableExprAST - Expression class for referencing a variable, like "a".
326 if (CurTok != '(') // Simple variable ref.
649 // Look this variable up in the function.
652 return LogErrorV("Unknown variable name");
775 // variable = phi [start, loopheader], [nextvariable, loopend]
781 // nextvariable = variable + step
786 // Emit the start code first, without 'variable' in scope.
804 PHINode *Variable =
806 Variable->addIncoming(StartVal, PreheaderBB);
808 // Within the loop, the variable is defined equal to the PHI node. If it
809 // shadows an existing variable, we have to restore it, so save it now.
811 NamedValues[VarName] = Variable;
830 Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar");
853 Variable->addIncoming(NextVar, LoopEndBB);
855 // Restore the unshadowed variable.