Lines Matching defs: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;
429 // At least one variable name is required.
434 std::string Name = IdentifierStr;
447 VarBindings.push_back(VarExprAST::Binding(Name, std::move(Init)));
563 return ErrorU<PrototypeAST>("Expected function name in prototype");
658 std::string MakeLegalFunctionName(std::string Name)
661 assert(!Name.empty() && "Base name must not be empty");
664 NewName = Name;
690 PrototypeAST* getPrototypeAST(const std::string &Name);
701 Prototypes[P->Name] = std::move(P);
704 PrototypeAST* SessionContext::getPrototypeAST(const std::string &Name) {
705 PrototypeMap::iterator I = Prototypes.find(Name);
727 Function* getPrototype(const std::string &Name);
736 Function* IRGenContext::getPrototype(const std::string &Name) {
737 if (Function *ExistingProto = M->getFunction(Name))
739 if (PrototypeAST *ProtoAST = Session.getPrototypeAST(Name))
760 Value *V = C.NamedValues[Name];
763 return ErrorP<Value>("Unknown variable name '" + Name + "'");
766 return C.getBuilder().CreateLoad(V, Name.c_str());
790 // Look up the name.
791 if (auto Variable = C.NamedValues[LHSVar.Name]) {
795 return ErrorP<Value>("Unknown variable name");
827 // Look up the name in the global module table.
1041 std::string FnName = MakeLegalFunctionName(Name);
1056 F = C.getM().getFunction(Name);
1169 std::string mangle(const std::string &Name) {
1173 Mang.getNameWithPrefix(MangledNameStream, Name);
1179 std::cerr << "Adding AST: " << FnAST->Proto->Name << "\n";
1180 FunctionDefs[mangle(FnAST->Proto->Name)] = std::move(FnAST);
1188 [&](const std::string &Name) {
1189 // First try to find 'Name' within the JIT.
1190 if (auto Symbol = findSymbol(Name))
1194 // If we don't already have a definition of 'Name' then search
1196 return searchFunctionASTs(Name);
1207 JITSymbol findSymbol(const std::string &Name) {
1208 return LazyEmitLayer.findSymbol(Name, true);
1211 JITSymbol findSymbolIn(ModuleHandleT H, const std::string &Name) {
1212 return LazyEmitLayer.findSymbolIn(H, Name, true);
1215 JITSymbol findUnmangledSymbol(const std::string &Name) {
1216 return findSymbol(mangle(Name));
1221 // This method searches the FunctionDefs map for a definition of 'Name'. If it
1223 RuntimeDyld::SymbolInfo searchFunctionASTs(const std::string &Name) {
1224 auto DefI = FunctionDefs.find(Name);
1234 auto Sym = findSymbolIn(H, Name);