/llvm-project/llvm/unittests/IR/ |
H A D | ManglerTest.cpp | 28 llvm::CallingConv::ID CC, Module &Mod, in mangleFunc() 30 Type *VoidTy = Type::getVoidTy(Mod.getContext()); in mangleFunc() 31 Type *I32Ty = Type::getInt32Ty(Mod.getContext()); in mangleFunc() 34 Function *F = Function::Create(FTy, Linkage, IRName, &Mod); in mangleFunc() 48 Module Mod("test", Ctx); in TEST() 49 Mod.setDataLayout(DL); in TEST() 55 llvm::CallingConv::C, Mod, Mang), in TEST() 58 llvm::CallingConv::C, Mod, Mang), in TEST() 61 llvm::CallingConv::C, Mod, Mang), in TEST() 68 Module Mod("tes in TEST() 29 mangleFunc(StringRef IRName,GlobalValue::LinkageTypes Linkage,llvm::CallingConv::ID CC,Module & Mod,Mangler & Mang) mangleFunc() argument 50 Module Mod("test", Ctx); TEST() local 70 Module Mod("test", Ctx); TEST() local 106 Module Mod("test", Ctx); TEST() local 142 Module Mod("test", Ctx); TEST() local 162 Module Mod("test", Ctx); TEST() local [all...] |
H A D | VectorBuilderTest.cpp | 31 auto Mod = std::make_unique<Module>("TestModule", Context); in createBuilderModule() local 38 Function::Create(VoidFuncTy, GlobalValue::ExternalLinkage, "bla", *Mod); in createBuilderModule() 43 return Mod; in createBuilderModule() 52 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 102 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 148 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 183 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 216 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 254 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local 269 auto Mod = createBuilderModule(F, BB, Mask, EVL); in TEST_F() local
|
/llvm-project/llvm/test/DebugInfo/PDB/ |
H A D | just-my-code.test | 4 ALL: Mod 0000 | 5 ALL: Mod 0001 | 6 ALL: Mod 0002 | 7 ALL: Mod 0003 | 8 ALL: Mod 0004 | 9 ALL: Mod 0005 | 10 ALL: Mod 0006 | 11 ALL: Mod 0047 | 13 JMC: Mod 0000 14 JMC-NOT: Mod 0001 [all …]
|
/llvm-project/llvm/lib/LTO/ |
H A D | LTOBackend.cpp | 236 static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, in runNewPMPasses() 271 StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager, in runNewPMPasses() 351 MPM.run(Mod, MAM); in opt() 354 static bool isEmptyModule(const Module &Mod) { in opt() 358 return Mod.empty() && Mod.global_empty() && Mod.named_metadata_empty() && in opt() 359 Mod.getModuleInlineAsm().empty(); in opt() 362 bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, in opt() 379 llvm::embedBitcodeInModule(Mod, llv in codegen() 233 runNewPMPasses(const Config & Conf,Module & Mod,TargetMachine * TM,unsigned OptLevel,bool IsThinLTO,ModuleSummaryIndex * ExportSummary,const ModuleSummaryIndex * ImportSummary) runNewPMPasses() argument 341 opt(const Config & Conf,TargetMachine * TM,unsigned Task,Module & Mod,bool IsThinLTO,ModuleSummaryIndex * ExportSummary,const ModuleSummaryIndex * ImportSummary,const std::vector<uint8_t> & CmdArgs) opt() argument 369 codegen(const Config & Conf,TargetMachine * TM,AddStreamFn AddStream,unsigned Task,Module & Mod,const ModuleSummaryIndex & CombinedIndex) codegen() argument 428 splitCodeGen(const Config & C,TargetMachine * TM,AddStreamFn AddStream,unsigned ParallelCodeGenParallelismLevel,Module & Mod,const ModuleSummaryIndex & CombinedIndex) splitCodeGen() argument 482 initAndLookupTarget(const Config & C,Module & Mod) initAndLookupTarget() argument 507 backend(const Config & C,AddStreamFn AddStream,unsigned ParallelCodeGenParallelismLevel,Module & Mod,ModuleSummaryIndex & CombinedIndex) backend() argument 532 dropDeadSymbols(Module & Mod,const GVSummaryMapTy & DefinedGlobals,const ModuleSummaryIndex & Index) dropDeadSymbols() argument 554 thinBackend(const Config & Conf,unsigned Task,AddStreamFn AddStream,Module & Mod,const ModuleSummaryIndex & CombinedIndex,const FunctionImporter::ImportMapTy & ImportList,const GVSummaryMapTy & DefinedGlobals,MapVector<StringRef,BitcodeModule> * ModuleMap,const std::vector<uint8_t> & CmdArgs) thinBackend() argument 589 __anon3666d5180802(Module &Mod, TargetMachine *TM, std::unique_ptr<ToolOutputFile> DiagnosticOutputFile) thinBackend() argument [all...] |
/llvm-project/clang/lib/Sema/ |
H A D | SemaModule.cpp | 208 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); in HandleStartOfHeaderUnit() 209 assert(Mod && "module creation should not fail"); in HandleStartOfHeaderUnit() local 212 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit() 213 VisibleModules.setVisible(Mod, StartOfTU); in HandleStartOfHeaderUnit() 219 TU->setLocalOwningModule(Mod); in HandleStartOfHeaderUnit() 389 Module *Mod; // The module we are creating. in ActOnModuleDecl() 403 Mod = M; in ActOnModuleDecl() 408 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl() 410 Mod->Kind = Module::ModulePartitionInterface; in ActOnModuleDecl() 411 assert(Mod in ActOnModuleDecl() 390 Module *Mod; // The module we are creating. ActOnModuleDecl() local 617 Module *Mod = getModuleLoader().loadModule( ActOnModuleImport() local 642 ActOnModuleImport(SourceLocation StartLoc,SourceLocation ExportLoc,SourceLocation ImportLoc,Module * Mod,ModuleIdPath Path) ActOnModuleImport() argument 722 ActOnAnnotModuleInclude(SourceLocation DirectiveLoc,Module * Mod) ActOnAnnotModuleInclude() argument 727 BuildModuleInclude(SourceLocation DirectiveLoc,Module * Mod) BuildModuleInclude() argument 761 ActOnAnnotModuleBegin(SourceLocation DirectiveLoc,Module * Mod) ActOnAnnotModuleBegin() argument 785 ActOnAnnotModuleEnd(SourceLocation EomLoc,Module * Mod) ActOnAnnotModuleEnd() argument 826 createImplicitModuleImportForErrorRecovery(SourceLocation Loc,Module * Mod) createImplicitModuleImportForErrorRecovery() argument [all...] |
/llvm-project/clang-tools-extra/clangd/ |
H A D | FeatureModule.h | 155 template <typename Mod> struct ID { 156 static_assert(std::is_base_of<FeatureModule, Mod>::value && 157 std::is_final<Mod>::value, 175 template <typename Mod> bool add(std::unique_ptr<Mod> M) { in add() 176 return addImpl(&ID<Mod>::Key, std::move(M), LLVM_PRETTY_FUNCTION); in add() 178 template <typename Mod> Mod *get() { in get() 179 return static_cast<Mod *>(Map.lookup(&ID<Mod>::Key)); in get() 181 template <typename Mod> const Mod *get() const { in get() 182 return const_cast<FeatureModuleSet *>(this)->get<Mod>(); in get() 186 template <typename Mod> int FeatureModuleSet::ID<Mod>::Key;
|
/llvm-project/clang/test/CodeGenCXX/ |
H A D | modules-vtable.cppm | 8 // RUN: %t/Mod.cppm -o %t/Mod.pcm 10 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/Mod.pcm \ 11 // RUN: -emit-llvm -o - | FileCheck %t/Mod.cppm 12 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 -fmodule-file=Mod=%t/Mod.pcm \ 16 // RUN: %t/Mod.cppm -o %t/Mod.pcm -DKEY_FUNCTION_INLINE 18 // RUN: %clang_cc1 -triple %itanium_abi_triple -std=c++20 %t/Mod.pcm \ 19 // RUN: -emit-llvm -o - | FileCheck %t/Mod [all...] |
/llvm-project/llvm/test/Analysis/AliasSet/ |
H A D | saturation.ll | 5 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSize::precise(4)) 6 ; CHECK: AliasSet[{{.*}}, 2] may alias, Mod Memory locations: (ptr %b, LocationSize::precise(4)), (… 18 ; NOSAT: AliasSet[{{.*}}, 3] may alias, Mod Memory locations: (ptr %a, LocationSize::precise(4)), (… 19 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSize::precise(4)) 20 ; SAT: AliasSet[{{.*}}, 3] may alias, Mod forwarding to 0x[[FWD:[0-9a-f]*]] 21 ; SAT: AliasSet[{{.*}}, 1] must alias, Mod forwarding to 0x[[FWD]] 22 ; SAT: AliasSet[0x[[FWD]], 2] may alias, Mod/Ref Memory locations: (ptr %a, LocationSize::precise(4… 36 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSize::precise(4)) 37 ; NOSAT: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSize::precise(4)) 38 ; NOSAT: AliasSet[{{.*}}, 2] may alias, Mod Memory locations: (ptr %c, LocationSize::precise(4)), … [all …]
|
H A D | memtransfer.ll | 9 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %d, LocationSi… 19 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %d, unknown af… 30 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 32 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %d, LocationSiz… 33 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 46 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 48 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %d, LocationSiz… 49 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 62 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 64 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %d, LocationSi… [all …]
|
H A D | intrinsics.ll | 5 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 6 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 20 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 23 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 37 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 3] may alias, Mod/Ref Memory locations: (ptr %a, LocationSiz… 50 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %a, LocationSiz… 52 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 65 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… 66 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, LocationSi… 79 ; CHECK: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, LocationSi… [all …]
|
H A D | argmemonly.ll | 8 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, Locatio… 9 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %d, unknown… 20 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %d, unknown… 31 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %a, Locatio… 32 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 2] may alias, Mod/Ref Memory locations: (ptr %d, unknown… 42 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod/Ref Memory locations: (ptr %a, LocationS… 43 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod Memory locations: (ptr %b, unknown befor… 54 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod/Ref Memory locations: (ptr %a, LocationS… 55 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod/Ref Memory locations: (ptr %b, unknown b… 66 ; CHECK-NEXT: AliasSet[0x{{[0-9a-f]+}}, 1] must alias, Mod/Ref Memory locations: (ptr %b, unknown b… [all …]
|
H A D | memloc-vscale.ll | 5 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %p, LocationSize::precise… 13 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %p, LocationSize::precise… 21 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %p, LocationSize::precise… 29 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %p, LocationSize::precise… 37 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %g, LocationSize::precise… 38 ; CHECK: AliasSet[{{.*}}, 1] must alias, Mod Memory locations: (ptr %p, LocationSize::precise… 47 ; CHECK: AliasSet[{{.*}}, 2] may alias, Mod Memory locations: (ptr %p, LocationSize::precise(…
|
/llvm-project/llvm/unittests/AsmParser/ |
H A D | AsmParserTest.cpp | 29 auto Mod = parseAssemblyString(Source, Error, Ctx); in TEST() 31 EXPECT_TRUE(Mod != nullptr); in TEST() 42 std::unique_ptr<Module> Mod; in TEST() 43 EXPECT_DEATH(Mod = parseAssemblyString(Source.substr(0, Source.size() - 2), in TEST() 56 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); in TEST() 58 EXPECT_TRUE(Mod != nullptr); in TEST() 74 auto Mod = parseAssemblyString(Source, Error, Ctx); in TEST() 75 ASSERT_TRUE(Mod != nullptr); in TEST() 76 auto &M = *Mod; in TEST() 159 auto Mod in TEST() 28 auto Mod = parseAssemblyString(Source, Error, Ctx); TEST() local 41 std::unique_ptr<Module> Mod; TEST() local 55 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); TEST() local 73 auto Mod = parseAssemblyString(Source, Error, Ctx); TEST() local 138 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); TEST() local 174 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); TEST() local 278 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); TEST() local [all...] |
/llvm-project/clang/test/ClangScanDeps/ |
H A D | modules-excluded-header.m | 15 module Mod { header "Mod.h" } 16 //--- mod/Mod.h 20 @import Mod; 46 // CHECK-NEXT: "name": "Mod" 51 // RUN: %deps-to-rsp %t/result.json --module-name=Mod > %t/Mod.cc1.rsp 54 // RUN: %clang @%t/Mod.cc1.rsp
|
/llvm-project/clang/lib/Lex/ |
H A D | ModuleMap.cpp | 56 void ModuleMap::resolveLinkAsDependencies(Module *Mod) { in anchor() 57 auto PendingLinkAs = PendingLinkAsModule.find(Mod->Name); 67 void ModuleMap::addLinkAsDependency(Module *Mod) { in resolveLinkAsDependencies() 68 if (findModule(Mod->ExportAsModule)) 69 Mod->UseExportAsModuleLinkName = true; in addLinkAsDependency() argument 71 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency() 112 ModuleMap::resolveExport(Module *Mod, 122 Module *Context = resolveModuleId(Unresolved.Id, Mod, Complain); in resolveExport() 129 Module *ModuleMap::resolveModuleId(const ModuleId &Id, Module *Mod, in resolveExport() 58 resolveLinkAsDependencies(Module * Mod) resolveLinkAsDependencies() argument 114 resolveExport(Module * Mod,const Module::UnresolvedExportDecl & Unresolved,bool Complain) const resolveExport() argument 131 resolveModuleId(const ModuleId & Id,Module * Mod,bool Complain) const resolveModuleId() argument 163 appendSubframeworkPaths(Module * Mod,SmallVectorImpl<char> & Path) appendSubframeworkPaths() argument 295 resolveHeader(Module * Mod,const Module::UnresolvedHeaderDirective & Header,bool & NeedsFramework) resolveHeader() argument 334 resolveAsBuiltinHeader(Module * Mod,const Module::UnresolvedHeaderDirective & Header) resolveAsBuiltinHeader() argument 981 inferFrameworkLink(Module * Mod) inferFrameworkLink() argument 1016 if (Module *Mod = lookupModuleQualified(ModuleName, Parent)) inferFrameworkModule() local 1187 setUmbrellaHeaderAsWritten(Module * Mod,FileEntryRef UmbrellaHeader,const Twine & NameAsWritten,const Twine & PathRelativeToRootModuleDirectory) setUmbrellaHeaderAsWritten() argument 1202 setUmbrellaDirAsWritten(Module * Mod,DirectoryEntryRef UmbrellaDir,const Twine & NameAsWritten,const Twine & PathRelativeToRootModuleDirectory) setUmbrellaDirAsWritten() argument 1211 addUnresolvedHeader(Module * Mod,Module::UnresolvedHeaderDirective Header,bool & NeedsFramework) addUnresolvedHeader() argument 1264 resolveHeaderDirectives(Module * Mod,std::optional<const FileEntry * > File) const resolveHeaderDirectives() argument 1282 addHeader(Module * Mod,Module::Header Header,ModuleHeaderRole Role,bool Imported) addHeader() argument 1399 resolveExports(Module * Mod,bool Complain) resolveExports() argument 1412 resolveUses(Module * Mod,bool Complain) resolveUses() argument 1426 resolveConflicts(Module * Mod,bool Complain) resolveConflicts() argument [all...] |
/llvm-project/clang/tools/c-index-test/ |
H A D | core_main.cpp | 84 static void printSymbolNameAndUSR(const clang::Module *Mod, raw_ostream &OS); 144 const clang::Module *Mod, SymbolRoleSet Roles, in handleModuleOccurrence() 158 printSymbolNameAndUSR(Mod, OS); in handleModuleOccurrence() 205 static void dumpModuleFileInputs(serialization::ModuleFile &Mod, in dumpModuleFileInputs() 209 Reader.visitInputFiles(Mod, /*IncludeSystem=*/true, /*Complain=*/false, in dumpModuleFileInputs() 251 Reader->getModuleManager().visit([&](serialization::ModuleFile &Mod) -> bool { in printSourceSymbols() 252 OS << "==== Module " << Mod.ModuleName << " ====\n"; in printSourceSymbols() 253 indexModuleFile(Mod, *Reader, *DataConsumer, IndexOpts); in printSourceSymbols() 254 dumpModuleFileInputs(Mod, *Reader, OS); in printSourceSymbols() 329 static void printSymbolNameAndUSR(const clang::Module *Mod, raw_ostrea in printSymbolNameAndUSR() 143 handleModuleOccurrence(const ImportDecl * ImportD,const clang::Module * Mod,SymbolRoleSet Roles,SourceLocation Loc) handleModuleOccurrence() argument 204 dumpModuleFileInputs(serialization::ModuleFile & Mod,ASTReader & Reader,raw_ostream & OS) dumpModuleFileInputs() argument 249 __anon973aa0980402(serialization::ModuleFile &Mod) printSourceSymbols() argument 326 printSymbolNameAndUSR(const clang::Module * Mod,raw_ostream & OS) printSymbolNameAndUSR() argument [all...] |
/llvm-project/llvm/test/tools/llvm-pdbutil/ |
H A D | modi.test | 13 ; NONE-CHECK: Mod 0000 14 ; NONE-CHECK: Mod 0001 15 ; NONE-CHECK: Mod 0002 22 ; ZERO-CHECK: Mod 0000 29 ; ONE-CHECK: Mod 0001 36 ; TWO-CHECK: Mod 0002
|
/llvm-project/clang/include/clang/Lex/ |
H A D | ModuleMap.h | 123 void resolveLinkAsDependencies(Module *Mod); 127 void addLinkAsDependency(Module *Mod); 296 /// \param Mod The module in which we're resolving the export declaration. 306 resolveExport(Module *Mod, const Module::UnresolvedExportDecl &Unresolved, 313 /// \param Mod The module in which we're resolving the module-id. 320 Module *resolveModuleId(const ModuleId &Id, Module *Mod, bool Complain) const; 324 /// \param Mod The module in which we're adding the unresolved header 327 /// \param NeedsFramework If Mod is not a framework but a missing header would 328 /// be found in case Mod was, set it to true. False otherwise. 329 void addUnresolvedHeader(Module *Mod, [all...] |
/llvm-project/llvm/test/Analysis/BasicAA/ |
H A D | libfuncs-darwin.ll | 9 ; CHECK: Just Mod: Ptr: i8* %a <-> call void @memset_pattern4(ptr %a, ptr %pattern, i64 17) 11 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.1 <-> call void @memset_pattern4(ptr %a, ptr %pattern, i… 34 ; CHECK: Just Mod: Ptr: i8* %a <-> call void @memset_pattern4(ptr %a, ptr %pattern, i64 %n) 36 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.1 <-> call void @memset_pattern4(ptr %a, ptr %pattern, i… 37 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.17 <-> call void @memset_pattern4(ptr %a, ptr %pattern, … 52 ; CHECK: Just Mod: Ptr: i8* %a <-> call void @memset_pattern8(ptr %a, ptr %pattern, i64 17) 54 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.1 <-> call void @memset_pattern8(ptr %a, ptr %pattern, i… 77 ; CHECK: Just Mod: Ptr: i8* %a <-> call void @memset_pattern8(ptr %a, ptr %pattern, i64 %n) 79 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.1 <-> call void @memset_pattern8(ptr %a, ptr %pattern, i… 80 ; CHECK-NEXT: Just Mod: Ptr: i8* %a.gep.17 <-> call void @memset_pattern8(ptr %a, ptr %pattern, … [all …]
|
/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULateCodeGenPrepare.cpp | 75 Module &Mod; 128 LiveRegOptimizer(Module &Mod, const GCNSubtarget &ST) in shouldReplace() 129 : Mod(Mod), DL(Mod.getDataLayout()), ST(ST), in shouldReplace() 130 ConvertToScalar(Type::getInt32Ty(Mod.getContext())) {} in shouldReplace() 171 return IntegerType::get(Mod.getContext(), ConvertScalarSize); in runOnFunction() 173 return VectorType::get(Type::getIntNTy(Mod.getContext(), ConvertScalarSize), in runOnFunction() 226 Builder.CreateTrunc(V, IntegerType::get(Mod.getContext(), NewSize))); in convertToOptType() 233 Type::getIntNTy(Mod in convertToOptType() 47 Module *Mod = nullptr; global() member in __anon603eb3ce0111::AMDGPULateCodeGenPrepare 90 Module *Mod = nullptr; global() member in __anon603eb3ce0111::LiveRegOptimizer 143 LiveRegOptimizer(Module * Mod,const GCNSubtarget * ST) LiveRegOptimizer() argument [all...] |
/llvm-project/llvm/examples/BrainF/ |
H A D | BrainFDriver.cpp | 142 std::unique_ptr<Module> Mod(bf.parse(in, 65536, cf, Context)); // 64 KiB in main() local 145 addMainFunction(Mod.get()); in main() 148 if (verifyModule(*Mod)) { in main() 159 Module &M = *Mod; in main() 160 ExecutionEngine *ee = EngineBuilder(std::move(Mod)).create(); in main() 173 WriteBitcodeToFile(*Mod, *out); in main()
|
/llvm-project/llvm/unittests/CodeGen/ |
H A D | MachineInstrTest.cpp | 51 Module Mod("Module", Ctx); in TEST() local 52 auto MF = createMachineFunction(Ctx, Mod); in TEST() 123 Module Mod("Module", Ctx); in TEST() local 124 auto MF = createMachineFunction(Ctx, Mod); in TEST() 204 Module Mod("Module", Ctx); in TEST() local 205 auto MF = createMachineFunction(Ctx, Mod); in TEST() 232 Module Mod("Module", Ctx); in TEST() 233 auto MF = createMachineFunction(Ctx, Mod); in TEST() local 249 Module Mod("Module", Ctx); in TEST() 250 auto MF = createMachineFunction(Ctx, Mod); in TEST() local 267 Module Mod("Module", Ctx); TEST() local 348 Module Mod("Module", Ctx); TEST() local 403 Module Mod("Module", Ctx); TEST() local 480 Module Mod("Module", Ctx); TEST() local 517 Module Mod("Module", Ctx); TEST() local 535 Module Mod("Module", Ctx); TEST() local [all...] |
/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; 191 for (Function &F : Mod) in run() 225 Mod, StructorPrefix + ".module_ctor", in run() 231 Mod, StructorPrefix + ".module_dtor", in run() 240 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run() 241 Dtor->setComdat(Mod.getOrInsertComdat(Dtor->getName())); in run() 250 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in run() 251 appendToGlobalDtors(Mod, Dto in run() 179 Module &Mod; global() member in __anon2cce3ac30111::SanitizerBinaryMetadata [all...] |
/llvm-project/clang/test/Modules/ |
H A D | pr97313.cppm | 17 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Mod.cppm \ 18 // RUN: -emit-module-interface -o %t/Mod.pcm 19 // RUN: %clang_cc1 -std=c++20 -triple %itanium_abi_triple %t/Mod.pcm \ 20 // RUN: -emit-llvm -o - | FileCheck %t/Mod.cppm 63 //--- Mod.cppm 64 export module Mod; 98 import Mod;
|
/llvm-project/lld/test/COFF/ |
H A D | pdb-comdat.test | 33 CHECK-LABEL: Mod 0000 | `{{.*}}pdb_comdat_main.obj`: 36 CHECK-LABEL: Mod 0001 | `{{.*}}pdb_comdat_bar.obj`: 39 CHECK-LABEL: Mod 0002 | `* Linker *`: 57 CHECK-LABEL: Mod 0000 | `{{.*}}pdb_comdat_main.obj`: 80 CHECK-LABEL: Mod 0001 | `{{.*}}pdb_comdat_bar.obj`: 96 CHECK-LABEL: Mod 0002 | `* Linker *`: 103 REORDER-LABEL: Mod 0000 | `{{.*}}pdb_comdat_bar.obj`: 106 REORDER-LABEL: Mod 0001 | `{{.*}}pdb_comdat_main.obj`: 109 REORDER-LABEL: Mod 0002 | `* Linker *`:
|