Lines Matching defs:Variable
119 /// VariableExprAST - Expression class for referencing a variable, like "a".
256 if (CurTok != '(') // Simple variable ref.
553 // Look this variable up in the function.
555 return V ? V : ErrorV("Unknown variable name");
671 // variable = phi [start, loopheader], [nextvariable, loopend]
677 // nextvariable = variable + step
682 // Emit the start code first, without 'variable' in scope.
699 PHINode *Variable = Builder.CreatePHI(Type::getDoubleTy(getGlobalContext()), 2, VarName.c_str());
700 Variable->addIncoming(StartVal, PreheaderBB);
702 // Within the loop, the variable is defined equal to the PHI node. If it
703 // shadows an existing variable, we have to restore it, so save it now.
705 NamedValues[VarName] = Variable;
723 Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar");
745 Variable->addIncoming(NextVar, LoopEndBB);
747 // Restore the unshadowed variable.
793 // Add arguments to variable symbol table.