[llvm] [IR] Add intrinsics to represent complex multiply and divide operations (PR #68742)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 01:15:59 PST 2024
================
@@ -18448,6 +18448,177 @@ will be on any later loop iteration.
This intrinsic will only return 0 if the input count is also 0. A non-zero input
count will produce a non-zero result.
+Complex Intrinsics
+------------------
+
+Complex numbers are currently represented, for intrinsic purposes, as vectors of
+floating-point numbers. A scalar complex type is represented using the type
+``<2 x floatty>``, with index ``0`` corresponding to the real part of the number
----------------
arsenm wrote:
Should this be a struct instead?
https://github.com/llvm/llvm-project/pull/68742
More information about the llvm-commits
mailing list