[flang-commits] [PATCH] D113563: [fir] Add !fir.alloca conversion

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Nov 10 05:18:15 PST 2021


rovka created this revision.
rovka added reviewers: clementval, awarzynski, jeanPerier, schweitz, kiranchandramohan, AlexisPerry.
rovka added a project: Flang.
Herald added subscribers: mehdi_amini, jdoerfert.
rovka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Convert !fir.alloca into !llvm.alloca.

This also contains a fix for verifyInType in FIROps.cpp, to make sure we
don't error out on a !fir.ptr<!fir.array<?xN>> (more context here:
https://github.com/flang-compiler/f18-llvm-project/pull/864).

This is part of the upstreaming effort from fir-dev.

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113563

Files:
  flang/lib/Optimizer/CodeGen/CodeGen.cpp
  flang/lib/Optimizer/CodeGen/TypeConverter.h
  flang/lib/Optimizer/Dialect/FIROps.cpp
  flang/test/Fir/convert-to-llvm.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113563.386126.patch
Type: text/x-patch
Size: 13466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211110/a4c0ca3c/attachment-0001.bin>


More information about the flang-commits mailing list