[flang-commits] [flang] 9faaed3 - [flang][NFC] Fix fir::ConvertOp description
via flang-commits
flang-commits at lists.llvm.org
Mon Oct 10 18:26:11 PDT 2022
Author: Peixin-Qiao
Date: 2022-10-11T09:25:41+08:00
New Revision: 9faaed39665f1129c4f81ec06d6f368bdca03553
URL: https://github.com/llvm/llvm-project/commit/9faaed39665f1129c4f81ec06d6f368bdca03553
DIFF: https://github.com/llvm/llvm-project/commit/9faaed39665f1129c4f81ec06d6f368bdca03553.diff
LOG: [flang][NFC] Fix fir::ConvertOp description
According to the support of fir::ConvertOp conversion in CodeGen.cpp,
it also supports integer to pointer conversion and pointer to integer
conversion. The entity can be array, and the conversion type can be
pointer to array.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D135571
Added:
Modified:
flang/include/flang/Optimizer/Dialect/FIROps.td
Removed:
################################################################################
diff --git a/flang/include/flang/Optimizer/Dialect/FIROps.td b/flang/include/flang/Optimizer/Dialect/FIROps.td
index 60d34fdf20722..611709c498e25 100644
--- a/flang/include/flang/Optimizer/Dialect/FIROps.td
+++ b/flang/include/flang/Optimizer/Dialect/FIROps.td
@@ -2533,12 +2533,13 @@ def fir_AddrOfOp : fir_OneResultOp<"address_of", [NoSideEffect]> {
}
def fir_ConvertOp : fir_OneResultOp<"convert", [NoSideEffect]> {
- let summary = "encapsulates all Fortran scalar type conversions";
+ let summary = "encapsulates all Fortran entity type conversions";
let description = [{
Generalized type conversion. Convert the ssa value from type T to type U.
Not all pairs of types have conversions. When types T and U are the same
- type, this instruction is a NOP and may be folded away.
+ type, this instruction is a NOP and may be folded away. This also supports
+ integer to pointer conversion and pointer to integer conversion.
```mlir
%v = ... : i64
More information about the flang-commits
mailing list