[flang-commits] [flang] [flang]: This is to fix the HLFIR path for PPC Vector type intrinsics. (PR #66547)
via flang-commits
flang-commits at lists.llvm.org
Mon Sep 18 09:07:32 PDT 2023
================
@@ -165,7 +170,7 @@ inline bool isa_char(mlir::Type t) { return t.isa<fir::CharacterType>(); }
/// Is `t` a trivial intrinsic type? CHARACTER is <em>excluded</em> because it
/// is a dependent type.
inline bool isa_trivial(mlir::Type t) {
- return isa_integer(t) || isa_real(t) || isa_complex(t) ||
+ return isa_integer(t) || isa_real(t) || isa_complex(t) || isa_vector(t) ||
----------------
jeanPerier wrote:
It makes some sense to me to treat it as "trivial" because it is not something that is operated in memory in FIR/HLFIR (vector types have their own operations and assignments), and I do not think this is something that should be wrapped in an hlfir.expr.
https://github.com/llvm/llvm-project/pull/66547
More information about the flang-commits
mailing list