[MLIR] Add complex numbers to standard dialect
authorFrederik Gossen <frgossen@google.com>
Mon, 4 May 2020 12:19:04 +0000 (12:19 +0000)
committerFrederik Gossen <frgossen@google.com>
Mon, 4 May 2020 14:04:28 +0000 (14:04 +0000)
commit031265ad8a2e02f34dd947414bc7cba40342a1c5
tree4ca0d8291afc7a2e8d3d5c64b58e4e6cbdb00969
parentfce5457a141901097d0a57986eb5d3a023528059
[MLIR] Add complex numbers to standard dialect

Add `CreateComplexOp`, `ReOp`, and `ImOp` to the standard dialect.
This is the first step to support complex numbers.

Differential Revision: https://reviews.llvm.org/D79159
mlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
mlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
mlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir
mlir/test/IR/core-ops.mlir
mlir/test/IR/invalid-ops.mlir