[mlir][LLVMIR] Add support for translating from some simple LLVM instructions
authorMin-Yih Hsu <minyihh@uci.edu>
Thu, 21 Apr 2022 03:17:07 +0000 (20:17 -0700)
committerMin-Yih Hsu <minyihh@uci.edu>
Sat, 21 May 2022 04:45:50 +0000 (21:45 -0700)
commit3b91657c7bc1e1fcf3f8374f71c238f432050947
tree9a2601b70a906c0794474180213af34c10a1bcdf
parent55287840fe3f0d175ca649f0b665ccc0c184eb5d
[mlir][LLVMIR] Add support for translating from some simple LLVM instructions

Add support for translating from llvm::Select, llvm::FNeg, and llvm::Unreachable.
This patch also cleans up (NFC) the opcode map for simple instructions and
adds `// clang-format off/on` comments to prevent those lines from being
churned by clang-format between commits.

Differential Revision: https://reviews.llvm.org/D125817
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/test/Target/LLVMIR/Import/basic.ll