Lines Matching refs:getModule
200 !getModule().getSourceFileName().empty()) { in CodeGenModule()
201 std::string Path = getModule().getSourceFileName(); in CodeGenModule()
557 getModule().setProfileSummary( in Release()
569 CodeGenPGO(*this).setValueProfilingFlag(getModule()); in Release()
587 "__amdgpu_device_library_preserve_asan_functions", &getModule()); in Release()
589 getModule(), FT->getPointerTo(), in Release()
600 getModule().addModuleFlag(llvm::Module::Error, in Release()
625 getModule(), ATy, false, llvm::GlobalValue::InternalLinkage, in Release()
652 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.dependent-libraries"); in Release()
659 getModule().addModuleFlag(llvm::Module::Error, "NumRegisterParameters", in Release()
663 getModule().addModuleFlag(llvm::Module::Max, "Dwarf Version", in Release()
668 getModule().addModuleFlag(llvm::Module::Max, "DWARF64", 1); in Release()
672 getModule().setSemanticInterposition(true); in Release()
676 getModule().addModuleFlag(llvm::Module::Warning, "CodeView", 1); in Release()
679 getModule().addModuleFlag(llvm::Module::Warning, "CodeViewGHash", 1); in Release()
683 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 2); in Release()
686 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 1); in Release()
690 getModule().addModuleFlag(llvm::Module::Warning, "ehcontguard", 1); in Release()
697 getModule().addModuleFlag(llvm::Module::Error, "StrictVTablePointers",1); in Release()
704 getModule().addModuleFlag(llvm::Module::Require, in Release()
712 getModule().addModuleFlag(llvm::Module::Warning, "Debug Info Version", in Release()
720 getModule().addModuleFlag(llvm::Module::Error, "wchar_size", WCharWidth); in Release()
729 getModule().addModuleFlag(llvm::Module::Error, "min_enum_size", EnumWidth); in Release()
735 getModule().addModuleFlag(llvm::Module::Error, "target-abi", in Release()
741 getModule().addModuleFlag(llvm::Module::Override, "Cross-DSO CFI", 1); in Release()
748 getModule().addModuleFlag(llvm::Module::Error, "Virtual Function Elim", in Release()
753 getModule().addModuleFlag(llvm::Module::Override, in Release()
761 getModule().addModuleFlag(llvm::Module::Min, "cf-protection-return", in Release()
768 getModule().addModuleFlag(llvm::Module::Min, "cf-protection-branch", in Release()
773 getModule().addModuleFlag(llvm::Module::Min, "ibt-seal", 1); in Release()
776 getModule().addModuleFlag(llvm::Module::Override, "function_return_thunk_extern", 1); in Release()
790 getModule().addModuleFlag(llvm::Module::Override, in Release()
793 getModule().addModuleFlag(llvm::Module::Override, in Release()
801 getModule().addModuleFlag(llvm::Module::Min, "branch-target-enforcement", in Release()
804 getModule().addModuleFlag(llvm::Module::Min, "sign-return-address", 1); in Release()
806 getModule().addModuleFlag(llvm::Module::Min, "sign-return-address-all", in Release()
809 getModule().addModuleFlag(llvm::Module::Min, in Release()
815 getModule().addModuleFlag( in Release()
824 getModule().addModuleFlag(llvm::Module::Override, "nvvm-reflect-ftz", in Release()
830 getModule().addModuleFlag(llvm::Module::Warning, "eh-asynch", 1); in Release()
834 getModule().addModuleFlag(llvm::Module::Max, "openmp", LangOpts.OpenMP); in Release()
836 getModule().addModuleFlag(llvm::Module::Max, "openmp-device", in Release()
867 getModule().setPICLevel(static_cast<llvm::PICLevel::Level>(PLevel)); in Release()
869 getModule().setPIELevel(static_cast<llvm::PIELevel::Level>(PLevel)); in Release()
882 getModule().setCodeModel(codeModel); in Release()
887 getModule().setRtLibUseGOT(); in Release()
889 getModule().setUwtable(llvm::UWTableKind(CodeGenOpts.UnwindTables)); in Release()
896 getModule().setFramePointer(llvm::FramePointerKind::NonLeaf); in Release()
899 getModule().setFramePointer(llvm::FramePointerKind::All); in Release()
921 getModule().setStackProtectorGuard(getCodeGenOpts().StackProtectorGuard); in Release()
923 getModule().setStackProtectorGuardReg( in Release()
926 getModule().setStackProtectorGuardSymbol( in Release()
929 getModule().setStackProtectorGuardOffset( in Release()
932 getModule().setOverrideStackAlignment(getCodeGenOpts().StackAlignment); in Release()
934 getModule().addModuleFlag(llvm::Module::Override, "SkipRaxSetup", 1); in Release()
941 EmbedObject(&getModule(), CodeGenOpts, getDiags()); in Release()
947 setVisibilityFromDLLStorageClass(LangOpts, getModule()); in Release()
973 getModule().addModuleFlag(llvm::Module::Error, "SmallDataLimit", in EmitBackendOptionsMetadata()
1578 return getModule().getNamedValue(Name); in GetGlobalValue()
2427 CGM.getModule(), ATy, false, llvm::GlobalValue::AppendingLinkage, in emitUsed()
2604 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.linker.options"); in EmitModuleLinkOptions()
2711 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, in EmitGlobalAnnotations()
2725 new llvm::GlobalVariable(getModule(), s->getType(), true, in EmitAnnotationString()
2771 auto *GV = new llvm::GlobalVariable(getModule(), Struct->getType(), true, in EmitAnnotationArgs()
3004 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfMSGuidDecl()
3033 getModule(), Init->getType(), in GetAddrOfMSGuidDecl()
3068 auto *GV = new llvm::GlobalVariable(getModule(), Init->getType(), in GetAddrOfUnnamedGlobalConstantDecl()
3086 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfTemplateParamObject()
3099 getModule(), Init->getType(), in GetAddrOfTemplateParamObject()
3638 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitMultiVersionFunctions()
3693 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitCPUDispatchDefinition()
3767 &getModule()); in emitCPUDispatchDefinition()
3779 &getModule()); in emitCPUDispatchDefinition()
3826 "", Resolver, &getModule()); in GetOrCreateMultiVersionResolver()
3940 Entry ? StringRef() : MangledName, &getModule()); in GetOrCreateLLVMFunction()
4248 getModule(), Ty, false, llvm::GlobalValue::ExternalLinkage, nullptr, in GetOrCreateLLVMGlobal()
4414 llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name); in CreateOrReplaceCXXRuntimeVariable()
4429 GV = new llvm::GlobalVariable(getModule(), Ty, /*isConstant=*/true, in CreateOrReplaceCXXRuntimeVariable()
5293 llvm::GlobalAlias::create(DeclTy, AS, LT, "", Aliasee, &getModule()); in EmitAliasDefinition()
5374 "", Resolver, &getModule()); in emitIFuncDefinition()
5402 return llvm::Intrinsic::getDeclaration(&getModule(), (llvm::Intrinsic::ID)IID, in getIntrinsic()
5562 new llvm::GlobalVariable(getModule(), C->getType(), /*isConstant=*/true, in GetAddrOfConstantCFString()
5593 llvm::IntegerType::get(getModule().getContext(), in GetAddrOfConstantCFString()
5720 llvm::Module &M = CGM.getModule(); in GenerateStringLiteral()
5859 getModule(), Type, false, llvm::GlobalVariable::InternalLinkage, in GetAddrOfGlobalTemporary()
5931 getModule(), Type, Constant, Linkage, InitialValue, Name.c_str(), in GetAddrOfGlobalTemporary()
6268 getModule().appendModuleInlineAsm(AD->getAsmString()->getString()); in EmitTopLevelDecl()
6462 if (llvm::Function *F = getModule().getFunction("main")) { in EmitMainVoidAlias()
6485 CGM.getModule().getOrInsertNamedMetadata("clang.global.decl.ptrs"); in EmitGlobalDeclMetadata()
6579 getModule().getNamedValue(Name->getName()); in EmitStaticExternCAliases()
6608 llvm::GlobalValue *Addr = getModule().getNamedValue(I.second); in EmitDeclMetadata()
6829 SanStats = std::make_unique<llvm::SanitizerStatReport>(&getModule()); in getSanStats()