mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 17:21:10 +00:00
[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
This commit is contained in:
parent
14e64cb8d5
commit
9faaed3966
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user