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

123

/freebsd-11-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-11-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.cpp145 ValueObjectConstResultImpl::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResultImpl
H A DValueObjectConstResult.cpp288 ValueObjectConstResult::Cast(const CompilerType &compiler_type) { function in class:ValueObjectConstResult
289 return m_impl.Cast(compiler_type);
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h43 virtual void visitCast(CastInst *Cast) = 0;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp239 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) {
241 if (!Cast->getSrcTy()->isFloatTy() &&
242 !Cast->getSrcTy()->isDoubleTy() &&
243 !Cast->getSrcTy()->isFP128Ty())
245 Value *V = Cast->getOperand(0);
257 PossibleJunk.insert(Cast);
/freebsd-11-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-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp121 /// Cast a call or invoke instruction to the given type.
179 auto *Cast = CastInst::CreateBitOrPointerCast(CS.getInstruction(), RetTy, "", local
182 *RetBitCast = Cast;
186 U->replaceUsesOfWith(CS.getInstruction(), Cast);
408 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", local
410 CS.setArgument(ArgNo, Cast);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicType.cpp72 for (const DynamicCastInfo &Cast : *Lookup)
73 if (Cast.equals(CastFromTy, CastToTy))
74 return &Cast;
H A DStore.cpp248 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { argument
251 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType()))
256 for (CastExpr::path_const_iterator I = Cast->path_begin(),
257 E = Cast->path_end();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp191 Instruction *Cast = local
193 BB->getInstList().push_back(Cast);
194 ReturnInst::Create(M->getContext(), Cast, BB);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DBlockPointer.cpp127 m_backend.Cast(m_block_struct_type.GetPointerType());
H A DLibCxxUnorderedMap.cpp130 node_sp = node_sp->Cast(m_node_type);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1296 // Cast the continuation value if necessary.
1474 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); local
1475 if (!Cast || Cast->getType() != Fn->getType()) continue;
1480 for (auto &Use : Cast->uses()) {
1491 Cast->replaceAllUsesWith(Fn);
1492 Cast->eraseFromParent();
1501 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) {
1502 if (!Cast->use_empty()) break;
1503 CastFn = Cast
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp657 if (CastInst *Cast = dyn_cast<CastInst>(U)) {
659 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
661 ExtInsts.push_back(Cast);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp271 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0)); local
272 if (!Cast || !Cast->hasOneUse())
276 auto CastOpcode = Cast->getOpcode();
285 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0));
303 Cast->setOperand(0, BinOp2->getOperand(0));
861 if (auto *Cast = dyn_cast<CastInst>(&I))
862 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType());
1327 if (CastInst *Cast = dyn_cast<CastInst>(Op)) {
1328 if (Cast
2523 auto *Cast = dyn_cast<CastInst>(&Inst); local
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h164 /// \p Cast.
165 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h57 assert(OpTy && "Cast instructions must provide the operand type");
663 if (const auto* Cast = dyn_cast<SExtInst>(Val)) {
665 return Cast->getSrcTy()->getScalarSizeInBits() - 1;
668 if (const auto* Cast = dyn_cast<ZExtInst>(Val)) {
670 return Cast->getSrcTy()->getScalarSizeInBits();
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/API/
H A DSBValue.h121 lldb::SBValue Cast(lldb::SBType type);

Completed in 163 milliseconds

123