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()
533 "__amdgpu_device_library_preserve_asan_functions", &getModule()); in Release()
535 getModule(), FT->getPointerTo(), in Release()
564 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.dependent-libraries"); in Release()
571 getModule().addModuleFlag(llvm::Module::Error, "NumRegisterParameters", in Release()
575 getModule().addModuleFlag(llvm::Module::Max, "Dwarf Version", in Release()
580 getModule().addModuleFlag(llvm::Module::Max, "DWARF64", 1); in Release()
584 getModule().setSemanticInterposition(1); in Release()
588 getModule().addModuleFlag(llvm::Module::Warning, "CodeView", 1); in Release()
591 getModule().addModuleFlag(llvm::Module::Warning, "CodeViewGHash", 1); in Release()
595 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 2); in Release()
598 getModule().addModuleFlag(llvm::Module::Warning, "cfguard", 1); in Release()
602 getModule().addModuleFlag(llvm::Module::Warning, "ehcontguard", 1); in Release()
609 getModule().addModuleFlag(llvm::Module::Error, "StrictVTablePointers",1); in Release()
616 getModule().addModuleFlag(llvm::Module::Require, in Release()
624 getModule().addModuleFlag(llvm::Module::Warning, "Debug Info Version", in Release()
632 getModule().addModuleFlag(llvm::Module::Error, "wchar_size", WCharWidth); in Release()
641 getModule().addModuleFlag(llvm::Module::Error, "min_enum_size", EnumWidth); in Release()
647 getModule().addModuleFlag(llvm::Module::Error, "target-abi", in Release()
653 getModule().addModuleFlag(llvm::Module::Override, "Cross-DSO CFI", 1); in Release()
660 getModule().addModuleFlag(llvm::Module::Error, "Virtual Function Elim", in Release()
665 getModule().addModuleFlag(llvm::Module::Override, in Release()
673 getModule().addModuleFlag(llvm::Module::Override, "cf-protection-return", in Release()
680 getModule().addModuleFlag(llvm::Module::Override, "cf-protection-branch", in Release()
686 getModule().addModuleFlag(llvm::Module::Error, in Release()
690 getModule().addModuleFlag(llvm::Module::Error, "sign-return-address", in Release()
693 getModule().addModuleFlag(llvm::Module::Error, "sign-return-address-all", in Release()
696 getModule().addModuleFlag(llvm::Module::Error, in Release()
703 getModule().addModuleFlag( in Release()
712 getModule().addModuleFlag(llvm::Module::Override, "nvvm-reflect-ftz", in Release()
718 getModule().addModuleFlag(llvm::Module::Warning, "eh-asynch", 1); in Release()
722 getModule().addModuleFlag(llvm::Module::Max, "openmp", LangOpts.OpenMP); in Release()
724 getModule().addModuleFlag(llvm::Module::Max, "openmp-device", in Release()
750 getModule().setPICLevel(static_cast<llvm::PICLevel::Level>(PLevel)); in Release()
752 getModule().setPIELevel(static_cast<llvm::PIELevel::Level>(PLevel)); in Release()
765 getModule().setCodeModel(codeModel); in Release()
770 getModule().setRtLibUseGOT(); in Release()
772 getModule().setUwtable(); in Release()
779 getModule().setFramePointer(llvm::FramePointerKind::NonLeaf); in Release()
782 getModule().setFramePointer(llvm::FramePointerKind::All); in Release()
804 getModule().setStackProtectorGuard(getCodeGenOpts().StackProtectorGuard); in Release()
806 getModule().setStackProtectorGuardReg( in Release()
809 getModule().setStackProtectorGuardOffset( in Release()
812 getModule().setOverrideStackAlignment(getCodeGenOpts().StackAlignment); in Release()
822 setVisibilityFromDLLStorageClass(LangOpts, getModule()); in Release()
849 getModule().addModuleFlag(llvm::Module::Error, "SmallDataLimit", in EmitBackendOptionsMetadata()
1419 return getModule().getNamedValue(Name); in GetGlobalValue()
2234 CGM.getModule(), ATy, false, llvm::GlobalValue::AppendingLinkage, in emitUsed()
2386 auto *NMD = getModule().getOrInsertNamedMetadata("llvm.linker.options"); in EmitModuleLinkOptions()
2493 auto *gv = new llvm::GlobalVariable(getModule(), Array->getType(), false, in EmitGlobalAnnotations()
2507 new llvm::GlobalVariable(getModule(), s->getType(), true, in EmitAnnotationString()
2553 auto *GV = new llvm::GlobalVariable(getModule(), Struct->getType(), true, in EmitAnnotationArgs()
2762 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfMSGuidDecl()
2791 getModule(), Init->getType(), in GetAddrOfMSGuidDecl()
2813 if (llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name)) in GetAddrOfTemplateParamObject()
2826 getModule(), Init->getType(), in GetAddrOfTemplateParamObject()
3302 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitMultiVersionFunctions()
3356 getModule().getOrInsertComdat(ResolverFunc->getName())); in emitCPUDispatchDefinition()
3431 DeclTy, 0, getFunctionLinkage(GD), AliasName, IFunc, &getModule()); in emitCPUDispatchDefinition()
3472 DeclTy, 0, llvm::Function::WeakODRLinkage, "", Resolver, &getModule()); in GetOrCreateMultiVersionResolver()
3586 Entry ? StringRef() : MangledName, &getModule()); in GetOrCreateLLVMFunction()
3886 getModule(), Ty, false, llvm::GlobalValue::ExternalLinkage, nullptr, in GetOrCreateLLVMGlobal()
4049 llvm::GlobalVariable *GV = getModule().getNamedGlobal(Name); in CreateOrReplaceCXXRuntimeVariable()
4064 GV = new llvm::GlobalVariable(getModule(), Ty, /*isConstant=*/true, in CreateOrReplaceCXXRuntimeVariable()
4916 llvm::GlobalAlias::create(DeclTy, AS, LT, "", Aliasee, &getModule()); in EmitAliasDefinition()
4991 "", Resolver, &getModule()); in emitIFuncDefinition()
5019 return llvm::Intrinsic::getDeclaration(&getModule(), (llvm::Intrinsic::ID)IID, in getIntrinsic()
5178 new llvm::GlobalVariable(getModule(), C->getType(), /*isConstant=*/true, in GetAddrOfConstantCFString()
5209 llvm::IntegerType::get(getModule().getContext(), in GetAddrOfConstantCFString()
5335 llvm::Module &M = CGM.getModule(); in GenerateStringLiteral()
5470 getModule(), Type, false, llvm::GlobalVariable::InternalLinkage, in GetAddrOfGlobalTemporary()
5538 getModule(), Type, Constant, Linkage, InitialValue, Name.c_str(), in GetAddrOfGlobalTemporary()
5872 getModule().appendModuleInlineAsm(AD->getAsmString()->getString()); in EmitTopLevelDecl()
6056 if (llvm::Function *F = getModule().getFunction("main")) { in EmitMainVoidAlias()
6077 CGM.getModule().getOrInsertNamedMetadata("clang.global.decl.ptrs"); in EmitGlobalDeclMetadata()
6097 if (Val && !getModule().getNamedValue(Name->getName())) in EmitStaticExternCAliases()
6122 llvm::GlobalValue *Addr = getModule().getNamedValue(I.second); in EmitDeclMetadata()
6336 SanStats = std::make_unique<llvm::SanitizerStatReport>(&getModule()); in getSanStats()