Use the factory class in the FIRBuilder.
Add unit tests for the factory class function and the convert function
of the Complex class.
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Paths
| Differential D114125
[Flang] Add a factory class for creating Complex Ops ClosedPublic Authored by kiranchandramohan on Nov 17 2021, 3:38 PM.
Details Summary Use the factory class in the FIRBuilder. Co-authored-by: Jean Perier <jperier@nvidia.com>
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 18 2021, 12:28 AM Comment Actions LGTM with nits.
kiranchandramohan marked 3 inline comments as done. Comment ActionsAddress review comments. kiranchandramohan added inline comments.
kiranchandramohan marked 2 inline comments as done. Comment Actionsmark functions as const
Closed by commit rGa1f9bd32c576: [Flang] Add a factory class for creating Complex Ops (authored by kiranchandramohan). · Explain WhyNov 18 2021, 8:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 388226 flang/include/flang/Optimizer/Builder/Complex.h
flang/include/flang/Optimizer/Builder/FIRBuilder.h
flang/lib/Optimizer/Builder/CMakeLists.txt
flang/lib/Optimizer/Builder/Complex.cpp
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/unittests/Optimizer/Builder/ComplexTest.cpp
flang/unittests/Optimizer/CMakeLists.txt
|
Nit: Can these methods be const?