[flang-commits] [flang] [flang]: This is to fix the HLFIR path for PPC Vector type intrinsics. (PR #66547)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Sep 18 02:43:59 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) ||
----------------
tblah wrote:

Why is a vector trivial? Vectors can be containers for other types and could be very large in memory

https://github.com/llvm/llvm-project/pull/66547


More information about the flang-commits mailing list