[clang] [CIR] Add lowering for long-double increment/decrement (PR #190812)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 7 10:55:03 PDT 2026
================
@@ -694,7 +694,8 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
return {};
}
- if (mlir::isa<cir::SingleType, cir::DoubleType>(value.getType())) {
+ if (mlir::isa<cir::SingleType, cir::DoubleType, cir::LongDoubleType>(
+ value.getType())) {
----------------
andykaylor wrote:
```suggestion
if (cir::isAnyFloatingPointType(value.getType())) {
```
It's not clear to me why we're checking the type here at all. I see that half requires special handling if the target doesn't have native support for it. Do we need something like that for FP80 and FP128 or does Sema check that?
https://github.com/llvm/llvm-project/pull/190812
More information about the cfe-commits
mailing list