/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | ConversionChecker.cpp | 60 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 D | PHITransAddr.cpp | 172 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 D | X86PartialReduction.cpp | 82 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 D | X86LowerAMXType.cpp | 710 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 D | SystemZTDC.cpp | 243 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 D | AMDGPUPromoteKernelArguments.cpp | 120 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 D | CallPromotionUtils.cpp | 179 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 D | WebAssemblyFixFunctionBitcasts.cpp | 182 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 D | DynamicType.cpp | 86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo() 87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo() 88 return &Cast; in getDynamicCastInfo()
|
H A D | Store.cpp | 252 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 D | ExpandLargeFpConvert.cpp | 371 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 D | ValueObjectConstResultCast.cpp | 61 return m_impl.Cast(compiler_type); in DoCast()
|
H A D | ValueObjectConstResultChild.cpp | 73 return m_impl.Cast(compiler_type); in DoCast()
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | ValueObjectConstResultImpl.h | 53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SimplifyIndVar.h | 45 virtual void visitCast(CastInst *Cast) = 0;
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ExprMutationAnalyzer.cpp | 29 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 D | ThreadSafetyCommon.cpp | 214 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 D | ThreadSafetyOps.def | 41 TIL_OPCODE_DEF(Cast)
|
/freebsd/crypto/heimdal/ |
H A D | ChangeLog | 153 * 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 D | SeparateConstOffsetFromGEP.cpp | 701 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 D | MergedLoadStoreMotion.cpp | 265 auto Cast = Builder.CreateBitOrPointerCast(S0->getValueOperand(), in sinkStoresAndGEPs() local 267 S0->setOperand(0, Cast); in sinkStoresAndGEPs()
|
H A D | IndVarSimplify.cpp | 502 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 D | Opcodes.td | 575 // 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 D | CoroSplit.cpp | 2127 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 D | BlockPointer.cpp | 117 m_backend.Cast(m_block_struct_type.GetPointerType()); in GetChildAtIndex()
|