[flang] Replace Arithmetic Ops with their builtin conunterpart
authorSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Tue, 16 Mar 2021 16:06:31 +0000 (21:36 +0530)
committerSourabh Singh Tomar <SourabhSingh.Tomar@amd.com>
Wed, 17 Mar 2021 03:28:10 +0000 (08:58 +0530)
commit8ca16e9778628ea5d587d600e956660e92a3baf7
tree50d042f57bed391e560cea1aa88e3ef6b85f5410
parent320b72e9cd77504054bd2c837149df2f2bd4c149
[flang] Replace Arithmetic Ops with their builtin conunterpart

Replaces `fir.add, fir.sub, fir.mul, fir.div` with their builtin
conuterparts.

This part of upstreaming effort, upstreams some parts of:
PR:https://github.com/flang-compiler/f18-llvm-project/pull/681

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D98719
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Lower/IntrinsicCall.cpp
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Fir/fir-ops.fir