[#llvm-isModAndRefSet] = xref:llvm.adoc[llvm]::isModAndRefSet :relfileprefix: ../ :mrdocs: Return true if `MRI` indicates both modification and reference. == Synopsis Declared in `<llvm/Support/ModRef.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool isModAndRefSet(xref:llvm/ModRefInfo.adoc[ModRefInfo] const MRI); ---- == Return Value True if `MRI` indicates both modification and reference. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *MRI* | Mod/ref flags to test. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#