forked from OSchip/llvm-project
b2ab375d1f
Previous type model in the LLVM dialect did not support identified structure types properly and therefore could use stateless translations implemented as free functions. The new model supports identified structs and must keep track of the identified structure types present in the target context (LLVMContext or MLIRContext) to avoid creating duplicate structs due to LLVM's type auto-renaming. Expose the stateful type translation classes and use them during translation, storing the state as part of ModuleTranslation. Drop the test type translation mechanism that is no longer necessary and update the tests to exercise type translation as part of the main translation flow. Update the code in vector-to-LLVM dialect conversion that relied on stateless translation to use the new class in a stateless manner. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D85297 |
||
---|---|---|
.. | ||
avx512.mlir | ||
import.ll | ||
llvmir-debug.mlir | ||
llvmir-intrinsics.mlir | ||
llvmir-invalid.mlir | ||
llvmir-types.mlir | ||
llvmir.mlir | ||
nvvmir.mlir | ||
openmp-llvm.mlir | ||
rocdl.mlir | ||
vector-to-llvm-ir.mlir |