| /freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTOBackend.cpp | 340 MPM.run(Mod, MAM); in runNewPMPasses() 422 CodeGenPasses.run(Mod); in codegen() 438 Mod, ParallelCodeGenParallelismLevel, in splitCodeGen() 482 Mod.setTargetTriple(C.OverrideTriple); in initAndLookupTarget() 483 else if (Mod.getTargetTriple().empty()) in initAndLookupTarget() 484 Mod.setTargetTriple(C.DefaultTriple); in initAndLookupTarget() 533 for (auto &GV : Mod.global_values()) in dropDeadSymbols() 586 [&](Module &Mod, TargetMachine *TM, in thinBackend() 605 Mod.getPIELevel() == PIELevel::Default; in thinBackend() 648 BMOrErr->getLazyModule(Mod.getContext(), in thinBackend() [all …]
|
| H A D | LTOCodeGenerator.cpp | 150 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) { in setAsmUndefinedRefs() argument 151 for (const StringRef &Undef : Mod->getAsmUndefinedRefs()) in setAsmUndefinedRefs() 155 bool LTOCodeGenerator::addModule(LTOModule *Mod) { in addModule() argument 156 assert(&Mod->getModule().getContext() == &Context && in addModule() 159 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule() 160 setAsmUndefinedRefs(Mod); in addModule() 168 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) { in setModule() argument 169 assert(&Mod->getModule().getContext() == &Context && in setModule() 174 MergedModule = Mod->takeModule(); in setModule() 176 setAsmUndefinedRefs(&*Mod); in setModule()
|
| H A D | ThinLTOCodeGenerator.cpp | 195 auto &Mod = Input->getSingleBitcodeModule(); in loadModuleFromInput() local 198 Lazy ? Mod.getLazyModule(Context, in loadModuleFromInput() 200 : Mod.parseModule(Context); in loadModuleFromInput() 203 SMDiagnostic Err = SMDiagnostic(Mod.getModuleIdentifier(), in loadModuleFromInput() 621 for (auto &Mod : Modules) { in linkCombinedIndex() local 622 auto &M = Mod->getSingleBitcodeModule(); in linkCombinedIndex() 994 for (auto &Mod : Modules) { in run() local 1127 for (auto &Mod : Modules) in run() local 1128 ModulesVec.push_back(&Mod->getSingleBitcodeModule()); in run() 1140 auto &Mod = Modules[IndexCount]; in run() local [all …]
|
| H A D | LTO.cpp | 807 RegularLTOState::AddedModule Mod; in addRegularLTO() local 814 Mod.M = std::move(*MOrErr); in addRegularLTO() 834 Mod.Keep.push_back(&GV); in addRegularLTO() 874 Mod.Keep.push_back(GV); in addRegularLTO() 894 Mod.Keep.push_back(GV); in addRegularLTO() 955 return std::move(Mod); in addRegularLTO() 961 for (GlobalValue *GV : Mod.Keep) { in linkRegularLTO() 1194 for (auto &F : Mod) { in updateMemProfAttributes() 1825 Mod.second, ImportLists[Mod.first], in runThinLTO() 1826 ExportLists[Mod.first], ResolvedODR[Mod.first], in runThinLTO() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 127 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit() 134 TU->setLocalOwningModule(Mod); in HandleStartOfHeaderUnit() 318 Mod = M; in ActOnModuleDecl() 376 ModuleScopes.back().Module = Mod; in ActOnModuleDecl() 386 TU->setLocalOwningModule(Mod); in ActOnModuleDecl() 529 if (!Mod) in ActOnModuleImport() 554 if (Mod->isHeaderUnit()) in ActOnModuleImport() 584 Module *ModCheck = Mod; in ActOnModuleImport() 671 ModuleScopes.back().Module = Mod; in ActOnModuleBegin() 735 VisibleModules.isVisible(Mod)) in createImplicitModuleImportForErrorRecovery() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | ModuleMap.cpp | 70 if (findModule(Mod->ExportAsModule)) in addLinkAsDependency() 73 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency() 114 ModuleMap::resolveExport(Module *Mod, in resolveExport() argument 167 for (; Mod; Mod = Mod->Parent) { in appendSubframeworkPaths() 168 if (Mod->IsFramework) in appendSubframeworkPaths() 169 Paths.push_back(Mod->Name); in appendSubframeworkPaths() 337 Mod->isPartOfFramework() || !Mod->IsSystem || Header.IsUmbrella || in resolveAsBuiltinHeader() 353 addHeader(Mod, H, Role); in resolveAsBuiltinHeader() 1018 return Mod; in inferFrameworkModule() 1205 Mod->Umbrella = UmbrellaDir; in setUmbrellaDirAsWritten() [all …]
|
| H A D | PPLexerChange.cpp | 283 const Module &Mod, SmallVectorImpl<const Module *> &SubMods) { in collectAllSubModulesWithUmbrellaHeader() argument 284 if (Mod.getUmbrellaHeaderAsWritten()) in collectAllSubModulesWithUmbrellaHeader() 285 SubMods.push_back(&Mod); in collectAllSubModulesWithUmbrellaHeader() 286 for (auto *M : Mod.submodules()) in collectAllSubModulesWithUmbrellaHeader() 290 void Preprocessor::diagnoseMissingHeaderInUmbrellaDir(const Module &Mod) { in diagnoseMissingHeaderInUmbrellaDir() argument 292 Mod.getUmbrellaHeaderAsWritten(); in diagnoseMissingHeaderInUmbrellaDir() 301 OptionalDirectoryEntryRef Dir = Mod.getEffectiveUmbrellaDir(); in diagnoseMissingHeaderInUmbrellaDir() 323 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir() 590 if (Module *Mod = getCurrentModule()) { in HandleEndOfFile() local 592 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMods); in HandleEndOfFile()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleMap.h | 120 void resolveLinkAsDependencies(Module *Mod); 124 void addLinkAsDependency(Module *Mod); 304 resolveExport(Module *Mod, const Module::UnresolvedExportDecl &Unresolved, 327 void addUnresolvedHeader(Module *Mod, 468 void resolveHeaderDirectives(Module *Mod, 668 bool resolveExports(Module *Mod, bool Complain); 678 bool resolveUses(Module *Mod, bool Complain); 688 bool resolveConflicts(Module *Mod, bool Complain); 692 setUmbrellaHeaderAsWritten(Module *Mod, FileEntryRef UmbrellaHeader, 697 void setUmbrellaDirAsWritten(Module *Mod, DirectoryEntryRef UmbrellaDir, [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerBinaryMetadata.cpp | 131 : Mod(M), Options(transformOptionsFromCl(std::move(Opts))), in SanitizerBinaryMetadata() 145 const auto CM = Mod.getCodeModel(); in getVersion() 178 Module &Mod; member in __anon758ec0060111::SanitizerBinaryMetadata 190 for (Function &F : Mod) in run() 218 Mod, (MI->FunctionPrefix + ".module_ctor").str(), in run() 224 Mod, (MI->FunctionPrefix + ".module_dtor").str(), in run() 233 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run() 234 Dtor->setComdat(Mod.getOrInsertComdat(Dtor->getName())); in run() 243 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in run() 367 const auto OF = Triple(Mod.getTargetTriple()).getObjectFormat(); in pretendAtomicAccess() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | ModuleDebugStream.cpp | 34 : Mod(Module), Stream(std::move(Stream)) {} in ModuleDebugStreamRef() 41 if (Mod.getModuleStreamIndex() != llvm::pdb::kInvalidStreamIndex) { in reload() 52 uint32_t SymbolSize = Mod.getSymbolDebugInfoByteSize(); in reloadSerialize() 53 uint32_t C11Size = Mod.getC11LineInfoByteSize(); in reloadSerialize() 54 uint32_t C13Size = Mod.getC13LineInfoByteSize(); in reloadSerialize()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | InclusionRewriter.cpp | 87 void WriteImplicitModuleImport(const Module *Mod); 146 void InclusionRewriter::WriteImplicitModuleImport(const Module *Mod) { in WriteImplicitModuleImport() argument 147 OS << "#pragma clang module import " << Mod->getFullModuleName(true) in WriteImplicitModuleImport() 433 if (const Module *Mod = FindModuleAtLocation(Loc)) in Process() local 434 WriteImplicitModuleImport(Mod); in Process() 436 const Module *Mod = FindEnteredModule(Loc); in Process() local 437 if (Mod) in Process() 439 << Mod->getFullModuleName(true) << "\n"; in Process() 444 if (Mod) in Process() 446 << Mod->getFullModuleName(true) << "*/\n"; in Process()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | LTOModule.h | 51 std::unique_ptr<Module> Mod; member 115 const Module &getModule() const { return *Mod; } in getModule() 116 Module &getModule() { return *Mod; } in getModule() 118 std::unique_ptr<Module> takeModule() { return std::move(Mod); } in takeModule()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRMCExpr.cpp | 199 llvm::find_if(ModifierNames, [this](ModifierEntry const &Mod) { in getName() argument 200 return Mod.VariantKind == Kind; in getName() 211 llvm::find_if(ModifierNames, [&Name](ModifierEntry const &Mod) { in getKindByName() argument 212 return Mod.Spelling == Name; in getKindByName()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 184 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule() local 186 if (Mod) in LLVMCreateMCJITCompilerForModule() 189 for (auto &F : *Mod) { in LLVMCreateMCJITCompilerForModule() 197 EngineBuilder builder(std::move(Mod)); in LLVMCreateMCJITCompilerForModule() 263 Module *Mod = unwrap(M); in LLVMRemoveModule() local 264 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule() 265 *OutMod = wrap(Mod); in LLVMRemoveModule()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 92 static void reportModuleReferences(const Module *Mod, in reportModuleReferences() argument 96 if (!Mod) in reportModuleReferences() 98 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in reportModuleReferences() 101 ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); in reportModuleReferences() 135 const Module *Mod = ImportD->getImportedModule(); in importedModule() local 136 if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) { in importedModule() 137 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in importedModule() 145 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc); in importedModule()
|
| H A D | IndexingAction.cpp | 243 serialization::ModuleFile &Mod, in indexPreprocessorModuleMacros() argument 249 if (OwningMod && OwningMod->getASTFile() == Mod.File) { in indexPreprocessorModuleMacros() 296 void index::indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader, in indexModuleFile() argument 305 indexPreprocessorModuleMacros(Reader.getPreprocessor(), Mod, DataConsumer); in indexModuleFile() 308 for (const Decl *D : Reader.getModuleFileLevelDecls(Mod)) { in indexModuleFile()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | ModRef.h | 33 Mod = 2, enumerator 35 ModRef = Ref | Mod, 49 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::Mod); in isModSet() 128 return MemoryEffectsBase(ModRefInfo::Mod); in writeOnly()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTReader.h | 580 ModuleFile *Mod = nullptr; member 585 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo() 611 ModuleFile *Mod; member 715 Module *Mod; member 1352 ModuleFile *Mod; member 1356 ImportedModule(ModuleFile *Mod, in ImportedModule() 1359 : Mod(Mod), ImportedBy(ImportedBy), ImportLoc(ImportLoc) {} in ImportedModule() 1483 ModuleFile *Mod = nullptr; variable 1490 : iterator_adaptor_base(Pos), Reader(Reader), Mod(Mod) {} in ModuleDeclIterator() 1499 assert(Reader == RHS.Reader && Mod == RHS.Mod); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Passes/ |
| H A D | PassBuilderBindings.cpp | 54 Module *Mod = unwrap(M); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local 68 StandardInstrumentations SI(Mod->getContext(), Debug, VerifyEach); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 78 MPM.run(*Mod, MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUHSAMetadataStreamer.h | 48 virtual void begin(const Module &Mod, 93 void emitPrintf(const Module &Mod); 129 void begin(const Module &Mod,
|
| H A D | AMDGPULateCodeGenPrepare.cpp | 47 Module *Mod = nullptr; member in __anonf0eefc910111::AMDGPULateCodeGenPrepare 87 Mod = &M; in doInitialization() 88 DL = &Mod->getDataLayout(); in doInitialization()
|
| H A D | AMDGPUPromoteAlloca.cpp | 71 Module *Mod = nullptr; member in __anon5c4cf2790111::AMDGPUPromoteAllocaImpl 229 Mod = F.getParent(); in run() 230 DL = &Mod->getDataLayout(); in run() 953 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ() 966 MDNode *MD = MDNode::get(Mod->getContext(), std::nullopt); in getLocalSizeYZ() 1005 Function *WorkitemIdFn = Intrinsic::getDeclaration(Mod, IntrID); in getWorkitemID() 1212 for (GlobalVariable &GV : Mod->globals()) { in hasSufficientLocalMem() 1234 const DataLayout &DL = Mod->getDataLayout(); in hasSufficientLocalMem() 1323 const DataLayout &DL = Mod->getDataLayout(); in tryPromoteAllocaToLDS() 1404 LLVMContext &Context = Mod->getContext(); in tryPromoteAllocaToLDS() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | SveEmitter.cpp | 142 void applyModifier(char Mod); 577 void SVEType::applyModifier(char Mod) { in applyModifier() argument 578 switch (Mod) { in applyModifier() 920 char Mod = Proto[0]; in getProtoModifier() local 921 if (Mod == '2' || Mod == '3' || Mod == '4') { in getProtoModifier() 922 NumVectors = Mod - '0'; in getProtoModifier() 923 Mod = 'd'; in getProtoModifier() 925 Mod = Proto[2]; in getProtoModifier() 931 return {Mod, NumVectors}; in getProtoModifier() 953 char Mod; in Intrinsic() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Module.cpp | 403 Module *Mod = *I; in getExportedModules() local 404 if (!Mod->IsExplicit) in getExportedModules() 405 Exported.push_back(Mod); in getExportedModules() 413 Module *Mod = Exports[I].getPointer(); in getExportedModules() local 416 Exported.push_back(Mod); in getExportedModules() 441 Module *Mod = Imports[I]; in getExportedModules() local 447 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules() 457 Exported.push_back(Mod); in getExportedModules()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Index/ |
| H A D | USRGeneration.h | 82 bool generateFullUSRForModule(const Module *Mod, raw_ostream &OS); 90 bool generateUSRFragmentForModule(const Module *Mod, raw_ostream &OS);
|