[llvm] [Analysis] Adding convert_from_arbitrary_fp support in computeKnownFPClass. (PR #208585)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 02:20:33 PDT 2026
================
@@ -5727,6 +5727,44 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
Known.knownNot(fcNan | fcInf | fcNegative);
break;
}
+ case Intrinsic::convert_from_arbitrary_fp: {
+ auto *MD = cast<MetadataAsValue>(II->getArgOperand(1))->getMetadata();
+ StringRef FormatStr = cast<MDString>(MD)->getString();
+
+ const fltSemantics *SrcSemanticsPtr =
+ APFloat::getArbitraryFPSemantics(FormatStr);
+ // TODO: the unsupported formats should be handle way before this
+ // remove once the verifier is updated.
----------------
arsenm wrote:
```suggestion
```
https://github.com/llvm/llvm-project/pull/208585
More information about the llvm-commits
mailing list