Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DPHITransAddr.cpp173 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 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.cpp716 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 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/CodeGen/
H A DExpandLargeFpConvert.cpp374 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 DCallPromotionUtils.cpp182 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 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/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRefCntblBaseVirtualDtorChecker.cpp78 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 DUncheckedOptionalAccessModel.cpp114 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 DValueObjectConstResultCast.cpp55 return m_impl.Cast(compiler_type); in DoCast()
H A DValueObjectConstResultChild.cpp67 return m_impl.Cast(compiler_type); in DoCast()
/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()
/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/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.h47 virtual void visitCast(CastInst *Cast) = 0;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def41 TIL_OPCODE_DEF(Cast)
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DMergedLoadStoreMotion.cpp265 auto Cast = Builder.CreateBitOrPointerCast(S0->getValueOperand(), in sinkStoresAndGEPs() local
267 S0->setOperand(0, Cast); in sinkStoresAndGEPs()
H A DSeparateConstOffsetFromGEP.cpp702 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 DIndVarSimplify.cpp512 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 DLibCxxUnorderedMap.cpp169 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 DOpcodes.td604 // 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 DCoroSplit.cpp2036 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()

12345