Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DTypeSupport.h51 HasTraitFn &&hasTrait, TypeID typeID) { in get() argument
52 return AbstractType(dialect, std::move(interfaceMap), std::move(hasTrait), in get()
74 bool hasTrait() const { in hasTrait() function
79 bool hasTrait(TypeID traitID) const { return hasTraitFn(traitID); } in hasTrait() function
86 HasTraitFn &&hasTrait, TypeID typeID) in AbstractType() argument
88 hasTraitFn(std::move(hasTrait)), typeID(typeID) {} in AbstractType()
H A DAttributeSupport.h54 HasTraitFn &&hasTrait, TypeID typeID) { in get() argument
56 std::move(hasTrait), typeID); in get()
78 bool hasTrait() const { in hasTrait() function
83 bool hasTrait(TypeID traitID) const { return hasTraitFn(traitID); } in hasTrait() function
90 HasTraitFn &&hasTrait, TypeID typeID) in AbstractAttribute() argument
92 hasTraitFn(std::move(hasTrait)), typeID(typeID) {} in AbstractAttribute()
H A DOpDefinition.h823 if (!ConcreteType::template hasTrait<NoTerminator>()) { in verifyTrait()
1107 static_assert(ConcreteType::template hasTrait<OneResult>(),
1109 static_assert(ConcreteType::template hasTrait<OneOperand>(),
1130 static_assert(ConcreteType::template hasTrait<OneResult>(),
1186 static_assert(ConcreteType::template hasTrait<OneResult>(),
1380 ConcreteType::template hasTrait<Elementwise>(),
1400 ConcreteType::template hasTrait<Elementwise>(),
1441 ConcreteType::template hasTrait<Elementwise>(),
1465 static bool hasTrait(TypeID traitID) {
1507 assert(op->hasTrait<OpTrait::OneResult>() &&
[all …]
H A DStorageUniquerSupport.h74 bool hasTrait(TypeID traitID) { in hasTrait() function
84 inline bool hasTrait(TypeID traitID) { in hasTrait() function
125 return storage_user_base_impl::hasTrait<Traits...>(id); in getHasTraitFn()
H A DOperationSupport.h145 bool hasTrait() const { in hasTrait() function
146 return hasTrait(TypeID::get<Trait>()); in hasTrait()
148 bool hasTrait(TypeID traitID) const { in hasTrait() function
279 detail::InterfaceMap &&interfaceMap, HasTraitFn &&hasTrait,
353 bool hasTrait() const { in hasTrait() function
354 return hasTrait(TypeID::get<Trait>()); in hasTrait()
358 bool hasTrait(TypeID traitID) const { return impl->hasTraitFn(traitID); } in hasTrait() function
H A DImplicitLocOpBuilder.h80 typename std::enable_if<OpTy::template hasTrait<mlir::OpTrait::OneResult>(),
88 typename std::enable_if<OpTy::template hasTrait<mlir::OpTrait::ZeroResults>(),
H A DTypes.h179 bool hasTrait() { in hasTrait() function
180 return getAbstractType().hasTrait<Trait>(); in hasTrait()
/llvm-project-15.0.7/mlir/lib/IR/
H A DSubElementInterfaces.cpp37 if (LLVM_UNLIKELY(attr.hasTrait<AttributeTrait::IsMutable>())) { in walkSubElementsImpl()
58 if (LLVM_UNLIKELY(type.hasTrait<TypeTrait::IsMutable>())) { in walkSubElementsImpl()
98 return attr.hasTrait<AttributeTrait::IsMutable>(); in isMutable()
101 return type.hasTrait<TypeTrait::IsMutable>(); in isMutable()
H A DSymbolTable.cpp59 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) in collectValidReferencesFor()
91 if (!op.hasTrait<OpTrait::SymbolTable>()) { in walkSymbolTable()
119 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>() && in SymbolTable()
184 std::prev(body.end())->hasTrait<OpTrait::IsTerminator>()) in insert()
269 while (!from->hasTrait<OpTrait::SymbolTable>()) { in getNearestSymbolTable()
287 bool isSymbolTable = op->hasTrait<OpTrait::SymbolTable>(); in walkSymbolTables()
314 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>()); in lookupSymbolIn()
341 assert(symbolTableOp->hasTrait<OpTrait::SymbolTable>()); in lookupSymbolInImpl()
355 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) in lookupSymbolInImpl()
581 if (!from->hasTrait<OpTrait::SymbolTable>()) in walkSymbolUses()
[all …]
H A DOperation.cpp66 operands.empty() ? !name.hasTrait<OpTrait::ZeroOperands>() : true; in create()
1088 assert(isolatedOp->hasTrait<OpTrait::IsIsolatedFromAbove>() && in verifyIsIsolatedFromAbove()
1118 !op.hasTrait<OpTrait::IsIsolatedFromAbove>()) { in verifyIsIsolatedFromAbove()
1130 return op->hasTrait<Elementwise>() && op->hasTrait<Scalarizable>() && in hasElementwiseMappableTraits()
1131 op->hasTrait<Vectorizable>() && op->hasTrait<Tensorizable>(); in hasElementwiseMappableTraits()
1196 if (!block.empty() && block.back().hasTrait<OpTrait::IsTerminator>()) in ensureRegionTerminator()
H A DVerifier.cpp138 op.hasTrait<OpTrait::IsIsolatedFromAbove>()) { in verifyBlock()
356 if (op.hasTrait<OpTrait::IsIsolatedFromAbove>()) in verifyDominanceOfContainedRegions()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DSideEffectUtils.cpp21 if (!op->hasTrait<OpTrait::HasRecursiveSideEffects>()) in isSideEffectFree()
23 } else if (!op->hasTrait<OpTrait::HasRecursiveSideEffects>()) { in isSideEffectFree()
/llvm-project-15.0.7/mlir/lib/Transforms/
H A DSymbolDCE.cpp38 if (!symbolTableOp->hasTrait<OpTrait::SymbolTable>()) { in runOnOperation()
62 if (!nestedSymbolTable->hasTrait<OpTrait::SymbolTable>()) in runOnOperation()
108 if (op->hasTrait<OpTrait::SymbolTable>()) { in computeLiveness()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DControlFlowInterfaces.h267 static_assert(ConcreteType::template hasTrait<IsTerminator>(), in verifyTrait()
269 static_assert(ConcreteType::template hasTrait<ZeroResults>(), in verifyTrait()
271 static_assert(ConcreteType::template hasTrait<ZeroSuccessors>(), in verifyTrait()
H A DInferTypeOpInterface.h280 ConcreteType::template hasTrait<InferShapedTypeOpInterface::Trait>(), in inferReturnTypes()
283 ConcreteType::template hasTrait<InferTypeOpInterface::Trait>(), in inferReturnTypes()
H A DControlFlowInterfaces.td203 static_assert(!ConcreteOp::template hasTrait<OpTrait::ZeroRegions>(),
259 static_assert(ConcreteOp::template hasTrait<OpTrait::IsTerminator>(),
261 static_assert(ConcreteOp::template hasTrait<OpTrait::ZeroResults>(),
263 static_assert(ConcreteOp::template hasTrait<OpTrait::ZeroSuccessors>(),
/llvm-project-15.0.7/mlir/include/mlir/Transforms/
H A DFoldUtils.h89 typename std::enable_if<OpTy::template hasTrait<OpTrait::OneResult>(),
99 typename std::enable_if<OpTy::template hasTrait<OpTrait::ZeroResults>(),
/llvm-project-15.0.7/mlir/include/mlir/Parser/
H A DParser.h41 ContainerOpT::template hasTrait<OpTrait::OneRegion>() && in constructContainerOpForParserIfNecessary()
42 (ContainerOpT::template hasTrait<OpTrait::NoTerminator>() || in constructContainerOpForParserIfNecessary()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Transform/IR/
H A DTransformInterfaces.h761 static_assert(OpTy::template hasTrait<OpTrait::OneOperand>(), in verifyTrait()
763 static_assert(OpTy::template hasTrait<OpTrait::OneResult>(), in verifyTrait()
921 if (OpTy::template hasTrait<OpTrait::ZeroResults>()) in apply()
930 if (OpTy::template hasTrait<OpTrait::OneResult>()) { in apply()
955 static_assert(OpTy::template hasTrait<OpTrait::OneOperand>(), in verifyTrait()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVCommon/
H A DPattern.h32 if (SPIRVOp::template hasTrait<OpTrait::spirv::UnsignedOp>() && in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Async/Transforms/
H A DPassDetail.cpp32 if (!op || !op->hasTrait<OpTrait::ConstantLike>()) in cloneConstantsIntoTheRegion()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/
H A 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()
/llvm-project-15.0.7/mlir/lib/Analysis/DataFlow/
H A DIntegerRangeAnalysis.cpp102 return op->hasTrait<OpTrait::IsTerminator>(); in visitOperation()
145 return op->hasTrait<OpTrait::IsTerminator>(); in visitNonControlFlowArguments()
/llvm-project-15.0.7/mlir/unittests/Dialect/LLVMIR/
H A DLLVMTypeTest.cpp19 ASSERT_TRUE(structTy.hasTrait<TypeTrait::IsMutable>()); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/
H A DAffineParallelize.cpp66 op != nullptr && !op->hasTrait<OpTrait::AffineScope>(); in runOnOperation()

1234