Home
last modified time | relevance | path

Searched refs:PatternBenefit (Results 1 – 21 of 21) sorted by relevance

/external/llvm-project/mlir/include/mlir/IR/
DPatternMatch.h30 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/
DByteCode.h71 void updatePatternBenefit(unsigned patternIndex, PatternBenefit benefit);
83 std::vector<PatternBenefit> currentPatternBenefits;
99 PatternBenefit benefit) in MatchResult()
110 PatternBenefit benefit;
DPatternApplicator.cpp61 llvm::SmallDenseMap<const Pattern *, PatternBenefit> benefits; in applyCostModel()
DByteCode.cpp40 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/
DTransforms.h397 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/
DPatternMatch.cpp18 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/
DTransforms.cpp110 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()
DGeneralization.cpp67 PatternBenefit benefit = 1) in LinalgGeneralizationPattern()
104 PatternBenefit benefit = 1) in LinalgNamedOpGeneralizationPattern()
/external/llvm-project/mlir/include/mlir/Conversion/SPIRVToLLVM/
DConvertSPIRVToLLVM.h27 PatternBenefit benefit = 1)
/external/llvm-project/mlir/include/mlir/Rewrite/
DPatternApplicator.h34 using CostModel = function_ref<PatternBenefit(const Pattern &)>;
/external/llvm-project/mlir/include/mlir/Transforms/
DDialectConversion.h351 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/
DSPIRVLowering.h71 PatternBenefit benefit = 1)
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcontraction_fusion.cc38 : RewritePattern(PatternBenefit(1), MatchAnyOpTypeTag()) {} in FuseIntoContractionOp()
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DDecomposeCallGraphTypes.cpp42 PatternBenefit benefit = 1) in DecomposeCallGraphTypesOpConversionPattern()
/external/llvm-project/mlir/docs/
DPatternRewriter.md63 MyPattern(PatternBenefit benefit, MLIRContext *context)
66 MyPattern(PatternBenefit benefit)
187 MyPattern(PatternBenefit benefit, MLIRContext *context)
/external/llvm-project/mlir/include/mlir/Conversion/StandardToLLVM/
DConvertStandardToLLVM.h482 PatternBenefit benefit = 1);
569 PatternBenefit benefit = 1)
/external/llvm-project/mlir/include/mlir/Dialect/Vector/
DVectorTransforms.h214 PatternBenefit benefit = 1)
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_quantize_helper.h227 PatternBenefit benefit = 1)
/external/llvm-project/mlir/lib/Dialect/Linalg/IR/
DLinalgOps.cpp1645 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/
DDialectConversion.cpp1970 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/
DStandardToLLVM.cpp448 PatternBenefit benefit) in ConvertToLLVMPattern()