[all-commits] [llvm/llvm-project] c983ae: [fir] Add character utility functions in FIRBuilder
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Tue Oct 19 13:35:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c983aeddcf5af992d2a807d3f4f8cdc27cbf63b1
https://github.com/llvm/llvm-project/commit/c983aeddcf5af992d2a807d3f4f8cdc27cbf63b1
Author: Valentin Clement <clementval at gmail.com>
Date: 2021-10-19 (Tue, 19 Oct 2021)
Changed paths:
A flang/include/flang/Optimizer/Builder/BoxValue.h
M flang/include/flang/Optimizer/Builder/FIRBuilder.h
M flang/include/flang/Optimizer/Dialect/FIRType.h
A flang/include/flang/Optimizer/Support/Matcher.h
A flang/lib/Optimizer/Builder/BoxValue.cpp
M flang/lib/Optimizer/Builder/CMakeLists.txt
M flang/lib/Optimizer/Builder/FIRBuilder.cpp
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/lib/Optimizer/Dialect/FIRType.cpp
M flang/unittests/Optimizer/Builder/FIRBuilderTest.cpp
Log Message:
-----------
[fir] Add character utility functions in FIRBuilder
Extract part of D111337 in order to mke it smaller
and easier to review. This patch add some utility
functions to the FIRBuilder.
Add the following utility functions:
- getCharacterLengthType
- createStringLiteral
- locationToFilename
- characterWithDynamicLen
- sequenceWithNonConstantShape
- hasDynamicSize
These bring up the BoxValue implementation together with it.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: AlexisPerry
Differential Revision: https://reviews.llvm.org/D112074
Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
More information about the All-commits
mailing list