[llvm-branch-commits] [clang] [CIR] Add cir.min op and refactor cir.max lowering (PR #185276)
Henrich Lauko via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 9 10:15:26 PDT 2026
================
@@ -2390,13 +2390,38 @@ def CIR_MaxOp : CIR_BinaryOp<"max", CIR_AnyIntOrVecOfIntType, [
let summary = "Integer maximum";
let description = [{
The `cir.max` operation computes the maximum of two integer operands.
- Both operands and the result must have the same integer type.
+ Both operands and the result must have the same integer type or vector of
+ integer type.
----------------
xlauko wrote:
We already have CIR_FMinNumOp, CIR_FMinMumOp, CIR_FMaxinumOp, CIR_FMaximumOp.
https://github.com/llvm/llvm-project/pull/185276
More information about the llvm-branch-commits
mailing list