Home
last modified time | relevance | path

Searched refs:isPresent (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCasting.h633 static inline bool isPresent(const T &t) { return true; }
649 static inline bool isPresent(const T &t) { return t != nullptr; }
656 template <typename T> inline bool isPresent(const T &t) {
671 if (!detail::isPresent(Val))
685 if (!detail::isPresent(Val))
692 if (!detail::isPresent(Val))
699 if (!detail::isPresent(Val))
707 if (!detail::isPresent(Val))
734 if (!detail::isPresent(Val))
740 if (!detail::isPresent(Val))
[all …]
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/
H A DHashTable.h223 if (isPresent(I)) { in find_as()
262 bool isPresent(uint32_t K) const { return Present.test(K); } in isPresent() function
277 assert(isPresent(Entry.index())); in set_as_internal()
285 assert(!isPresent(Entry.index())); in set_as_internal()
/llvm-project-15.0.7/flang/lib/Lower/
H A DHostAssociations.cpp286 auto isPresent = builder.create<fir::IsPresentOp>( in getFromTuple() local
289 builder.genIfOp(loc, {idxTy}, isPresent, true) in getFromTuple()
344 auto isPresent = builder.create<fir::IsPresentOp>( in instantiateHostTuple() local
346 builder.genIfThenElse(loc, isPresent) in instantiateHostTuple()
404 mlir::Value isPresent = builder.genIsNotNullAddr(loc, addr); in getFromTuple() local
406 box = builder.create<mlir::arith::SelectOp>(loc, isPresent, box, in getFromTuple()
H A DConvertExpr.cpp426 .genIfOp(loc, {eleType}, isPresent, in genOptionalValue()
480 loc, boxType, isPresent, box, absent); in genOptionalBox()
2206 mlir::Value isPresent = in genIntrinsicRef() local
2877 return {actualArg, isPresent}; in prepareActualThatMayBeAbsent()
2888 return {actualArg, isPresent}; in prepareActualThatMayBeAbsent()
2891 return {safeToReadBox, isPresent}; in prepareActualThatMayBeAbsent()
4866 mlir::Value isPresent = in genElementalIntrinsicProcRef() local
4872 isPresent); in genElementalIntrinsicProcRef()
4875 operands.emplace_back(cc, isPresent); in genElementalIntrinsicProcRef()
6167 return {cc, isPresent, eleType}; in genOptionalArrayFetch()
[all …]
H A DConvertVariable.cpp590 auto isPresent = builder.create<fir::IsPresentOp>(loc, builder.getI1Type(), in defaultInitializeAtRuntime() local
592 builder.genIfThen(loc, isPresent) in defaultInitializeAtRuntime()
H A DIntrinsicCall.cpp2323 auto isPresent = builder.create<fir::IsPresentOp>(loc, builder.getI1Type(), in genAssociated() local
2326 targetBox = builder.create<mlir::arith::SelectOp>(loc, isPresent, targetBox, in genAssociated()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCasting.cpp107 static inline bool isPresent(const T3 &t) { return t.hasValue; } in isPresent() function
414 static inline bool isPresent(const pointer_wrappers::PTy &P) { in isPresent() function
422 static inline bool isPresent(const pointer_wrappers::PTy &P) { in isPresent() function
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp3119 matchAndRewrite(fir::IsPresentOp isPresent, OpAdaptor adaptor, in matchAndRewrite()
3122 mlir::Location loc = isPresent.getLoc(); in matchAndRewrite()
3125 if (isPresent.getVal().getType().isa<fir::BoxCharType>()) { in matchAndRewrite()
3130 mlir::MLIRContext *ctx = isPresent.getContext(); in matchAndRewrite()
3135 genConstantIndex(isPresent.getLoc(), idxTy, rewriter, 0); in matchAndRewrite()
3138 isPresent, mlir::LLVM::ICmpPredicate::ne, addr, c0); in matchAndRewrite()