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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Address review comments and rebase.
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp | ||
---|---|---|
927–928 | Unfortunately, the iterator range callInst->args() does not convert to an array reference due to the conversion from a use to a value. I can inline convertValues into append_range though. It does not avoid the extra copy but at least there are not two argument vectors side-by-side. |
Nit: add braces if the body has more than one line.