diff options
| author | Henrich Lauko <xlauko@mail.muni.cz> | 2026-03-03 22:34:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-03 22:34:18 +0100 |
| commit | 89a4bcf023493cb75aded5a70c082c1fa7d46cbc (patch) | |
| tree | 0ba3910a848731ef67cc24aa62a8f4ae233e1282 /llvm/test/CodeGen/AArch64 | |
| parent | c4ea6cc3f736ab5b3feeaf16c448db5217b14306 (diff) | |
| download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 | |
Replace the single `cir.binop` operation (dispatched via a `BinOpKind`
enum) with nine distinct ops — `cir.add`, `cir.sub`, `cir.mul`,
`cir.div`, `cir.rem`, `cir.and`, `cir.or`, `cir.xor`, and `cir.max` —
each with precise type constraints and only the attributes it needs
(nsw/nuw/sat on add/sub via `BinaryOverflowOp`).
A new `BinaryOpInterface` provides uniform `getLhs`/`getRhs`/`getResult`
access for passes and analyses.
The monolithic switch-based CIRToLLVMBinOpLowering is replaced by per-op
patterns generated through the existing CIRLowering.inc TableGen
infrastructure, with shared dispatch factored into two helpers:
`lowerSaturatableArithOp` for add/sub and `lowerIntFPBinaryOp` for
div/rem.
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
0 files changed, 0 insertions, 0 deletions
