[llvm] [NFC][LLVM] Refactor rounding mode detection of constrained fp intrinsic IDs (PR #90854)
Joshua Cranmer via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 12:56:00 PDT 2024
================
@@ -1491,7 +1491,19 @@ bool Intrinsic::isConstrainedFPIntrinsic(ID QID) {
#define INSTRUCTION(NAME, NARG, ROUND_MODE, INTRINSIC) \
case Intrinsic::INTRINSIC:
#include "llvm/IR/ConstrainedOps.def"
+#undef INSTRUCTION
return true;
+ default:
+ return false;
+ }
+}
+
+bool Intrinsic::hasConstrainedFPRoundingModeOperand(Intrinsic::ID QID) {
----------------
jcranmer-intel wrote:
> I think these would be better as some kind of optional tag on call or an operand bundle or something
Playing around with an implementation of this has long been on a TODO list of mine, but I've not yet had time to try it out.
https://github.com/llvm/llvm-project/pull/90854
More information about the llvm-commits
mailing list