• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/llvmCore-3425.0.33/lib/AsmParser/

Lines Matching defs:Fn

74     const ValID &Fn = ForwardRefBlockAddresses.begin()->first;
75 if (Fn.Kind == ValID::t_GlobalName)
76 TheFn = M->getFunction(Fn.StrVal);
77 else if (Fn.UIntVal < NumberedVals.size())
78 TheFn = dyn_cast<Function>(NumberedVals[Fn.UIntVal]);
81 return Error(Fn.Loc, "unknown function referenced by blockaddress");
2133 ValID Fn, Label;
2137 ParseValID(Fn) ||
2143 if (Fn.Kind != ValID::t_GlobalID && Fn.Kind != ValID::t_GlobalName)
2144 return Error(Fn.Loc, "expected function name in blockaddress");
2152 ForwardRefBlockAddresses[Fn].push_back(std::make_pair(Label, FwdRef));
2671 bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
2791 Fn = 0;
2798 Fn = M->getFunction(FunctionName);
2799 if (Fn->getType() != PFT)
2804 } else if ((Fn = M->getFunction(FunctionName))) {
2818 Fn = cast<Function>(I->second.first);
2819 if (Fn->getType() != PFT)
2826 if (Fn == 0)
2827 Fn = Function::Create(FT, GlobalValue::ExternalLinkage, FunctionName, M);
2829 M->getFunctionList().splice(M->end(), M->getFunctionList(), Fn);
2832 NumberedVals.push_back(Fn);
2834 Fn->setLinkage((GlobalValue::LinkageTypes)Linkage);
2835 Fn->setVisibility((GlobalValue::VisibilityTypes)Visibility);
2836 Fn->setCallingConv(CC);
2837 Fn->setAttributes(PAL);
2838 Fn->setUnnamedAddr(UnnamedAddr);
2839 Fn->setAlignment(Alignment);
2840 Fn->setSection(Section);
2841 if (!GC.empty()) Fn->setGC(GC.c_str());
2844 Function::arg_iterator ArgIt = Fn->arg_begin();
2864 bool LLParser::ParseFunctionBody(Function &Fn) {
2870 if (!Fn.hasName()) FunctionNumber = NumberedVals.size()-1;
2872 PerFunctionState PFS(*this, Fn, FunctionNumber);