Searched refs:Cast (Results 1 - 25 of 75) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp42 void checkPreStmt(const ImplicitCastExpr *Cast, CheckerContext &C) const;
47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
50 bool isLossOfSign(const ImplicitCastExpr *Cast, CheckerContext &C) const;
56 void ConversionChecker::checkPreStmt(const ImplicitCastExpr *Cast, argument
60 if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts()))
64 if (Cast->getExprLoc().isMacroID())
69 const Stmt *Parent = PM.getParent(Cast);
80 LossOfSign = isLossOfSign(Cast, C);
81 LossOfPrecision = isLossOfPrecision(Cast, Cast
128 isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType, CheckerContext &C) const argument
184 isLossOfSign(const ImplicitCastExpr *Cast, CheckerContext &C) const argument
[all...]
H A DValistChecker.cpp171 if (const auto *Cast = dyn_cast<CastExpr>(E)) {
172 QualType Ty = Cast->getType();
/freebsd-13-stable/contrib/llvm-project/lldb/source/Core/
H A DValueObjectConstResultCast.cpp60 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResultCast
61 return m_impl.Cast(compiler_type);
H A DValueObjectConstResultChild.cpp72 ValueObjectConstResultChild::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResultChild
73 return m_impl.Cast(compiler_type);
H A DValueObjectConstResultImpl.cpp144 ValueObjectConstResultImpl::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResultImpl
H A DValueObjectConstResult.cpp301 ValueObjectConstResult::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResult
302 return m_impl.Cast(compiler_type);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
188 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr;
189 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT);
191 if (PHIIn == Cast->getOperand(0))
192 return Cast;
198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(),
199 C, Cast->getType()));
205 if (CastI->getOpcode() == Cast->getOpcode() &&
206 CastI->getType() == Cast->getType() &&
380 if (CastInst *Cast
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h44 virtual void visitCast(CastInst *Cast) = 0;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp247 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) {
249 if (!Cast->getSrcTy()->isFloatTy() &&
250 !Cast->getSrcTy()->isDoubleTy() &&
251 !Cast->getSrcTy()->isFP128Ty())
253 Value *V = Cast->getOperand(0);
265 PossibleJunk.insert(Cast);
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Core/
H A DValueObjectConstResultCast.h54 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
H A DValueObjectConstResultChild.h63 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
H A DValueObjectConstResultImpl.h53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
H A DValueObjectConstResult.h108 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp124 /// Cast a call or invoke instruction to the given type.
182 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); local
184 *RetBitCast = Cast;
188 U->replaceUsesOfWith(&CB, Cast);
487 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); local
488 CB.setArgOperand(ArgNo, Cast);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp103 if (auto *Cast = dyn_cast<CastInst>(Op)) {
104 if (Cast->getParent() == Mul->getParent() &&
105 (Cast->getOpcode() == Instruction::SExt ||
106 Cast->getOpcode() == Instruction::ZExt) &&
107 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16)
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicType.cpp86 for (const DynamicCastInfo &Cast : *Lookup)
87 if (Cast.equals(CastFromTy, CastToTy))
88 return &Cast;
H A DStore.cpp249 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { argument
252 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType()))
257 for (CastExpr::path_const_iterator I = Cast->path_begin(),
258 E = Cast->path_end();
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp190 Instruction *Cast = local
192 BB->getInstList().push_back(Cast);
193 ReturnInst::Create(M->getContext(), Cast, BB);
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DBlockPointer.cpp133 m_backend.Cast(m_block_struct_type.GetPointerType());
H A DLibCxxUnorderedMap.cpp130 node_sp = node_sp->Cast(m_node_type);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1366 // Cast the continuation value if necessary.
1587 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); local
1588 if (!Cast || Cast->getType() != Fn->getType()) continue;
1593 for (auto &Use : Cast->uses()) {
1604 Cast->replaceAllUsesWith(Fn);
1605 Cast->eraseFromParent();
1614 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) {
1615 if (!Cast->use_empty()) break;
1616 CastFn = Cast
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp673 if (CastInst *Cast = dyn_cast<CastInst>(U)) {
675 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
677 ExtInsts.push_back(Cast);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp268 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0)); local
269 if (!Cast || !Cast->hasOneUse())
273 auto CastOpcode = Cast->getOpcode();
282 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0));
300 IC.replaceOperand(*Cast, 0, BinOp2->getOperand(0));
858 if (auto *Cast = dyn_cast<CastInst>(&I))
859 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType());
1344 if (CastInst *Cast = dyn_cast<CastInst>(Op)) {
1345 if (Cast
2635 auto *Cast = dyn_cast<CastInst>(&Inst); local
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/API/
H A DSBValue.h121 lldb::SBValue Cast(lldb::SBType type);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h689 if (const auto *Cast = dyn_cast<SExtInst>(Val)) {
691 return Cast->getSrcTy()->getScalarSizeInBits() - 1;
694 if (const auto *Cast = dyn_cast<ZExtInst>(Val)) {
696 return Cast->getSrcTy()->getScalarSizeInBits();

Completed in 291 milliseconds

123