[PATCH] D78788: [MLIR] Modify Analysis op conversion mode to emit errors for all unlegalizable operations.

Lucy Fox via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 21:42:37 PDT 2020


lucyrfox created this revision.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini.
Herald added a project: LLVM.

There are three op conversion modes: Partial, Full, and Analysis. Presently, the Analysis mode adds all legalizable operations to a set without applying any legalizations. This change modifies the Analysis mode to instead perform a partial legalization, tracking along the way all ops that are not legalizible (i.e. ops that would cause a full conversion to fail). The conversion framework emits an error for each of these ops and adds them to a set.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78788

Files:
  mlir/lib/Transforms/DialectConversion.cpp
  mlir/test/Transforms/test-legalizer-analysis.mlir
  mlir/test/lib/Dialect/Test/TestPatterns.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78788.259800.patch
Type: text/x-patch
Size: 7655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200424/6054ea76/attachment.bin>


More information about the llvm-commits mailing list