/external/llvm-project/mlir/include/mlir/IR/ |
D | PatternMatch.h | 30 class PatternBenefit { 34 PatternBenefit() : representation(ImpossibleToMatchSentinel) {} in PatternBenefit() function 35 PatternBenefit(unsigned benefit); 36 PatternBenefit(const PatternBenefit &) = default; 37 PatternBenefit &operator=(const PatternBenefit &) = default; 39 static PatternBenefit impossibleToMatch() { return PatternBenefit(); } in impossibleToMatch() 46 bool operator==(const PatternBenefit &rhs) const { 49 bool operator!=(const PatternBenefit &rhs) const { return !(*this == rhs); } 50 bool operator<(const PatternBenefit &rhs) const { 53 bool operator>(const PatternBenefit &rhs) const { return rhs < *this; } [all …]
|
/external/llvm-project/mlir/lib/Rewrite/ |
D | ByteCode.h | 71 void updatePatternBenefit(unsigned patternIndex, PatternBenefit benefit); 83 std::vector<PatternBenefit> currentPatternBenefits; 99 PatternBenefit benefit) in MatchResult() 110 PatternBenefit benefit;
|
D | PatternApplicator.cpp | 61 llvm::SmallDenseMap<const Pattern *, PatternBenefit> benefits; in applyCostModel()
|
D | ByteCode.cpp | 40 PatternBenefit benefit = matchOp.benefit(); in create() 59 PatternBenefit benefit) { in updatePatternBenefit() 717 ArrayRef<PatternBenefit> currentPatternBenefits, in ByteCodeExecutor() 837 ArrayRef<PatternBenefit> currentPatternBenefits; 1120 PatternBenefit benefit = currentPatternBenefits[patternIndex]; in execute()
|
/external/llvm-project/mlir/include/mlir/Dialect/Linalg/Transforms/ |
D | Transforms.h | 397 PatternBenefit benefit = 1); 402 PatternBenefit benefit = 1); 418 PatternBenefit benefit = 1) 452 PatternBenefit benefit = 1); 484 PatternBenefit benefit = 1) 500 PatternBenefit benefit = 1); 516 PatternBenefit benefit = 1) 531 PatternBenefit benefit = 1); 546 PatternBenefit benefit = 1) 560 PatternBenefit benefit = 1); [all …]
|
/external/llvm-project/mlir/lib/IR/ |
D | PatternMatch.cpp | 18 PatternBenefit::PatternBenefit(unsigned benefit) : representation(benefit) { in PatternBenefit() function in PatternBenefit 23 unsigned short PatternBenefit::getBenefit() const { in getBenefit() 32 Pattern::Pattern(StringRef rootName, PatternBenefit benefit, in Pattern() 35 Pattern::Pattern(PatternBenefit benefit, MatchAnyOpTypeTag tag) in Pattern() 38 PatternBenefit benefit, MLIRContext *context) in Pattern() 46 Pattern::Pattern(ArrayRef<StringRef> generatedNames, PatternBenefit benefit, in Pattern()
|
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
D | Transforms.cpp | 110 LinalgMarker marker, PatternBenefit benefit) in LinalgBaseTilingPattern() 115 LinalgTilingOptions options, LinalgMarker marker, PatternBenefit benefit) in LinalgBaseTilingPattern() 157 LinalgMarker originalOpMarker, PatternBenefit benefit) in LinalgBaseTileAndFusePattern() 245 PatternBenefit benefit) in LinalgBaseInterchangePattern() 271 LinalgMarker marker, PatternBenefit benefit) in LinalgBasePromotionPattern() 299 PatternBenefit benefit) in LinalgBaseVectorizationPattern()
|
D | Generalization.cpp | 67 PatternBenefit benefit = 1) in LinalgGeneralizationPattern() 104 PatternBenefit benefit = 1) in LinalgNamedOpGeneralizationPattern()
|
/external/llvm-project/mlir/include/mlir/Conversion/SPIRVToLLVM/ |
D | ConvertSPIRVToLLVM.h | 27 PatternBenefit benefit = 1)
|
/external/llvm-project/mlir/include/mlir/Rewrite/ |
D | PatternApplicator.h | 34 using CostModel = function_ref<PatternBenefit(const Pattern &)>;
|
/external/llvm-project/mlir/include/mlir/Transforms/ |
D | DialectConversion.h | 351 ConversionPattern(StringRef rootName, PatternBenefit benefit, in ConversionPattern() 359 ConversionPattern(PatternBenefit benefit, TypeConverter &typeConverter, in ConversionPattern() 376 OpConversionPattern(MLIRContext *context, PatternBenefit benefit = 1) 379 PatternBenefit benefit = 1)
|
/external/llvm-project/mlir/include/mlir/Dialect/SPIRV/ |
D | SPIRVLowering.h | 71 PatternBenefit benefit = 1)
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/ |
D | contraction_fusion.cc | 38 : RewritePattern(PatternBenefit(1), MatchAnyOpTypeTag()) {} in FuseIntoContractionOp()
|
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/ |
D | DecomposeCallGraphTypes.cpp | 42 PatternBenefit benefit = 1) in DecomposeCallGraphTypesOpConversionPattern()
|
/external/llvm-project/mlir/docs/ |
D | PatternRewriter.md | 63 MyPattern(PatternBenefit benefit, MLIRContext *context) 66 MyPattern(PatternBenefit benefit) 187 MyPattern(PatternBenefit benefit, MLIRContext *context)
|
/external/llvm-project/mlir/include/mlir/Conversion/StandardToLLVM/ |
D | ConvertStandardToLLVM.h | 482 PatternBenefit benefit = 1); 569 PatternBenefit benefit = 1)
|
/external/llvm-project/mlir/include/mlir/Dialect/Vector/ |
D | VectorTransforms.h | 214 PatternBenefit benefit = 1)
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | prepare_quantize_helper.h | 227 PatternBenefit benefit = 1)
|
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/ |
D | LinalgOps.cpp | 1645 EraseDeadLinalgOp(PatternBenefit benefit = 1) in EraseDeadLinalgOp() 1670 FoldTensorCastOp(PatternBenefit benefit = 1) in FoldTensorCastOp() 1726 DeduplicateInputs(PatternBenefit benefit = 1) in DeduplicateInputs()
|
/external/llvm-project/mlir/lib/Transforms/Utils/ |
D | DialectConversion.cpp | 1970 return PatternBenefit::impossibleToMatch(); in computeLegalizationGraphBenefit() 1973 return PatternBenefit(std::distance(it, orderedPatternList.end())); in computeLegalizationGraphBenefit() 2043 return llvm::array_pod_sort_comparator<PatternBenefit>( in applyCostModelToPatterns()
|
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/ |
D | StandardToLLVM.cpp | 448 PatternBenefit benefit) in ConvertToLLVMPattern()
|