[all-commits] [llvm/llvm-project] 49ee56: [flang] Add fir.box_typecode operation
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Nov 14 01:51:32 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 49ee5634e7b00991a1315535eae4bf996e84c387
https://github.com/llvm/llvm-project/commit/49ee5634e7b00991a1315535eae4bf996e84c387
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-11-14 (Mon, 14 Nov 2022)
Changed paths:
M flang/include/flang/Optimizer/Dialect/FIROps.td
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
A flang/test/Fir/box-typecode.fir
M flang/test/Fir/fir-ops.fir
Log Message:
-----------
[flang] Add fir.box_typecode operation
`fir.box_typecode` operation allows to retrieve the type code
from a boxed value. This will be used in the `fir.select_type` conversion
to if-then-else ladder for type guard statement with intrinsic type spec
instead of using a runtime call.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D137829
More information about the All-commits
mailing list