================
@@ -66,6 +66,17 @@ bool IntrinsicInst::mayLowerToFunctionCall(Intrinsic::ID
IID) {
}
}
+bool IntrinsicInst::canAccessFPEnvironment(Intrinsic::ID IID) {
+ switch (IID) {
+#define DAG_INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC, DAGN)
\
+case Intrinsic::INTRINSIC:
+#include "llvm/IR/ConstrainedOps.def"
----------------
spavloff wrote:
Indeed. I changed the implementation to use access to InaccessibleMemory. It is
not precise, because this access type is used by other intrinsics too. In
future we could add new type of "memory" to represent FP control and status bit
and make this check precise.
https://github.com/llvm/llvm-project/pull/122735
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits