[mlir][llvm] Add poison constant.
authorThéo Degioanni <theo.degioanni@nextsilicon.com>
Thu, 23 Mar 2023 06:58:37 +0000 (07:58 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Thu, 23 Mar 2023 06:58:56 +0000 (07:58 +0100)
commita35f9c6e0813c92e5efb0aac3e2681c7e1651f7b
treeda0fd0cd4386edece31c8ccff1432823f8302b82
parentf9f4767af9f3d89792d67ae8c5f65913ff263b89
[mlir][llvm] Add poison constant.

This patch introduces the poison constant from LLVM in the LLVM IR dialect. It also adds import and export support for it, along with roundtrip tests.

Reviewed By: gysit

Differential Revision: https://reviews.llvm.org/D146631
mlir/docs/Dialects/LLVM.md
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/lib/Target/LLVMIR/ModuleImport.cpp
mlir/test/Dialect/LLVMIR/roundtrip.mlir
mlir/test/Target/LLVMIR/Import/instructions.ll
mlir/test/Target/LLVMIR/llvmir.mlir