Home
last modified time | relevance | path

Searched refs:Cast (Results 1 – 25 of 166) sorted by relevance

1234567

/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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, in checkPreStmt() argument
60 if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts())) in checkPreStmt()
64 if (Cast->getExprLoc().isMacroID()) in checkPreStmt()
69 const Stmt *Parent = PM.getParent(Cast); in checkPreStmt()
80 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
81 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
84 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Analysis/
DPHITransAddr.cpp187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() local
188 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr; in PHITranslateSubExpr()
189 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in PHITranslateSubExpr()
191 if (PHIIn == Cast->getOperand(0)) in PHITranslateSubExpr()
192 return Cast; in PHITranslateSubExpr()
198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), in PHITranslateSubExpr()
199 C, Cast->getType())); in PHITranslateSubExpr()
205 if (CastI->getOpcode() == Cast->getOpcode() && in PHITranslateSubExpr()
206 CastI->getType() == Cast->getType() && in PHITranslateSubExpr()
380 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() local
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/
DSystemZTDC.cpp247 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp() local
249 if (!Cast->getSrcTy()->isFloatTy() && in convertICmp()
250 !Cast->getSrcTy()->isDoubleTy() && in convertICmp()
251 !Cast->getSrcTy()->isFP128Ty()) in convertICmp()
253 Value *V = Cast->getOperand(0); in convertICmp()
265 PossibleJunk.insert(Cast); in convertICmp()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Core/
DValueObjectConstResultCast.cpp60 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultCast
61 return m_impl.Cast(compiler_type); in Cast()
DValueObjectConstResultChild.cpp72 ValueObjectConstResultChild::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultChild
73 return m_impl.Cast(compiler_type); in Cast()
DValueObjectConstResult.cpp296 ValueObjectConstResult::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResult
297 return m_impl.Cast(compiler_type); in Cast()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
DCallPromotionUtils.cpp178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() local
180 *RetBitCast = Cast; in createRetBitCast()
184 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
484 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); in promoteCall() local
485 CB.setArgOperand(ArgNo, Cast); in promoteCall()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/
DX86PartialReduction.cpp103 if (auto *Cast = dyn_cast<CastInst>(Op)) { in tryMAddReplacement() local
104 if (Cast->getParent() == Mul->getParent() && in tryMAddReplacement()
105 (Cast->getOpcode() == Instruction::SExt || in tryMAddReplacement()
106 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement()
107 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16) in tryMAddReplacement()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroSplit.cpp1982 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); in replacePrepare() local
1983 if (!Cast || Cast->getType() != Fn->getType()) in replacePrepare()
1987 Cast->replaceAllUsesWith(Fn); in replacePrepare()
1988 Cast->eraseFromParent(); in replacePrepare()
1997 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) { in replacePrepare() local
1998 if (!Cast->use_empty()) in replacePrepare()
2000 CastFn = Cast->getOperand(0); in replacePrepare()
2001 Cast->eraseFromParent(); in replacePrepare()
2025 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); in replacePrepare() local
2026 if (!Cast || Cast->getType() != Fn->getType()) continue; in replacePrepare()
[all …]
/freebsd-12-stable/contrib/gcclibs/libcpp/
DChangeLog275 (init_iconv_desc): Cast return value of alloca.
280 (_cpp_interpret_identifier): Cast return value of alloca.
286 (save_registered_pragmas): Cast return value of xmemdup.
289 (do_assert): Cast allocated storage to proper type.
295 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
306 (cpp_included): Cast return value of htab_find_with_hash.
309 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
316 (cpp_init_builtins): Cast of b->value to enum builtin_type.
317 (read_original_directory): Cast return value of alloca.
320 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
DStore.cpp250 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
253 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
258 for (CastExpr::path_const_iterator I = Cast->path_begin(), in evalDerivedToBase()
259 E = Cast->path_end(); in evalDerivedToBase()
DDynamicType.cpp86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo()
87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo()
88 return &Cast; in getDynamicCastInfo()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyFixFunctionBitcasts.cpp190 Instruction *Cast = in createWrapper() local
192 BB->getInstList().push_back(Cast); in createWrapper()
193 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
/freebsd-12-stable/crypto/heimdal/
DChangeLog153 * lib/krb5/ticket.c: Cast krb5_error_code to int to avoid warning.
155 * lib/krb5/scache.c: Cast krb5_error_code to int to avoid warning.
157 * lib/krb5/principal.c: Cast enum to int to avoid warning.
159 * lib/krb5/pkinit.c: Cast krb5_error_code to int to avoid warning.
161 * lib/krb5/pac.c: Cast size_t to unsigned long to avoid warning.
163 * lib/krb5/error_string.c: Cast krb5_error_code to int to avoid
/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Core/
DValueObjectConstResultCast.h54 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
DValueObjectConstResultChild.h63 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
DValueObjectConstResultImpl.h53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
/freebsd-12-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
DSimplifyIndVar.h46 virtual void visitCast(CastInst *Cast) = 0;
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp511 static void visitIVCast(CastInst *Cast, WideIVInfo &WI, in visitIVCast() argument
514 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast()
515 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
518 Type *Ty = Cast->getType(); in visitIVCast()
520 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width)) in visitIVCast()
540 Cast->getOperand(0)->getType())) { in visitIVCast()
585 void visitCast(CastInst *Cast) override { visitIVCast(Cast, WI, SE, TTI); } in visitCast() argument
DSeparateConstOffsetFromGEP.cpp689 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local
691 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
693 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp312 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0)); in simplifyAssocCastAssoc() local
313 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc()
317 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc()
326 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0)); in simplifyAssocCastAssoc()
344 IC.replaceOperand(*Cast, 0, BinOp2->getOperand(0)); in simplifyAssocCastAssoc()
957 if (auto *Cast = dyn_cast<CastInst>(&I)) in foldOperationIntoSelectOperand() local
958 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType()); in foldOperationIntoSelectOperand()
1474 if (CastInst *Cast = dyn_cast<CastInst>(Op)) { in Descale() local
1475 if (Cast->getOpcode() == Instruction::SExt) { in Descale()
1477 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
DThreadSafetyOps.def41 TIL_OPCODE_DEF(Cast)
/freebsd-12-stable/contrib/gcclibs/libdecnumber/
DChangeLog121 * decNumber.c (decStrEq): Cast string contents to unsigned char
126 * decNumber.c (decStrEq): Cast operands to int before calling
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DThreadSafetyCommon.cpp189 if (const auto *CE = dyn_cast<til::Cast>(E)) { in translateAttrExpr()
327 if (const auto *C = dyn_cast<til::Cast>(E)) in hasAnyPointerType()
408 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXMemberCallExpr()
423 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXOperatorCallExpr()
590 return new (Arena) til::Cast(til::CAST_none, E0); in translateCastExpr()
/freebsd-12-stable/contrib/gcclibs/libiberty/
DChangeLog.gcc4323 * pex-unix.c (writeerr): Cast write result to void.

1234567