Home
last modified time | relevance | path

Searched refs:hasTrait (Results 1 – 25 of 71) sorted by relevance

123

/external/llvm-project/mlir/include/mlir/Interfaces/
DControlFlowInterfaces.h101 static_assert(ConcreteType::template hasTrait<IsTerminator>(), in verifyTrait()
103 static_assert(ConcreteType::template hasTrait<ZeroResult>(), in verifyTrait()
105 static_assert(ConcreteType::template hasTrait<ZeroSuccessor>(), in verifyTrait()
/external/llvm-project/mlir/lib/Transforms/
DSymbolDCE.cpp37 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) { in runOnOperation()
61 if (!nestedSymbolTable->hasTrait<OpTrait::SymbolTable>()) in runOnOperation()
106 if (op->hasTrait<OpTrait::SymbolTable>()) { in computeLiveness()
DLoopInvariantCodeMotion.cpp55 if (!op->hasTrait<OpTrait::HasRecursiveSideEffects>()) in canBeHoisted()
61 } else if (!op->hasTrait<OpTrait::HasRecursiveSideEffects>()) { in canBeHoisted()
DBufferOptimizations.cpp66 if (use->hasTrait<OpTrait::ReturnLike>() && in leavesAllocationScope()
83 if (parentOp->hasTrait<OpTrait::AutomaticAllocationScope>() && in hasAllocationScope()
/external/llvm-project/mlir/lib/IR/
DSymbolTable.cpp63 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) in collectValidReferencesFor()
96 if (!op.hasTrait<OpTrait::SymbolTable>()) { in walkSymbolTable()
112 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>() && in SymbolTable()
236 while (!from->hasTrait<OpTrait::SymbolTable>()) { in getNearestSymbolTable()
254 bool isSymbolTable = op->hasTrait<OpTrait::SymbolTable>(); in walkSymbolTables()
281 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>()); in lookupSymbolIn()
305 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>()); in lookupSymbolInImpl()
319 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) in lookupSymbolInImpl()
326 if (!symbolTableOp || !symbolTableOp->hasTrait<OpTrait::SymbolTable>()) in lookupSymbolInImpl()
532 if (!from->hasTrait<OpTrait::SymbolTable>()) in walkSymbolUses()
[all …]
DMLIRContext.cpp640 detail::InterfaceMap &&interfaceMap, HasTraitFn hasTrait) { in insert() argument
644 hasTrait); in insert()
662 detail::InterfaceMap &&interfaceMap, HasTraitFn hasTrait) in AbstractOperation() argument
667 hasTraitFn(hasTrait), parseAssemblyFn(parseAssembly), in AbstractOperation()
/external/llvm-project/mlir/include/mlir/IR/
DOpDefinition.h882 typename std::enable_if_t<OpT::template hasTrait<OneRegion>(), T>;
1033 static_assert(ConcreteType::template hasTrait<OneResult>(), in verifyTrait()
1035 static_assert(ConcreteType::template hasTrait<OneOperand>(), in verifyTrait()
1037 static_assert(ConcreteType::template hasTrait<SameOperandsAndResultType>(), in verifyTrait()
1055 static_assert(ConcreteType::template hasTrait<OneResult>(), in verifyTrait()
1057 static_assert(ConcreteType::template hasTrait<OneOperand>(), in verifyTrait()
1059 static_assert(ConcreteType::template hasTrait<SameOperandsAndResultType>(), in verifyTrait()
1110 static_assert(ConcreteType::template hasTrait<OneResult>(), in verifyTrait()
1112 static_assert(ConcreteType::template hasTrait<ZeroOperands>(), in verifyTrait()
1149 static_assert(!ConcreteType::template hasTrait<ZeroRegion>(), in verifyTrait()
[all …]
DMatchers.h53 bool match(Operation *op) { return op->hasTrait<OpTrait::ConstantLike>(); } in match()
68 if (!op->hasTrait<OpTrait::ConstantLike>()) in match()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Doptimize_functional_ops.cc62 !op->hasTrait<OpTrait::IsTerminator>()) in IsSideEffectFree()
126 if (op_to_inline.hasTrait<OpTrait::IsTerminator>()) { in matchAndRewrite()
Dpost_quantize.cc139 op->user_begin()->hasTrait<OpTrait::IsTerminator>()) in matchAndRewrite()
159 if (op.getOperation()->template hasTrait<OpTrait::IsTerminator>()) { in matchAndRewrite()
Ddefault_quant_params.cc112 if (op->hasTrait<OpTrait::IsTerminator>() || in runOnFunction()
113 op->hasTrait<OpTrait::quant::NoQuantizableResult>() || in runOnFunction()
/external/llvm-project/mlir/include/mlir/Transforms/
DFoldUtils.h80 typename std::enable_if<OpTy::template hasTrait<OpTrait::OneResult>(),
90 typename std::enable_if<OpTy::template hasTrait<OpTrait::ZeroResult>(),
/external/llvm-project/mlir/lib/Dialect/Async/Transforms/
DAsyncRefCounting.cpp193 if (lastUser->hasTrait<OpTrait::ReturnLike>()) in addAutomaticRefCounting()
197 if (lastUser->hasTrait<OpTrait::IsTerminator>()) in addAutomaticRefCounting()
/external/llvm-project/mlir/lib/Dialect/Affine/Transforms/
DAffineParallelize.cpp52 op != nullptr && !op->hasTrait<OpTrait::AffineScope>(); in runOnFunction()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dtranslate_tf_dialect_op.cc37 if (!block.back().hasTrait<OpTrait::IsTerminator>()) return nullptr; in ExtractOnlyOp()
Dexport_tf_dialect_op.cc141 if (inst->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>()) { in GetAttributesToIgnore()
148 if (inst->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) { in GetAttributesToIgnore()
/external/llvm-project/mlir/lib/Interfaces/
DSideEffectInterfaces.cpp48 bool hasRecursiveEffects = op->hasTrait<OpTrait::HasRecursiveSideEffects>(); in wouldOpBeTriviallyDeadImpl()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/
DChecker.h375 if (!ETraits->hasTrait(*I, in _checkPointerEscape()
377 !ETraits->hasTrait(*I, in _checkPointerEscape()
415 if (ETraits->hasTrait(*I, in _checkConstPointerEscape()
417 !ETraits->hasTrait(*I, in _checkConstPointerEscape()
/external/clang/include/clang/StaticAnalyzer/Core/
DChecker.h364 if (!ETraits->hasTrait(*I, in _checkPointerEscape()
366 !ETraits->hasTrait(*I, in _checkPointerEscape()
404 if (ETraits->hasTrait(*I, in _checkConstPointerEscape()
406 !ETraits->hasTrait(*I, in _checkConstPointerEscape()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dlayout_optimization.cc195 if (!op->hasTrait<OpTrait::TF::LayoutAgnostic>()) return; in MoveTransposeBefore()
240 if (op->hasTrait<OpTrait::ResultsBroadcastableShape>()) { in MoveTransposeBefore()
304 bool layout_agnostic = op->hasTrait<OpTrait::TF::LayoutAgnostic>(); in MoveTransposeAfter()
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DFuncBufferize.cpp63 if (op->hasTrait<OpTrait::ReturnLike>()) in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/hlo/lib/Dialect/mhlo/transforms/
Dsink_constants_to_control_flow.cc68 if (!op || !op->hasTrait<OpTrait::ConstantLike>()) return; in SinkToRegion()
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/
DElementwiseToLinalg.cpp19 if (!op->hasTrait<OpTrait::ElementwiseMappable>()) in isElementwiseMappableOpOnRankedTensors()
/external/llvm-project/mlir/lib/Analysis/
DBufferAliasAnalysis.cpp106 if (operation.hasTrait<OpTrait::ReturnLike>()) in build()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops.cc168 if (op->hasTrait<OpTrait::TF::CannotDuplicate>()) return false; in CanDuplicate()
194 if (op->hasTrait<OpTrait::IsTerminator>()) return false; in CanHaveSideEffects()

123