forked from OSchip/llvm-project
c9b0540b9c
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 |
||
---|---|---|
.. | ||
Dialects | ||
Tutorials | ||
includes | ||
Canonicalization.md | ||
ConversionToLLVMDialect.md | ||
GenericDAGRewriter.md | ||
LangRef.md | ||
MLIRForGraphAlgorithms.md | ||
OpDefinitions.md | ||
Passes.md | ||
Quantization.md | ||
QuickstartRewrites.md | ||
Rationale.md | ||
RationaleSimplifiedPolyhedralForm.md | ||
UsageOfConst.md | ||
WritingAPass.md |