s-watanabe314 1935f84856
[mlir][complex] Add complex-range option and select complex division … (#127010)
…algorithm

This patch adds the `complex-range` option and two calculation methods
for complex number division (algebraic method and Smith's algorithm) to
both the `ComplexToLLVM` and `ComplexToStandard` passes, allowing the
calculation method to be controlled by the option.

See also the discussion in the following discourse post.


https://discourse.llvm.org/t/question-and-proposal-regarding-complex-number-division-algorithm-in-the-complex-dialect/83772
2025-02-13 13:06:04 +01:00

21 lines
384 B
CMake

add_mlir_conversion_library(MLIRComplexToLLVM
ComplexToLLVM.cpp
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/ComplexToLLVM
DEPENDS
MLIRConversionPassIncGen
LINK_COMPONENTS
Core
LINK_LIBS PUBLIC
MLIRArithAttrToLLVMConversion
MLIRComplexDivisionConversion
MLIRComplexDialect
MLIRLLVMCommonConversion
MLIRLLVMDialect
MLIRTransforms
)