[llvm-branch-commits] [clang] [CIR] Refactor floating point type constraints (PR #138112)
Andy Kaylor via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 1 09:39:42 PDT 2025
================
@@ -155,21 +153,14 @@ def CIR_LongDouble : CIR_FloatType<"LongDouble", "long_double"> {
format are all in use.
}];
- let parameters = (ins "mlir::Type":$underlying);
+ let parameters = (ins AnyTypeOf<[CIR_Double, CIR_FP80, CIR_FP128],
+ "expects !cir.double, !cir.fp80 or !cir.fp128">:$underlying);
----------------
andykaylor wrote:
Can you add a test for this? It looks like the wording of the reported error will change, so we must not have a test now.
https://github.com/llvm/llvm-project/pull/138112
More information about the llvm-branch-commits
mailing list