[clang] [CIR] Record -ffp-contract=fast as a per-op contract flag (PR #226334)
Kunal Dubey via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 25 21:48:58 PDT 2026
================
@@ -277,6 +284,11 @@ void Generate(const Record *OpRecord) {
OpRecord->getValueAsString("constrainedLLVMIntrinsic");
bool ConstrainedHasRoundingMode =
OpRecord->getValueAsBit("constrainedLLVMIntrinsicHasRoundingMode");
+ const DagInit *ArgsDag = OpRecord->getValueAsDag("arguments");
+ bool HasFastMathFlags =
+ llvm::any_of(ArgsDag->getArgNames(), [](const StringInit *Name) {
+ return Name && Name->getValue() == "fastmath_flags";
----------------
xakep8 wrote:
This might break in case of a name change, but this can be solved in a future patch.
https://github.com/llvm/llvm-project/pull/226334
More information about the cfe-commits
mailing list