Lines Matching refs:getModule
186 !getModule().getSourceFileName().empty()) { in CodeGenModule()
187 std::string Path = getModule().getSourceFileName(); in CodeGenModule()
503 getModule().setProfileSummary( in Release()
514 CodeGenPGO(*this).setValueProfilingFlag(getModule()); in Release()
548 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.dependent-libraries"); in Release()
555 getModule().addModuleFlag(llvm::Module::Error, "NumRegisterParameters", in Release()
559 getModule().addModuleFlag(llvm::Module::Max, "Dwarf Version", in Release()
564 getModule().addModuleFlag(llvm::Module::Max, "DWARF64", 1); in Release()
568 getModule().setSemanticInterposition(1); in Release()
572 getModule().addModuleFlag(llvm::Module::Warning, "CodeView", 1); in Release()
575 getModule().addModuleFlag(llvm::Module::Warning, "CodeViewGHash", 1); in Release()
579 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 2); in Release()
582 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 1); in Release()
586 getModule().addModuleFlag(llvm::Module::Warning, "ehcontguard", 1); in Release()
593 getModule().addModuleFlag(llvm::Module::Error, "StrictVTablePointers",1); in Release()
600 getModule().addModuleFlag(llvm::Module::Require, in Release()
608 getModule().addModuleFlag(llvm::Module::Warning, "Debug Info Version", in Release()
616 getModule().addModuleFlag(llvm::Module::Error, "wchar_size", WCharWidth); in Release()
625 getModule().addModuleFlag(llvm::Module::Error, "min_enum_size", EnumWidth); in Release()
631 getModule().addModuleFlag(llvm::Module::Error, "target-abi", in Release()
637 getModule().addModuleFlag(llvm::Module::Override, "Cross-DSO CFI", 1); in Release()
644 getModule().addModuleFlag(llvm::Module::Error, "Virtual Function Elim", in Release()
649 getModule().addModuleFlag(llvm::Module::Override, in Release()
657 getModule().addModuleFlag(llvm::Module::Override, "cf-protection-return", in Release()
664 getModule().addModuleFlag(llvm::Module::Override, "cf-protection-branch", in Release()
670 getModule().addModuleFlag(llvm::Module::Error, in Release()
674 getModule().addModuleFlag(llvm::Module::Error, "sign-return-address", in Release()
677 getModule().addModuleFlag(llvm::Module::Error, "sign-return-address-all", in Release()
680 getModule().addModuleFlag(llvm::Module::Error, in Release()
687 getModule().addModuleFlag( in Release()
696 getModule().addModuleFlag(llvm::Module::Override, "nvvm-reflect-ftz", in Release()
702 getModule().addModuleFlag(llvm::Module::Warning, "eh-asynch", 1); in Release()
727 getModule().setPICLevel(static_cast<llvm::PICLevel::Level>(PLevel)); in Release()
729 getModule().setPIELevel(static_cast<llvm::PIELevel::Level>(PLevel)); in Release()
742 getModule().setCodeModel(codeModel); in Release()
747 getModule().setRtLibUseGOT(); in Release()
749 getModule().setUwtable(); in Release()
756 getModule().setFramePointer(llvm::FramePointerKind::NonLeaf); in Release()
759 getModule().setFramePointer(llvm::FramePointerKind::All); in Release()
781 getModule().setStackProtectorGuard(getCodeGenOpts().StackProtectorGuard); in Release()
783 getModule().setStackProtectorGuardReg( in Release()
786 getModule().setStackProtectorGuardOffset( in Release()
797 setVisibilityFromDLLStorageClass(LangOpts, getModule()); in Release()
824 getModule().addModuleFlag(llvm::Module::Error, "SmallDataLimit", in EmitBackendOptionsMetadata()
1389 return getModule().getNamedValue(Name); in GetGlobalValue()
2204 CGM.getModule(), ATy, false, llvm::GlobalValue::AppendingLinkage, in emitUsed()
2356 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.linker.options"); in EmitModuleLinkOptions()
2463 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, in EmitGlobalAnnotations()
2477 new llvm::GlobalVariable(getModule(), s->getType(), true, in EmitAnnotationString()
2523 auto *GV = new llvm::GlobalVariable(getModule(), Struct->getType(), true, in EmitAnnotationArgs()
2732 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfMSGuidDecl()
2761 getModule(), Init->getType(), in GetAddrOfMSGuidDecl()
2783 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfTemplateParamObject()
2796 getModule(), Init->getType(), in GetAddrOfTemplateParamObject()
3272 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitMultiVersionFunctions()
3326 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitCPUDispatchDefinition()
3401 DeclTy, 0, getFunctionLinkage(GD), AliasName, IFunc, &getModule()); in emitCPUDispatchDefinition()
3442 DeclTy, 0, llvm::Function::WeakODRLinkage, "", Resolver, &getModule()); in GetOrCreateMultiVersionResolver()
3556 Entry ? StringRef() : MangledName, &getModule()); in GetOrCreateLLVMFunction()
3856 getModule(), Ty, false, llvm::GlobalValue::ExternalLinkage, nullptr, in GetOrCreateLLVMGlobal()
4019 llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name); in CreateOrReplaceCXXRuntimeVariable()
4034 GV = new llvm::GlobalVariable(getModule(), Ty, /*isConstant=*/true, in CreateOrReplaceCXXRuntimeVariable()
4886 llvm::GlobalAlias::create(DeclTy, AS, LT, "", Aliasee, &getModule()); in EmitAliasDefinition()
4961 "", Resolver, &getModule()); in emitIFuncDefinition()
4989 return llvm::Intrinsic::getDeclaration(&getModule(), (llvm::Intrinsic::ID)IID, in getIntrinsic()
5148 new llvm::GlobalVariable(getModule(), C->getType(), /*isConstant=*/true, in GetAddrOfConstantCFString()
5179 llvm::IntegerType::get(getModule().getContext(), in GetAddrOfConstantCFString()
5305 llvm::Module &M = CGM.getModule(); in GenerateStringLiteral()
5440 getModule(), Type, false, llvm::GlobalVariable::InternalLinkage, in GetAddrOfGlobalTemporary()
5508 getModule(), Type, Constant, Linkage, InitialValue, Name.c_str(), in GetAddrOfGlobalTemporary()
5838 getModule().appendModuleInlineAsm(AD->getAsmString()->getString()); in EmitTopLevelDecl()
6022 if (llvm::Function *F = getModule().getFunction("main")) { in EmitMainVoidAlias()
6043 CGM.getModule().getOrInsertNamedMetadata("clang.global.decl.ptrs"); in EmitGlobalDeclMetadata()
6063 if (Val && !getModule().getNamedValue(Name->getName())) in EmitStaticExternCAliases()
6088 llvm::GlobalValue *Addr = getModule().getNamedValue(I.second); in EmitDeclMetadata()
6302 SanStats = std::make_unique<llvm::SanitizerStatReport>(&getModule()); in getSanStats()