MCPcopy Create free account
hub / github.com/GANGE666/xVMP / getModuleFlag

Method getModuleFlag

src/lib/IR/Module.cpp:312–320  ·  view source on GitHub ↗

Return the corresponding value if Key appears in module flags, otherwise return null.

Source from the content-addressed store, hash-verified

310/// Return the corresponding value if Key appears in module flags, otherwise
311/// return null.
312Metadata *Module::getModuleFlag(StringRef Key) const {
313 SmallVector<Module::ModuleFlagEntry, 8> ModuleFlags;
314 getModuleFlagsMetadata(ModuleFlags);
315 for (const ModuleFlagEntry &MFE : ModuleFlags) {
316 if (Key == MFE.Key->getString())
317 return MFE.Val;
318 }
319 return nullptr;
320}
321
322/// getModuleFlagsMetadata - Returns the NamedMDNode in the module that
323/// represents module-level flags. This method returns null if there are no

Callers 15

EmitAssemblyMethod · 0.80
applyDebugifyMetadataFunction · 0.80
lowerMethod · 0.80
requiresSplitFunction · 0.80
runOnModuleMethod · 0.80
LLVMGetModuleFlagFunction · 0.80
emitAttributesMethod · 0.80
runOnFunctionMethod · 0.80
EmitStartOfAsmFileMethod · 0.80
runOnMachineFunctionMethod · 0.80

Calls 1

getStringMethod · 0.45

Tested by 1

lowerMethod · 0.64