llvm-project/mlir/g3doc
Smit Hinsu c9b0540b9c Make identity cast operations with the same operand and result types legal
Instead, fold such operations. This way callers don't need to conditionally create cast operations depending on if a value already has the target type.

    Also, introduce areCastCompatible to allow cast users to verify that the generated op will be valid before creating the operation.

    TESTED with unit tests

--

PiperOrigin-RevId: 245606133
2019-05-06 08:19:37 -07:00
..
Dialects Change the asmprinter to use pretty syntax for dialect types when it can, 2019-04-07 18:21:13 -07:00
Tutorials Add LLVM Conversion Tutorial 2019-05-06 08:18:47 -07:00
includes MLIR graph rewrite using pattern quickstart doc. 2019-03-29 16:14:35 -07:00
Canonicalization.md Replace usages of instruction with operation in the g3 documents. 2019-03-29 17:56:57 -07:00
ConversionToLLVMDialect.md Tidy up the links in the documents and fix any broken ones. 2019-04-07 18:19:46 -07:00
GenericDAGRewriter.md Replace usages of instruction with operation in the g3 documents. 2019-03-29 17:56:57 -07:00
LangRef.md Make identity cast operations with the same operand and result types legal 2019-05-06 08:19:37 -07:00
MLIRForGraphAlgorithms.md Update link 2019-03-29 16:06:14 -07:00
OpDefinitions.md Tidy up the links in the documents and fix any broken ones. 2019-04-07 18:19:46 -07:00
Passes.md Tidy up the links in the documents and fix any broken ones. 2019-04-07 18:19:46 -07:00
Quantization.md Bring naming of some quant ops in alignment with docs and introduce a few necessary additional ops (stats_ref, stats, coupled_ref). 2019-04-18 11:49:14 -07:00
QuickstartRewrites.md Update custom rewrite example, which seems to have drifted a bit from the implementation. 2019-04-11 10:53:01 -07:00
Rationale.md Update the Rationale's description about signed/unsigned and int/fp types to be more specific about the fact that this only refers to std operations. Move these sections closer together. 2019-04-18 11:47:18 -07:00
RationaleSimplifiedPolyhedralForm.md NFC: Rename the 'for' operation in the AffineOps dialect to 'affine.for' and set the namespace of the AffineOps dialect to 'affine'. 2019-03-29 17:39:03 -07:00
UsageOfConst.md Replace usages of instruction with operation in the g3 documents. 2019-03-29 17:56:57 -07:00
WritingAPass.md Tidy up the links in the documents and fix any broken ones. 2019-04-07 18:19:46 -07:00