
…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
21 lines
384 B
CMake
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
|
|
)
|