[PATCH] D118795: [flang] add ExtendedValue type helpers and factory::genZeroValue
Jean Perier via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 2 07:48:59 PST 2022
jeanPerier created this revision.
jeanPerier added reviewers: clementval, schweitz.
jeanPerier added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
jeanPerier requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Add some helpers to get the base type and element type of
fir::ExtendedValue and to test if a fir::ExtendedValue is
a derived type with length parameters.
Add a new helper factory::genZeroValue to generate zero scalar value for
all the numerical types and false for logicals.
These helpers are used only in lowering for now, so add unit tests.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D118795
Files:
flang/include/flang/Optimizer/Builder/BoxValue.h
flang/include/flang/Optimizer/Builder/FIRBuilder.h
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118795.405277.patch
Type: text/x-patch
Size: 8959 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220202/b4859065/attachment.bin>
More information about the llvm-commits
mailing list