[flang-commits] [PATCH] D113560: [fir] Add !fir.char type conversion
Diana Picus via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Nov 10 04:40:24 PST 2021
rovka added inline comments.
================
Comment at: flang/lib/Optimizer/CodeGen/TypeConverter.h:159
+
+ // fir.char<n> --> llvm<"ix*"> where ix is scaled by kind mapping
+ mlir::Type convertCharType(fir::CharacterType charTy) {
----------------
awarzynski wrote:
> [nit] Shouldn't this be:
> * `!fir.char<n, 12>` --> `!llvm.array<12 x ix*>`
> * `!fir.char<n, ?>` --> `ix*`
> instead?
Actually, now that you mention it, I'm noticing we're doing !fir.char<n, ?> -> ix, not ix*. Are we supposed to return LLVMPointerType::get(iTy) instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113560/new/
https://reviews.llvm.org/D113560
More information about the flang-commits
mailing list