[all-commits] [llvm/llvm-project] 0ff5c3: [mlir] Use custom mlir::Complex type for non-float...
David Truby via All-commits
all-commits at lists.llvm.org
Wed May 6 05:51:52 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0ff5c32c28219ea7e75869678fb5fe3b1b4b0e0d
https://github.com/llvm/llvm-project/commit/0ff5c32c28219ea7e75869678fb5fe3b1b4b0e0d
Author: David Truby <david.truby at arm.com>
Date: 2026-05-06 (Wed, 06 May 2026)
Changed paths:
M mlir/include/mlir/Dialect/Complex/IR/ComplexAttributes.td
M mlir/include/mlir/ExecutionEngine/SparseTensor/File.h
M mlir/include/mlir/IR/BuiltinAttributes.h
M mlir/include/mlir/IR/BuiltinAttributes.td
A mlir/include/mlir/Support/Complex.h
M mlir/lib/AsmParser/AttributeParser.cpp
M mlir/lib/Conversion/ComplexToLLVM/ComplexToLLVM.cpp
M mlir/lib/IR/AsmPrinter.cpp
M mlir/lib/IR/BuiltinAttributes.cpp
M mlir/unittests/IR/AttributeTest.cpp
M mlir/unittests/Support/CMakeLists.txt
A mlir/unittests/Support/ComplexTest.cpp
Log Message:
-----------
[mlir] Use custom mlir::Complex type for non-float complex numbers (#191821)
Instantiating std::complex for types where std::is_floating_point<T> is
false is not allowed, and throws warnings when building with MSSTL. This
patch fixes those warnings by introducing an mlir::Complex type, which
is a typedef to std::complex when T satisfies is_floating_point, and a
custom complex type otherwise.
The std::complex implementation from libc++ has been used as a guide for
implementing the custom type.
Fixes #65255
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