Home
last modified time | relevance | path

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

12345

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp64 if (Cast->getExprLoc().isMacroID()) in checkPreStmt()
80 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
81 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
86 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
89 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
92 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
95 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
98 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
101 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
102 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
[all …]
H A DValistChecker.cpp171 if (const auto *Cast = dyn_cast<CastExpr>(E)) { in getVAListAsRegion() local
172 QualType Ty = Cast->getType(); in getVAListAsRegion()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() local
188 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr; 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
381 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr; in InsertPHITranslatedSubExpr()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A 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-13.1/contrib/llvm-project/lldb/source/Core/
H A DValueObjectConstResultCast.cpp60 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultCast
61 return m_impl.Cast(compiler_type); in Cast()
H A DValueObjectConstResultChild.cpp72 ValueObjectConstResultChild::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultChild
73 return m_impl.Cast(compiler_type); in Cast()
H A DValueObjectConstResult.cpp296 ValueObjectConstResult::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResult
297 return m_impl.Cast(compiler_type); in Cast()
H A DValueObjectConstResultImpl.cpp144 ValueObjectConstResultImpl::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultImpl
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A 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-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A 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-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1983 if (!Cast || Cast->getType() != Fn->getType()) in replacePrepare()
1987 Cast->replaceAllUsesWith(Fn); in replacePrepare()
1988 Cast->eraseFromParent(); in replacePrepare()
1998 if (!Cast->use_empty()) in replacePrepare()
2000 CastFn = Cast->getOperand(0); in replacePrepare()
2001 Cast->eraseFromParent(); in replacePrepare()
2026 if (!Cast || Cast->getType() != Fn->getType()) continue; in replacePrepare()
2042 Cast->replaceAllUsesWith(Fn); in replacePrepare()
2043 Cast->eraseFromParent(); in replacePrepare()
2054 CastFn = Cast->getOperand(0); in replacePrepare()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A 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()
H A DDynamicType.cpp86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo()
87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo()
88 return &Cast; in getDynamicCastInfo()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A 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-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h46 virtual void visitCast(CastInst *Cast) = 0;
/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Core/
H A DValueObjectConstResultCast.h54 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
H A DValueObjectConstResultImpl.h53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
H A DValueObjectConstResultChild.h63 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def41 TIL_OPCODE_DEF(Cast)
/freebsd-13.1/crypto/heimdal/
H A 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-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A 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
H A 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-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp313 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc()
317 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc()
344 IC.replaceOperand(*Cast, 0, BinOp2->getOperand(0)); in simplifyAssocCastAssoc()
957 if (auto *Cast = dyn_cast<CastInst>(&I)) in foldOperationIntoSelectOperand() local
1474 if (CastInst *Cast = dyn_cast<CastInst>(Op)) { in Descale() local
1475 if (Cast->getOpcode() == Instruction::SExt) { in Descale()
1492 Parent = std::make_pair(Cast, 0); in Descale()
1497 if (Cast->getOpcode() == Instruction::Trunc) { in Descale()
1509 Parent = std::make_pair(Cast, 0); in Descale()
2811 auto *Cast = dyn_cast<CastInst>(&Inst); in tryToMoveFreeBeforeNullTest() local
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A 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-13.1/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DBlockPointer.cpp127 m_backend.Cast(m_block_struct_type.GetPointerType()); in GetChildAtIndex()

12345