Home
last modified time | relevance | path

Searched refs:dyn_cast_if_present (Results 1 – 25 of 180) sorted by relevance

12345678

/llvm-project/mlir/lib/IR/
H A DTypeRange.cpp30 if (auto *result = llvm::dyn_cast_if_present<detail::OpResultImpl *>(owner)) in TypeRange()
32 else if (auto *operand = llvm::dyn_cast_if_present<OpOperand *>(owner)) in TypeRange()
40 if (const auto *value = llvm::dyn_cast_if_present<const Value *>(object)) in offset_base()
42 if (auto *operand = llvm::dyn_cast_if_present<OpOperand *>(object)) in offset_base()
44 if (auto *result = llvm::dyn_cast_if_present<detail::OpResultImpl *>(object)) in offset_base()
46 return {llvm::dyn_cast_if_present<const Type *>(object) + index}; in offset_base()
51 if (const auto *value = llvm::dyn_cast_if_present<const Value *>(object)) in dereference_iterator()
53 if (auto *operand = llvm::dyn_cast_if_present<OpOperand *>(object)) in dereference_iterator()
55 if (auto *result = llvm::dyn_cast_if_present<detail::OpResultImpl *>(object)) in dereference_iterator()
57 return llvm::dyn_cast_if_present<cons in dereference_iterator()
[all...]
H A DUnit.cpp51 if (auto *op = llvm::dyn_cast_if_present<Operation *>(*this)) in print()
53 if (auto *region = llvm::dyn_cast_if_present<Region *>(*this)) in print()
55 if (auto *block = llvm::dyn_cast_if_present<Block *>(*this)) in print()
H A DRegion.cpp270 if (auto *region = llvm::dyn_cast_if_present<const std::unique_ptr<Region> *>(owner)) in offset_base()
272 if (auto **region = llvm::dyn_cast_if_present<Region **>(owner)) in offset_base()
279 if (auto *region = llvm::dyn_cast_if_present<const std::unique_ptr<Region> *>(owner)) in dereference_iterator()
281 if (auto **region = llvm::dyn_cast_if_present<Region **>(owner)) in dereference_iterator()
H A DPatternMatch.cpp116 if (auto *rewriteListener = dyn_cast_if_present<Listener>(listener)) in replaceAllOpUsesWith()
124 if (auto *rewriteListener = dyn_cast_if_present<Listener>(listener)) in replaceAllOpUsesWith()
163 auto *rewriteListener = dyn_cast_if_present<Listener>(listener); in eraseOp()
242 if (auto *rewriteListener = dyn_cast_if_present<Listener>(listener)) in eraseBlock()
250 if (auto *rewriteListener = dyn_cast_if_present<Listener>(listener)) in finalizeOpModification()
H A DBlock.cpp389 if (auto *operand = llvm::dyn_cast_if_present<BlockOperand *>(object))
391 return {llvm::dyn_cast_if_present<Block *const *>(object) + index};
396 if (const auto *operand = llvm::dyn_cast_if_present<BlockOperand *>(object))
398 return llvm::dyn_cast_if_present<Block *const *>(object)[index];
/llvm-project/llvm/unittests/ADT/
H A DPointerUnionTest.cpp136 EXPECT_EQ(dyn_cast_if_present<Aligned<0> *>(a), &a0); in TEST_F()
148 EXPECT_EQ(dyn_cast_if_present<Aligned<7> *>(a), &a7); in TEST_F()
230 EXPECT_EQ(dyn_cast_if_present<int *>(n), nullptr); in TEST_F()
231 EXPECT_EQ(dyn_cast_if_present<float *>(n), nullptr); in TEST_F()
257 EXPECT_EQ(dyn_cast_if_present<int *>(i4null), nullptr); in TEST_F()
258 EXPECT_EQ(dyn_cast_if_present<float *>(i4null), nullptr); in TEST_F()
259 EXPECT_EQ(dyn_cast_if_present<long long *>(i4null), nullptr); in TEST_F()
260 EXPECT_EQ(dyn_cast_if_present<double *>(i4null), nullptr); in TEST_F()
261 EXPECT_EQ(dyn_cast_if_present<int *>(f4null), nullptr); in TEST_F()
262 EXPECT_EQ(dyn_cast_if_present<float *>(f4null), nullptr); in TEST_F()
[all …]
/llvm-project/mlir/lib/Interfaces/
H A DInferTypeOpInterface.cpp63 if (auto t = llvm::dyn_cast_if_present<Type>(val)) in reifyResultShapes()
73 if (auto t = llvm::dyn_cast_if_present<Type>(val)) in hasRank()
82 if (auto t = llvm::dyn_cast_if_present<Type>(val)) { in getElementType()
85 } else if (auto attr = llvm::dyn_cast_if_present<Attribute>(val)) { in getElementType()
105 if (auto t = llvm::dyn_cast_if_present<Type>(val)) in getDims()
107 if (auto attr = llvm::dyn_cast_if_present<Attribute>(val)) in getDims()
117 if (auto t = llvm::dyn_cast_if_present<Type>(val)) in getDimSize()
119 if (auto attr = llvm::dyn_cast_if_present<Attribute>(val)) in getDimSize()
128 if (auto t = llvm::dyn_cast_if_present<Type>(val)) in getRank()
130 if (auto attr = llvm::dyn_cast_if_present<Attribut in getRank()
[all...]
/llvm-project/mlir/lib/Debug/
H A DDebuggerExecutionContextHook.cpp124 if (auto *op = llvm::dyn_cast_if_present<Operation *>(*unit)) { in mlirDebuggerCursorSelectParentIRUnit()
126 } else if (auto *region = llvm::dyn_cast_if_present<Region *>(*unit)) { in mlirDebuggerCursorSelectParentIRUnit()
128 } else if (auto *block = llvm::dyn_cast_if_present<Block *>(*unit)) { in mlirDebuggerCursorSelectParentIRUnit()
145 if (auto *op = llvm::dyn_cast_if_present<Operation *>(*unit)) { in mlirDebuggerCursorSelectChildIRUnit()
152 } else if (auto *region = llvm::dyn_cast_if_present<Region *>(*unit)) { in mlirDebuggerCursorSelectChildIRUnit()
166 } else if (auto *block = llvm::dyn_cast_if_present<Block *>(*unit)) { in mlirDebuggerCursorSelectChildIRUnit()
195 if (auto *op = llvm::dyn_cast_if_present<Operation *>(*unit)) { in mlirDebuggerCursorSelectPreviousIRUnit()
202 } else if (auto *region = llvm::dyn_cast_if_present<Region *>(*unit)) { in mlirDebuggerCursorSelectPreviousIRUnit()
215 } else if (auto *block = llvm::dyn_cast_if_present<Block *>(*unit)) { in mlirDebuggerCursorSelectPreviousIRUnit()
237 if (auto *op = llvm::dyn_cast_if_present<Operatio in mlirDebuggerCursorSelectNextIRUnit()
[all...]
/llvm-project/mlir/lib/Dialect/MemRef/Transforms/
H A DComposeSubView.cpp62 Attribute opStrideAttr = dyn_cast_if_present<Attribute>(opStride); in matchAndRewrite()
63 Attribute sourceStrideAttr = dyn_cast_if_present<Attribute>(sourceStride); in matchAndRewrite()
89 Attribute opOffsetAttr = llvm::dyn_cast_if_present<Attribute>(opOffset), in matchAndRewrite()
91 llvm::dyn_cast_if_present<Attribute>(sourceOffset), in matchAndRewrite()
93 llvm::dyn_cast_if_present<Attribute>(sourceStride); in matchAndRewrite()
107 if (auto attr = llvm::dyn_cast_if_present<Attribute>(sourceOffset)) { in matchAndRewrite()
117 if (auto attr = llvm::dyn_cast_if_present<Attribute>(opOffset)) { in matchAndRewrite()
/llvm-project/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp379 dyn_cast_if_present<tosa::ClampOp>(op.getInput().getDefiningOp());
568 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput1()); in mulBinaryFolder()
570 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2()); in mulBinaryFolder()
609 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput1()); in fold()
611 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2()); in fold()
680 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput1());
682 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2()); in fold()
727 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput1()); in fold()
729 llvm::dyn_cast_if_present<DenseElementsAttr>(adaptor.getInput2());
772 llvm::dyn_cast_if_present<DenseElementsAtt in fold()
[all...]
/llvm-project/llvm/include/llvm/ADT/
H A DTinyPtrVector.h46 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in ~TinyPtrVector()
51 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) in TinyPtrVector()
98 if (VecTy *V = dyn_cast_if_present<VecTy *>(Val)) {
166 if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) in empty()
273 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) { in clear()
288 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) { in erase()
304 } else if (VecTy *Vec = dyn_cast_if_present<VecTy *>(Val)) { in erase()
/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.h
H A DMemberPointer.h
/llvm-project/mlir/include/mlir/Debug/BreakpointManagers/
H A DFileLineColLocBreakpointManager.h65 if (auto *op = llvm::dyn_cast_if_present<Operation *>(unit)) { in match()
70 if (auto *block = llvm::dyn_cast_if_present<Block *>(unit)) { in match()
77 if (Region *region = llvm::dyn_cast_if_present<Region *>(unit)) { in match()
/llvm-project/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h103 if (auto *T = dyn_cast_if_present<Type *>(CurTy)) in getIndexedType()
105 if (auto *VT = dyn_cast_if_present<VectorType *>(CurTy)) in getIndexedType()
167 return dyn_cast_if_present<StructType *>(CurTy); in getStructTypeOrNull()
/llvm-project/mlir/lib/Dialect/Utils/
H A DStaticValueUtils.cpp51 auto v = llvm::dyn_cast_if_present<Value>(ofr); in dispatchIndexOpFoldResult()
122 if (auto val = llvm::dyn_cast_if_present<Value>(ofr)) { in getConstantIntValues()
129 Attribute attr = llvm::dyn_cast_if_present<Attribute>(ofr); in getConstantIntValues()
175 auto v1 = llvm::dyn_cast_if_present<Value>(ofr1), in getMixedValues()
176 v2 = llvm::dyn_cast_if_present<Value>(ofr2); in getMixedValues()
/llvm-project/mlir/lib/Analysis/DataFlow/
H A DDenseAnalysis.cpp60 dyn_cast_if_present<CallableOpInterface>(call.resolveCallable()); in visitCallOperation()
H A DSparseAnalysis.cpp135 dyn_cast_if_present<CallableOpInterface>(call.resolveCallable()); in visitOperation()
/llvm-project/mlir/lib/Dialect/Index/IR/
H A DIndexOps.cpp74 auto lhs = dyn_cast_if_present<IntegerAttr>(operands[0]); in foldBinaryOpUnchecked()
75 auto rhs = dyn_cast_if_present<IntegerAttr>(operands[1]); in foldBinaryOpUnchecked()
100 auto lhs = dyn_cast_if_present<IntegerAttr>(operands[0]); in foldBinaryOpChecked()
101 auto rhs = dyn_cast_if_present<IntegerAttr>(operands[1]); in foldBinaryOpChecked()
513 auto attr = dyn_cast_if_present<IntegerAttr>(input); in fold()
664 auto lhs = dyn_cast_if_present<IntegerAttr>(adaptor.getLhs());
665 auto rhs = dyn_cast_if_present<IntegerAttr>(adaptor.getRhs());
/llvm-project/llvm/unittests/Support/
H A DCasting.cpp248 const foo *F6 = dyn_cast_if_present<foo>(B2); in TEST()
264 TEST(CastingTest, dyn_cast_if_present) { in TEST() argument
266 std::optional<T2> F1 = dyn_cast_if_present<T2>(empty); in TEST()
270 std::optional<T2> F2 = dyn_cast_if_present<T2>(t1); in TEST()
276 T3 t3 = dyn_cast_if_present<T3>(t1Null); in TEST()
281 T4 t4 = dyn_cast_if_present<T4>(t3); in TEST()
/llvm-project/mlir/include/mlir/Interfaces/
H A DSideEffectInterfaces.h220 if (OpOperand *operand = llvm::dyn_cast_if_present<OpOperand *>(value)) { in getValue()
223 if (OpResult result = llvm::dyn_cast_if_present<OpResult>(value)) { in getValue()
236 return value ? dyn_cast_if_present<T>(value) : nullptr; in getEffectValue()
242 return value ? llvm::dyn_cast_if_present<SymbolRefAttr>(value) in getSymbolRef()
/llvm-project/mlir/include/mlir/Conversion/ArithCommon/
H A DAttrToLLVMConverter.h60 auto arithFMFAttr = dyn_cast_if_present<arith::FastMathFlagsAttr>( in AttrConvertFastMathToLLVM()
90 if (auto arithAttr = dyn_cast_if_present<arith::IntegerOverflowFlagsAttr>( in AttrConvertOverflowToLLVM()
/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineMemOperand.h74 if (const auto *ValPtr = dyn_cast_if_present<const Value *>(V)) in V()
214 return dyn_cast_if_present<const Value *>(PtrInfo.V); in getValue()
218 return dyn_cast_if_present<const PseudoSourceValue *>(PtrInfo.V); in getPseudoValue()
/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h58 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in getType()
64 if (auto *C = dyn_cast_if_present<Constant *>(Val)) in toConstant()
/llvm-project/mlir/lib/Dialect/Ptr/IR/
H A DPtrTypes.cpp61 if (auto type = llvm::dyn_cast_if_present<Type>(entry.getKey())) { in areCompatible()
69 if (auto type = llvm::dyn_cast_if_present<Type>(entry.getKey())) { in areCompatible()

12345678