[mlir][llvm] Modernize LLVM instruction and global import (NFC).
authorTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 9 Dec 2022 10:31:53 +0000 (11:31 +0100)
committerTobias Gysi <tobias.gysi@nextsilicon.com>
Fri, 9 Dec 2022 10:48:29 +0000 (11:48 +0100)
commitfa9ac61fff1a52e63a4adf14aad936a8de04b6b7
tree326014cb13eb0f04254fb5644fe837bcc2158267
parentb1341191372a1208720ae23da8cca7749892da32
[mlir][llvm] Modernize LLVM instruction and global import (NFC).

Modernize the import of LLVMIR instructions and global variables.
Use longer variable names, factor out code used to import call or
invoke instructions, use the CPP builders for importing branch
instructions, etc. The revision is a preparation for a follow up
revision that moves the import code to implement improved error
handling.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D139404
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp