Lines Matching refs:Name
134 VariableExprAST(std::string Name) : Name(std::move(Name)) {}
137 std::string Name;
216 PrototypeAST(std::string Name, std::vector<std::string> Args,
218 : Name(std::move(Name)), Args(std::move(Args)), IsOperator(IsOperator),
229 return Name[Name.size()-1];
232 std::string Name;
428 // At least one variable name is required.
433 std::string Name = IdentifierStr;
446 VarBindings.push_back(VarExprAST::Binding(Name, std::move(Init)));
562 return ErrorU<PrototypeAST>("Expected function name in prototype");
657 std::string MakeLegalFunctionName(std::string Name)
660 assert(!Name.empty() && "Base name must not be empty");
663 NewName = Name;
689 PrototypeAST* getPrototypeAST(const std::string &Name);
700 Prototypes[P->Name] = std::move(P);
703 PrototypeAST* SessionContext::getPrototypeAST(const std::string &Name) {
704 PrototypeMap::iterator I = Prototypes.find(Name);
726 Function* getPrototype(const std::string &Name);
735 Function* IRGenContext::getPrototype(const std::string &Name) {
736 if (Function *ExistingProto = M->getFunction(Name))
738 if (PrototypeAST *ProtoAST = Session.getPrototypeAST(Name))
759 Value *V = C.NamedValues[Name];
762 return ErrorP<Value>("Unknown variable name '" + Name + "'");
765 return C.getBuilder().CreateLoad(V, Name.c_str());
789 // Look up the name.
790 if (auto Variable = C.NamedValues[LHSVar.Name]) {
794 return ErrorP<Value>("Unknown variable name");
826 // Look up the name in the global module table.
1039 std::string FnName = MakeLegalFunctionName(Name);
1054 F = C.getM().getFunction(Name);
1166 std::string mangle(const std::string &Name) {
1170 Mangler::getNameWithPrefix(MangledNameStream, Name,
1177 std::cerr << "Adding AST: " << FnAST->Proto->Name << "\n";
1178 FunctionDefs[mangle(FnAST->Proto->Name)] = std::move(FnAST);
1186 [&](const std::string &Name) {
1187 // First try to find 'Name' within the JIT.
1188 if (auto Symbol = findSymbol(Name))
1192 // If we don't already have a definition of 'Name' then search
1194 return searchFunctionASTs(Name);
1205 JITSymbol findSymbol(const std::string &Name) {
1206 return LazyEmitLayer.findSymbol(Name, true);
1209 JITSymbol findSymbolIn(ModuleHandleT H, const std::string &Name) {
1210 return LazyEmitLayer.findSymbolIn(H, Name, true);
1213 JITSymbol findUnmangledSymbol(const std::string &Name) {
1214 return findSymbol(mangle(Name));
1219 // This method searches the FunctionDefs map for a definition of 'Name'. If it
1221 RuntimeDyld::SymbolInfo searchFunctionASTs(const std::string &Name) {
1222 auto DefI = FunctionDefs.find(Name);
1232 auto Sym = findSymbolIn(H, Name);