================ @@ -66,6 +66,12 @@ bool IntrinsicInst::mayLowerToFunctionCall(Intrinsic::ID IID) { } } +bool IntrinsicInst::canAccessFPEnvironment(LLVMContext &C, Intrinsic::ID IID) { + AttributeList Attrs = Intrinsic::getAttributes(C, IID); + MemoryEffects ME = Attrs.getMemoryEffects(); + return ME.onlyAccessesInaccessibleMem(); ---------------- efriedma-quic wrote:
I think you want doesAccessInaccessibleMem() (any function that can access inaccessible memory, not just functions which only access inaccessible memory). Which apparently doesn't exist at the moment, but should be straightforward to implement. https://github.com/llvm/llvm-project/pull/122735 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits