[all-commits] [llvm/llvm-project] cf1964: [flang] In AllocMemOp lowering, convert types for ...

R via All-commits all-commits at lists.llvm.org
Fri Mar 7 18:25:39 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf1964af5a461196904b663ede04c26555fcff69
      https://github.com/llvm/llvm-project/commit/cf1964af5a461196904b663ede04c26555fcff69
  Author: R <rqou at berkeley.edu>
  Date:   2025-03-08 (Sat, 08 Mar 2025)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/CodeGen/TypeConverter.cpp
    A flang/test/Fir/alloc-32.fir
    M flang/test/Fir/alloc.fir
    M flang/test/Integration/OpenMP/private-global.f90
    M flang/test/Lower/OpenMP/parallel-reduction-mixed.f90
    M flang/test/Lower/forall/character-1.f90

  Log Message:
  -----------
  [flang] In AllocMemOp lowering, convert types for calling malloc on 32-bit (#129308)

Although 32-bit targets are currently not officially supported, add a type conversion in the AllocMemOp lowering when calling the `malloc` function on 32-bit targets. This fixes a type mismatch, and this fix makes it easier to potentially support such targets in the future.

This involves making sure the `LLVMTypeConverter` has the necessary information to know the target bit width.

Co-authored-by: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list