This patch handles the lowering of comprison
operator between integers.
The comparison is lowered to a arith.cmpi operation.
This patch is part of the upstreaming effort from fir-dev branch.
Paths
| Differential D120559
[flang] Lower integer comparison operation ClosedPublic Authored by clementval on Feb 25 2022, 5:34 AM.
Details Summary This patch handles the lowering of comprison This patch is part of the upstreaming effort from fir-dev branch.
Diff Detail
Event Timelineclementval added a child revision: D120560: [flang] Lower logical comparison and logical operations.Feb 25 2022, 5:38 AM This revision is now accepted and ready to land.Feb 25 2022, 6:13 AM clementval added inline comments. clementval added a child revision: D120561: [flang] Lower real comparison operations.Feb 25 2022, 9:20 AM Closed by commit rGf1dcf3ae92d0: [flang] Lower integer comparison operation (authored by clementval). · Explain WhyFeb 25 2022, 12:01 PM This revision was automatically updated to reflect the committed changes. clementval marked an inline comment as done.
Revision Contents
Diff 411490 flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/integer-operations.f90
|
Nit: Why is this a template if it takes a CmpIPredicate? Can we use anything other than CmpIOp with a CmpIPredicate?