Lines Matching refs:F
427 for (const Function &F : *M) { in WriteModuleInfo()
428 MaxAlignment = std::max(MaxAlignment, F.getAlignment()); in WriteModuleInfo()
429 if (F.hasSection()) { in WriteModuleInfo()
431 unsigned &Entry = SectionMap[F.getSection()]; in WriteModuleInfo()
433 WriteStringRecord(bitc::MODULE_CODE_SECTIONNAME, F.getSection(), in WriteModuleInfo()
438 if (F.hasGC()) { in WriteModuleInfo()
440 unsigned &Entry = GCMap[F.getGC()]; in WriteModuleInfo()
442 WriteStringRecord(bitc::MODULE_CODE_GCNAME, F.getGC(), in WriteModuleInfo()
507 for (const Function &F : *M) { in WriteModuleInfo()
510 Vals.push_back(VE.getTypeID(F.getType())); in WriteModuleInfo()
511 Vals.push_back(F.getCallingConv()); in WriteModuleInfo()
512 Vals.push_back(F.isDeclaration()); in WriteModuleInfo()
513 Vals.push_back(getEncodedLinkage(F)); in WriteModuleInfo()
514 Vals.push_back(VE.getAttributeID(F.getAttributes())); in WriteModuleInfo()
515 Vals.push_back(Log2_32(F.getAlignment())+1); in WriteModuleInfo()
516 Vals.push_back(F.hasSection() ? SectionMap[F.getSection()] : 0); in WriteModuleInfo()
517 Vals.push_back(getEncodedVisibility(F)); in WriteModuleInfo()
518 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in WriteModuleInfo()
519 Vals.push_back(F.hasUnnamedAddr()); in WriteModuleInfo()
719 static void WriteFunctionLocalMetadata(const Function &F, in WriteFunctionLocalMetadata() argument
739 static void WriteMetadataAttachment(const Function &F, in WriteMetadataAttachment() argument
750 for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) in WriteMetadataAttachment()
1464 static void WriteUseListBlock(const Function *F, llvm_3_2::ValueEnumerator &VE, in WriteUseListBlock() argument
1467 return !VE.UseListOrders.empty() && VE.UseListOrders.back().F == F; in WriteUseListBlock()
1482 static void WriteFunction(const Function &F, llvm_3_2::ValueEnumerator &VE, in WriteFunction() argument
1485 VE.incorporateFunction(F); in WriteFunction()
1501 WriteFunctionLocalMetadata(F, VE, Stream); in WriteFunction()
1511 for (Function::const_iterator BB = F.begin(), E = F.end(); BB != E; ++BB) in WriteFunction()
1546 WriteValueSymbolTable(F.getValueSymbolTable(), VE, Stream); in WriteFunction()
1549 WriteMetadataAttachment(F, VE, Stream); in WriteFunction()
1551 WriteUseListBlock(&F, VE, Stream); in WriteFunction()
1763 for (Module::const_iterator F = M->begin(), E = M->end(); F != E; ++F) in WriteModule() local
1764 if (!F->isDeclaration()) in WriteModule()
1765 WriteFunction(*F, VE, Stream); in WriteModule()