[Mlir-commits] [mlir] [MLIR][XeVM] Remove xevm to llvm from convert to llvm (PR #175672)
Igor Zamyatin
llvmlistbot at llvm.org
Thu Jan 15 11:09:04 PST 2026
================
@@ -877,28 +976,17 @@ struct ConvertXeVMToLLVMPass
if (failed(applyPartialConversion(getOperation(), target,
std::move(patterns))))
signalPassFailure();
- }
-};
-} // namespace
-
-//===----------------------------------------------------------------------===//
-// ConvertToLLVMPatternInterface implementation
-//===----------------------------------------------------------------------===//
-namespace {
-/// Implement the interface to convert XeVM to LLVM.
-struct XeVMToLLVMDialectInterface : public ConvertToLLVMPatternInterface {
- using ConvertToLLVMPatternInterface::ConvertToLLVMPatternInterface;
- void loadDependentDialects(MLIRContext *context) const final {
- context->loadDialect<LLVM::LLVMDialect>();
- }
-
- /// Hook for derived dialect interface to provide conversion patterns
- /// and mark dialect legal for the conversion target.
- void populateConvertToLLVMConversionPatterns(
- ConversionTarget &target, LLVMTypeConverter &typeConverter,
- RewritePatternSet &patterns) const final {
- populateXeVMToLLVMConversionPatterns(target, patterns);
+ // Apply in-dialect lowerings to handle illegal vectors
+ {
+ RewritePatternSet vectorPatterns(&getContext());
+ vectorPatterns.add<HandleVectorExtractPattern>(&getContext());
+ GreedyRewriteConfig config{};
+ config.enableFolding(false);
----------------
Garra1980 wrote:
can you please add some comment why it is needed
https://github.com/llvm/llvm-project/pull/175672
More information about the Mlir-commits
mailing list