Home | History | Annotate | Download | only in IR

Lines Matching refs:Function

37 template class llvm::SymbolTableListTraits<Function, Module>;
133 // getOrInsertFunction - Look up the specified function in the module symbol
134 // table. If it does not exist, add a prototype for the function and return
141 // See if we have a definition for the specified function already.
145 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name);
152 // Okay, the function exists. Does it have externally visible linkage?
154 // Clear the function's name.
162 // If the function exists but has the wrong type, return a bitcast to the
167 // Otherwise, we just found the existing function or a prototype.
174 // See if we have a definition for the specified function already.
178 Function *New = Function::Create(Ty, GlobalVariable::ExternalLinkage, Name);
184 // Otherwise, we just found the existing function or a prototype.
193 // getOrInsertFunction - Look up the specified function in the module symbol
194 // table. If it does not exist, add a prototype for the function and return it.
195 // This version of the method takes a null terminated list of function
211 // Build the function type and chain to the other getOrInsertFunction...
229 // Build the function type and chain to the other getOrInsertFunction...
235 // getFunction - Look up the specified function in the module symbol table.
238 Function *Module::getFunction(StringRef Name) const {
239 return dyn_cast_or_null<Function>(getNamedValue(Name));
250 /// If AllowLocal is set to true, this function will return types that
264 /// 2. Else, the global exists but has the wrong type: return the function
284 // Otherwise, we just found the existing function or a prototype.
435 // dropAllReferences() - This function causes all the subelements to "let go"