/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | PHITransAddr.cpp | 173 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in translateSubExpr() local 174 Value *PHIIn = translateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in translateSubExpr() 176 if (PHIIn == Cast->getOperand(0)) in translateSubExpr() 177 return Cast; in translateSubExpr() 182 if (Value *V = simplifyCastInst(Cast->getOpcode(), PHIIn, Cast->getType(), in translateSubExpr() 192 if (CastI->getOpcode() == Cast->getOpcode() && in translateSubExpr() 193 CastI->getType() == Cast->getType() && in translateSubExpr() 365 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in insertTranslatedSubExpr() local 366 Value *OpVal = insertTranslatedSubExpr(Cast->getOperand(0), CurBB, PredBB, in insertTranslatedSubExpr() 371 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 | 716 bool combineCastStore(IntrinsicInst *Cast, StoreInst *ST); 717 bool combineLoadCast(IntrinsicInst *Cast, LoadInst *LD); 929 bool X86LowerAMXCast::combineCastStore(IntrinsicInst *Cast, StoreInst *ST) { in combineCastStore() argument 930 Value *Tile = Cast->getOperand(0); in combineCastStore() 955 bool X86LowerAMXCast::combineLoadCast(IntrinsicInst *Cast, LoadInst *LD) { in combineLoadCast() argument 958 Use &U = *(Cast->use_begin()); in combineLoadCast() 978 createAllocaInstAtEntry(Builder, Cast->getParent(), LD->getType()); in combineLoadCast() 982 Builder.SetInsertPoint(Cast); in combineLoadCast() 992 Cast->replaceAllUsesWith(NewInst); in combineLoadCast() 999 for (auto *Cast : Casts) { in combineLdSt() local [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/CodeGen/ |
H A D | ExpandLargeFpConvert.cpp | 374 Value *Cast = Builder.CreateTrunc(Call, Builder.getInt32Ty()); in expandIToFP() local 377 FloatWidth == 128 ? Call : Cast); in expandIToFP() 379 FloatWidth == 128 ? Call : Cast); in expandIToFP() 400 FloatWidth == 128 ? Call : Cast); in expandIToFP() 405 Builder.CreateAdd(FloatWidth == 128 ? Call : Cast, in expandIToFP() 463 FloatWidth == 128 ? Call : Cast, in expandIToFP() 582 Value *Cast = Builder.CreateCast(cast<CastInst>(I)->getOpcode(), Ext, in scalarize() local 584 Result = Builder.CreateInsertElement(Result, Cast, Idx); in scalarize() 585 if (isa<Instruction>(Cast)) in scalarize() 586 Replace.push_back(cast<Instruction>(Cast)); in scalarize()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | CallPromotionUtils.cpp | 182 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() local 184 *RetBitCast = Cast; in createRetBitCast() 188 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast() 524 auto *Cast = in promoteCall() local 526 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/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
H A D | RefCntblBaseVirtualDtorChecker.cpp | 78 else if (auto *Cast = dyn_cast<CastExpr>(Arg)) { in VisitCXXDeleteExpr() local 79 Arg = Cast->getSubExpr(); in VisitCXXDeleteExpr() 80 auto CastType = Cast->getType(); in VisitCXXDeleteExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
H A D | UncheckedOptionalAccessModel.cpp | 114 auto *Cast = dyn_cast<ImplicitCastExpr>(E->IgnoreParens()); in getPublicType() local 115 if (Cast == nullptr || Cast->getCastKind() != CK_UncheckedDerivedToBase) { in getPublicType() 125 bool CastingFromThis = isa<CXXThisExpr>(Cast->getSubExpr()); in getPublicType() 130 for (const CXXBaseSpecifier *Base : Cast->path()) { in getPublicType() 143 return getPublicType(Cast->getSubExpr()); in getPublicType()
|
/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | ValueObjectConstResultCast.cpp | 55 return m_impl.Cast(compiler_type); in DoCast()
|
H A D | ValueObjectConstResultChild.cpp | 67 return m_impl.Cast(compiler_type); in DoCast()
|
/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()
|
/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/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 | 47 virtual void visitCast(CastInst *Cast) = 0;
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
H A D | ThreadSafetyOps.def | 41 TIL_OPCODE_DEF(Cast)
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
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 | SeparateConstOffsetFromGEP.cpp | 702 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local 704 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain() 706 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
|
H A D | IndVarSimplify.cpp | 512 static void visitIVCast(CastInst *Cast, WideIVInfo &WI, in visitIVCast() argument 515 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast() 516 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast() 519 Type *Ty = Cast->getType(); in visitIVCast() 521 if (!Cast->getDataLayout().isLegalInteger(Width)) in visitIVCast() 541 Cast->getOperand(0)->getType())) { in visitIVCast() 586 void visitCast(CastInst *Cast) override { visitIVCast(Cast, WI, SE, TTI); } in visitCast() argument
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
H A D | LibCxxUnorderedMap.cpp | 169 node_sp = m_next_element->Cast(m_node_type.GetPointerType()) in GetChildAtIndex() 316 auto hash_node_sp = hash_iter_sp->Cast(node_pointer_type); in Update()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Opcodes.td | 604 // Cast, CastFP. 615 def Cast: Opcode { 640 // Cast an integer to a floating type 647 // Cast a floating to an integer type
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
H A D | CoroSplit.cpp | 2036 auto *Cast = dyn_cast<BitCastInst>(U.getUser()); in replacePrepare() local 2037 if (!Cast || Cast->getType() != Fn->getType()) in replacePrepare() 2041 Cast->replaceAllUsesWith(Fn); in replacePrepare() 2042 Cast->eraseFromParent(); in replacePrepare() 2051 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) { in replacePrepare() local 2052 if (!Cast->use_empty()) in replacePrepare() 2054 CastFn = Cast->getOperand(0); in replacePrepare() 2055 Cast->eraseFromParent(); in replacePrepare()
|