[clang] [CIR] Split cir.binop into separate per-operation binary ops (PR #184227)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 3 09:52:52 PST 2026
================
@@ -331,6 +336,19 @@ def CIR_AnyFloatOrVecOfFloatType
let cppFunctionName = "isFPOrVectorOfFPType";
}
+// Types valid for arithmetic ops (add/sub/mul/div/rem):
+// scalar or vector of integer, boolean, or floating-point.
+def CIR_AnyArithType
+ : AnyTypeOf<[CIR_AnyIntType, CIR_AnyBoolType, CIR_AnyFloatType,
----------------
xlauko wrote:
Good question, I will double check what AST does with boolean arithmetic.
https://github.com/llvm/llvm-project/pull/184227
More information about the cfe-commits
mailing list