Lines Matching refs:Module
74 Module::Module(StringRef MID, LLVMContext &C) in Module() function in Module
81 Module::~Module() { in ~Module()
90 void Module::removeDebugIntrinsicDeclarations() { in removeDebugIntrinsicDeclarations()
113 Module::createRNG(const StringRef Name) const { in createRNG()
135 GlobalValue *Module::getNamedValue(StringRef Name) const { in getNamedValue()
139 unsigned Module::getNumNamedValues() const { in getNumNamedValues()
145 unsigned Module::getMDKindID(StringRef Name) const { in getMDKindID()
152 void Module::getMDKindNames(SmallVectorImpl<StringRef> &Result) const { in getMDKindNames()
156 void Module::getOperandBundleTags(SmallVectorImpl<StringRef> &Result) const { in getOperandBundleTags()
169 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty, in getOrInsertFunction()
186 FunctionCallee Module::getOrInsertFunction(StringRef Name, FunctionType *Ty) { in getOrInsertFunction()
193 Function *Module::getFunction(StringRef Name) const { in getFunction()
208 GlobalVariable *Module::getGlobalVariable(StringRef Name, in getGlobalVariable()
223 Constant *Module::getOrInsertGlobal( in getOrInsertGlobal()
237 Constant *Module::getOrInsertGlobal(StringRef Name, Type *Ty) { in getOrInsertGlobal()
251 GlobalAlias *Module::getNamedAlias(StringRef Name) const { in getNamedAlias()
255 GlobalIFunc *Module::getNamedIFunc(StringRef Name) const { in getNamedIFunc()
262 NamedMDNode *Module::getNamedMetadata(const Twine &Name) const { in getNamedMetadata()
271 NamedMDNode *Module::getOrInsertNamedMetadata(StringRef Name) { in getOrInsertNamedMetadata()
283 void Module::eraseNamedMetadata(NamedMDNode *NMD) { in eraseNamedMetadata()
288 bool Module::isValidModFlagBehavior(Metadata *MD, ModFlagBehavior &MFB) { in isValidModFlagBehavior()
299 bool Module::isValidModuleFlag(const MDNode &ModFlag, ModFlagBehavior &MFB, in isValidModuleFlag()
314 void Module::
333 Metadata *Module::getModuleFlag(StringRef Key) const { in getModuleFlag()
334 SmallVector<Module::ModuleFlagEntry, 8> ModuleFlags; in getModuleFlag()
346 NamedMDNode *Module::getModuleFlagsMetadata() const { in getModuleFlagsMetadata()
353 NamedMDNode *Module::getOrInsertModuleFlagsMetadata() { in getOrInsertModuleFlagsMetadata()
360 void Module::addModuleFlag(ModFlagBehavior Behavior, StringRef Key, in addModuleFlag()
368 void Module::addModuleFlag(ModFlagBehavior Behavior, StringRef Key, in addModuleFlag()
372 void Module::addModuleFlag(ModFlagBehavior Behavior, StringRef Key, in addModuleFlag()
377 void Module::addModuleFlag(MDNode *Node) { in addModuleFlag()
386 void Module::setModuleFlag(ModFlagBehavior Behavior, StringRef Key, in setModuleFlag()
401 void Module::setModuleFlag(ModFlagBehavior Behavior, StringRef Key, in setModuleFlag()
405 void Module::setModuleFlag(ModFlagBehavior Behavior, StringRef Key, in setModuleFlag()
411 void Module::setDataLayout(StringRef Desc) { in setDataLayout()
415 void Module::setDataLayout(const DataLayout &Other) { DL = Other; } in setDataLayout()
417 DICompileUnit *Module::debug_compile_units_iterator::operator*() const { in operator *()
420 DICompileUnit *Module::debug_compile_units_iterator::operator->() const { in operator ->()
424 void Module::debug_compile_units_iterator::SkipNoDebugCUs() { in SkipNoDebugCUs()
430 iterator_range<Module::global_object_iterator> Module::global_objects() { in global_objects()
433 iterator_range<Module::const_global_object_iterator>
434 Module::global_objects() const { in global_objects()
438 iterator_range<Module::global_value_iterator> Module::global_values() { in global_values()
441 iterator_range<Module::const_global_value_iterator>
442 Module::global_values() const { in global_values()
449 void Module::setMaterializer(GVMaterializer *GVM) { in setMaterializer()
456 Error Module::materialize(GlobalValue *GV) { in materialize()
463 Error Module::materializeAll() { in materializeAll()
470 Error Module::materializeMetadata() { in materializeMetadata()
480 std::vector<StructType *> Module::getIdentifiedStructTypes() const { in getIdentifiedStructTypes()
494 std::string Module::getUniqueIntrinsicName(StringRef BaseName, Intrinsic::ID Id, in getUniqueIntrinsicName()
551 void Module::dropAllReferences() { in dropAllReferences()
565 unsigned Module::getNumberRegisterParameters() const { in getNumberRegisterParameters()
573 unsigned Module::getDwarfVersion() const { in getDwarfVersion()
580 bool Module::isDwarf64() const { in isDwarf64()
585 unsigned Module::getCodeViewFlag() const { in getCodeViewFlag()
592 unsigned Module::getInstructionCount() const { in getInstructionCount()
599 Comdat *Module::getOrInsertComdat(StringRef Name) { in getOrInsertComdat()
605 PICLevel::Level Module::getPICLevel() const { in getPICLevel()
615 void Module::setPICLevel(PICLevel::Level PL) { in setPICLevel()
621 PIELevel::Level Module::getPIELevel() const { in getPIELevel()
631 void Module::setPIELevel(PIELevel::Level PL) { in setPIELevel()
635 std::optional<CodeModel::Model> Module::getCodeModel() const { in getCodeModel()
645 void Module::setCodeModel(CodeModel::Model CL) { in setCodeModel()
653 std::optional<uint64_t> Module::getLargeDataThreshold() const { in getLargeDataThreshold()
663 void Module::setLargeDataThreshold(uint64_t Threshold) { in setLargeDataThreshold()
670 void Module::setProfileSummary(Metadata *M, ProfileSummary::Kind Kind) { in setProfileSummary()
677 Metadata *Module::getProfileSummary(bool IsCS) const { in getProfileSummary()
682 bool Module::getSemanticInterposition() const { in getSemanticInterposition()
692 void Module::setSemanticInterposition(bool SI) { in setSemanticInterposition()
696 void Module::setOwnedMemoryBuffer(std::unique_ptr<MemoryBuffer> MB) { in setOwnedMemoryBuffer()
700 bool Module::getRtLibUseGOT() const { in getRtLibUseGOT()
705 void Module::setRtLibUseGOT() { in setRtLibUseGOT()
709 bool Module::getDirectAccessExternalData() const { in getDirectAccessExternalData()
717 void Module::setDirectAccessExternalData(bool Value) { in setDirectAccessExternalData()
721 UWTableKind Module::getUwtable() const { in getUwtable()
727 void Module::setUwtable(UWTableKind Kind) { in setUwtable()
731 FramePointerKind Module::getFramePointer() const { in getFramePointer()
737 void Module::setFramePointer(FramePointerKind Kind) { in setFramePointer()
741 StringRef Module::getStackProtectorGuard() const { in getStackProtectorGuard()
748 void Module::setStackProtectorGuard(StringRef Kind) { in setStackProtectorGuard()
753 StringRef Module::getStackProtectorGuardReg() const { in getStackProtectorGuardReg()
760 void Module::setStackProtectorGuardReg(StringRef Reg) { in setStackProtectorGuardReg()
765 StringRef Module::getStackProtectorGuardSymbol() const { in getStackProtectorGuardSymbol()
772 void Module::setStackProtectorGuardSymbol(StringRef Symbol) { in setStackProtectorGuardSymbol()
777 int Module::getStackProtectorGuardOffset() const { in getStackProtectorGuardOffset()
784 void Module::setStackProtectorGuardOffset(int Offset) { in setStackProtectorGuardOffset()
788 unsigned Module::getOverrideStackAlignment() const { in getOverrideStackAlignment()
795 unsigned Module::getMaxTLSAlignment() const { in getMaxTLSAlignment()
802 void Module::setOverrideStackAlignment(unsigned Align) { in setOverrideStackAlignment()
806 static void addSDKVersionMD(const VersionTuple &V, Module &M, StringRef Name) { in addSDKVersionMD()
816 M.addModuleFlag(Module::ModFlagBehavior::Warning, Name, in addSDKVersionMD()
820 void Module::setSDKVersion(const VersionTuple &V) { in setSDKVersion()
849 VersionTuple Module::getSDKVersion() const { in getSDKVersion()
854 const Module &M, SmallVectorImpl<GlobalValue *> &Vec, bool CompilerUsed) { in collectUsedGlobalVariables()
868 void Module::setPartialSampleProfileRatio(const ModuleSummaryIndex &Index) { in setPartialSampleProfileRatio()
888 StringRef Module::getDarwinTargetVariantTriple() const { in getDarwinTargetVariantTriple()
894 void Module::setDarwinTargetVariantTriple(StringRef T) { in setDarwinTargetVariantTriple()
899 VersionTuple Module::getDarwinTargetVariantSDKVersion() const { in getDarwinTargetVariantSDKVersion()
903 void Module::setDarwinTargetVariantSDKVersion(VersionTuple Version) { in setDarwinTargetVariantSDKVersion()