Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp60 if (Cast->getType()->isBooleanType()) in checkPreStmt()
64 if (Cast->getExprLoc().isMacroID()) in checkPreStmt()
85 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
91 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
94 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
97 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
100 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
108 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
111 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
112 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp172 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in translateSubExpr() local
173 Value *PHIIn = translateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in translateSubExpr()
175 if (PHIIn == Cast->getOperand(0)) in translateSubExpr()
176 return Cast; in translateSubExpr()
181 if (Value *V = simplifyCastInst(Cast->getOpcode(), PHIIn, Cast->getType(), in translateSubExpr()
191 if (CastI->getOpcode() == Cast->getOpcode() && in translateSubExpr()
192 CastI->getType() == Cast->getType() && in translateSubExpr()
364 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in insertTranslatedSubExpr() local
365 Value *OpVal = insertTranslatedSubExpr(Cast->getOperand(0), CurBB, PredBB, in insertTranslatedSubExpr()
370 CastInst *New = CastInst::Create(Cast->getOpcode(), OpVal, InVal->getType(), in insertTranslatedSubExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp82 if (auto *Cast = dyn_cast<CastInst>(Op)) { in matchVPDPBUSDPattern() local
83 if (Cast->getParent() == Mul->getParent() && in matchVPDPBUSDPattern()
84 (Cast->getOpcode() == Instruction::SExt || in matchVPDPBUSDPattern()
85 Cast->getOpcode() == Instruction::ZExt) && in matchVPDPBUSDPattern()
86 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 8) in matchVPDPBUSDPattern()
149 if (auto *Cast = dyn_cast<CastInst>(Op)) { in tryMAddReplacement() local
150 if (Cast->getParent() == Mul->getParent() && in tryMAddReplacement()
151 (Cast->getOpcode() == Instruction::SExt || in tryMAddReplacement()
152 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement()
153 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16) in tryMAddReplacement()
H A DX86LowerAMXType.cpp710 bool combineCastStore(IntrinsicInst *Cast, StoreInst *ST);
711 bool combineLoadCast(IntrinsicInst *Cast, LoadInst *LD);
924 Value *Tile = Cast->getOperand(0); in combineCastStore()
952 Use &U = *(Cast->use_begin()); in combineLoadCast()
976 Builder.SetInsertPoint(Cast); in combineLoadCast()
986 Cast->replaceAllUsesWith(NewInst); in combineLoadCast()
993 for (auto *Cast : Casts) { in combineLdSt() local
994 auto *II = cast<IntrinsicInst>(Cast); in combineLdSt()
1002 for (User *U : Cast->users()) { in combineLdSt()
1015 auto *Load = dyn_cast<LoadInst>(Cast->getOperand(0)); in combineLdSt()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp243 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp() local
245 if (!Cast->getSrcTy()->isFloatTy() && in convertICmp()
246 !Cast->getSrcTy()->isDoubleTy() && in convertICmp()
247 !Cast->getSrcTy()->isFP128Ty()) in convertICmp()
249 Value *V = Cast->getOperand(0); in convertICmp()
261 PossibleJunk.insert(Cast); in convertICmp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteKernelArguments.cpp120 Value *Cast = in promotePointer() local
123 B.CreateAddrSpaceCast(Cast, PT, Twine(Ptr->getName(), ".flat")); in promotePointer()
125 [Cast](Use &U) { return U.getUser() != Cast; }); in promotePointer()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp179 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() local
181 *RetBitCast = Cast; in createRetBitCast()
185 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
512 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); in promoteCall() local
513 CB.setArgOperand(ArgNo, Cast); in promoteCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp182 Instruction *Cast = in createWrapper() local
184 Cast->insertInto(BB, BB->end()); in createWrapper()
185 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicType.cpp86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo()
87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo()
88 return &Cast; in getDynamicCastInfo()
H A DStore.cpp252 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
255 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
260 for (const CXXBaseSpecifier *Base : Cast->path()) { in evalDerivedToBase()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeFpConvert.cpp371 Value *Cast = Builder.CreateTrunc(Call, Builder.getInt32Ty()); in expandIToFP() local
374 FloatWidth == 128 ? Call : Cast); in expandIToFP()
376 FloatWidth == 128 ? Call : Cast); in expandIToFP()
397 FloatWidth == 128 ? Call : Cast); in expandIToFP()
402 Builder.CreateAdd(FloatWidth == 128 ? Call : Cast, in expandIToFP()
460 FloatWidth == 128 ? Call : Cast, in expandIToFP()
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DValueObjectConstResultCast.cpp61 return m_impl.Cast(compiler_type); in DoCast()
H A DValueObjectConstResultChild.cpp73 return m_impl.Cast(compiler_type); in DoCast()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DValueObjectConstResultImpl.h53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h45 virtual void visitCast(CastInst *Cast) = 0;
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp29 if (const auto *Cast = dyn_cast<ImplicitCastExpr>(E)) { in canExprResolveTo() local
30 if ((Cast->getCastKind() == CK_DerivedToBase || in canExprResolveTo()
31 Cast->getCastKind() == CK_UncheckedDerivedToBase) && in canExprResolveTo()
32 Matcher(Cast->getSubExpr())) in canExprResolveTo()
H A DThreadSafetyCommon.cpp214 if (const auto *CE = dyn_cast<til::Cast>(E)) { in translateAttrExpr()
372 if (const auto *C = dyn_cast<til::Cast>(E)) in hasAnyPointerType()
453 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXMemberCallExpr()
468 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXOperatorCallExpr()
635 return new (Arena) til::Cast(til::CAST_none, E0); in translateCastExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def41 TIL_OPCODE_DEF(Cast)
/freebsd/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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp701 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local
703 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
705 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
H A DMergedLoadStoreMotion.cpp265 auto Cast = Builder.CreateBitOrPointerCast(S0->getValueOperand(), in sinkStoresAndGEPs() local
267 S0->setOperand(0, Cast); in sinkStoresAndGEPs()
H A DIndVarSimplify.cpp502 static void visitIVCast(CastInst *Cast, WideIVInfo &WI, in visitIVCast() argument
505 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast()
506 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
509 Type *Ty = Cast->getType(); in visitIVCast()
511 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width)) in visitIVCast()
531 Cast->getOperand(0)->getType())) { in visitIVCast()
576 void visitCast(CastInst *Cast) override { visitIVCast(Cast, WI, SE, TTI); } in visitCast() argument
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DOpcodes.td575 // Cast, CastFP.
586 def Cast: Opcode {
612 // Cast an integer to a floating type
619 // Cast a floating to an integer type
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp2127 auto *Cast = dyn_cast<BitCastInst>(U.getUser()); in replacePrepare() local
2128 if (!Cast || Cast->getType() != Fn->getType()) in replacePrepare()
2132 Cast->replaceAllUsesWith(Fn); in replacePrepare()
2133 Cast->eraseFromParent(); in replacePrepare()
2142 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) { in replacePrepare() local
2143 if (!Cast->use_empty()) in replacePrepare()
2145 CastFn = Cast->getOperand(0); in replacePrepare()
2146 Cast->eraseFromParent(); in replacePrepare()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DBlockPointer.cpp117 m_backend.Cast(m_block_struct_type.GetPointerType()); in GetChildAtIndex()

12345