Home
last modified time | relevance | path

Searched refs:foldTrait (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/mlir/docs/
DTraits.md59 Operation traits may also provide a `foldTrait` hook that is called when
71 /// Override the 'foldTrait' hook to support trait based folding on the
73 static OpFoldResult foldTrait(Operation *op, ArrayRef<Attribute> operands) { {
87 /// Override the 'foldTrait' hook to support trait based folding on the
89 static LogicalResult foldTrait(Operation *op, ArrayRef<Attribute> operands,
97 `foldTrait` hook out-of-line as a free function when possible to avoid
/external/llvm-project/mlir/include/mlir/IR/
DOpDefinition.h1044 static OpFoldResult foldTrait(Operation *op, ArrayRef<Attribute> operands) { in foldTrait() function
1066 static OpFoldResult foldTrait(Operation *op, ArrayRef<Attribute> operands) { in foldTrait() function
1360 using has_single_result_fold_trait = decltype(T::foldTrait(
1368 decltype(T::foldTrait(std::declval<Operation *>(),
1386 foldTrait(Operation *op, ArrayRef<Attribute> operands, in foldTrait() function
1396 if (OpFoldResult result = Trait::foldTrait(op, operands)) { in foldTrait()
1407 foldTrait(Operation *op, ArrayRef<Attribute> operands, in foldTrait() function
1411 return results.empty() ? Trait::foldTrait(op, operands, results) : failure(); in foldTrait()
1422 (anyFolded |= succeeded(foldTrait<Ts>(op, operands, results)), 0)...}; in foldTraitsImpl()