[all-commits] [llvm/llvm-project] 575a6f: [flang] add ExtendedValue type helpers and factory...
jeanPerier via All-commits
all-commits at lists.llvm.org
Thu Feb 3 01:14:53 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 575a6f819bc60fc2423e492f6c133404740445db
https://github.com/llvm/llvm-project/commit/575a6f819bc60fc2423e492f6c133404740445db
Author: Jean Perier <jperier at nvidia.com>
Date: 2022-02-03 (Thu, 03 Feb 2022)
Changed paths:
M flang/include/flang/Optimizer/Builder/BoxValue.h
M flang/include/flang/Optimizer/Builder/FIRBuilder.h
M flang/lib/Optimizer/Builder/FIRBuilder.cpp
M flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
Log Message:
-----------
[flang] add ExtendedValue type helpers and factory::genZeroValue
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.
Differential Revision: https://reviews.llvm.org/D118795
More information about the All-commits
mailing list