HomeSort by: relevance | last modified time | path
    Searched refs:Cast (Results 1 - 25 of 74) sorted by relevancy

1 2 3

  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
ConversionChecker.cpp 42 void checkPreStmt(const ImplicitCastExpr *Cast, CheckerContext &C) const;
47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
50 bool isLossOfSign(const ImplicitCastExpr *Cast, CheckerContext &C) const;
56 void ConversionChecker::checkPreStmt(const ImplicitCastExpr *Cast,
60 if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts()))
64 if (Cast->getExprLoc().isMacroID())
69 const Stmt *Parent = PM.getParent(Cast);
80 LossOfSign = isLossOfSign(Cast, C);
81 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C)
    [all...]
ValistChecker.cpp 171 if (const auto *Cast = dyn_cast<CastExpr>(E)) {
172 QualType Ty = Cast->getType();
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
PHITransAddr.cpp 187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) {
188 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr;
189 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT);
191 if (PHIIn == Cast->getOperand(0))
192 return Cast;
194 // Find an available version of this cast.
198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(),
199 C, Cast->getType()));
205 if (CastI->getOpcode() == Cast->getOpcode() &&
206 CastI->getType() == Cast->getType() &
    [all...]
IVDescriptors.cpp 96 Instruction *I, *J = cast<Instruction>(Phi->use_begin()->getUser());
160 /// Collect cast instructions that can be ignored in the vectorizer's cost
174 if (auto *Cast = dyn_cast<CastInst>(Val))
175 if (Cast->getSrcTy() == RecurrenceType) {
176 // If the source type of a cast instruction is equal to the recurrence
179 Casts.insert(Cast);
185 for (Value *O : cast<User>(Val)->operands())
386 Instruction *UI = cast<Instruction>(U);
456 // will be eliminated since it will essentially be a cast instruction that
480 // there are any cast instructions that will be unnecessary, collect the
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
SystemZTDC.cpp 247 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) {
249 if (!Cast->getSrcTy()->isFloatTy() &&
250 !Cast->getSrcTy()->isDoubleTy() &&
251 !Cast->getSrcTy()->isFP128Ty())
253 Value *V = Cast->getOperand(0);
265 PossibleJunk.insert(Cast);
299 std::tie(Op0, Mask0, Worthy0) = ConvertedInsts[cast<Instruction>(I.getOperand(0))];
300 std::tie(Op1, Mask1, Worthy1) = ConvertedInsts[cast<Instruction>(I.getOperand(1))];
334 convertFCmp(cast<CmpInst>(I));
336 convertICmp(cast<CmpInst>(I))
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
SimplifyIndVar.h 46 virtual void visitCast(CastInst *Cast) = 0;
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86PartialReduction.cpp 71 if (cast<FixedVectorType>(Op->getType())->getNumElements() < 8)
75 if (!cast<VectorType>(Op->getType())->getElementType()->isIntegerTy(32))
103 if (auto *Cast = dyn_cast<CastInst>(Op)) {
104 if (Cast->getParent() == Mul->getParent() &&
105 (Cast->getOpcode() == Instruction::SExt ||
106 Cast->getOpcode() == Instruction::ZExt) &&
107 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16)
139 auto *MulTy = cast<FixedVectorType>(Op->getType());
176 if (!cast<VectorType>(Op->getType())->getElementType()->isIntegerTy(32))
198 if (cast<VectorType>(ZExt->getOperand(0)->getType()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
CallPromotionUtils.cpp 122 /// Cast a call or invoke instruction to the given type.
125 /// that of the callee. If this is the case, we have to cast the returned value
126 /// to the correct type. The location of the cast depends on if we have a call
178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore);
180 *RetBitCast = Cast;
184 U->replaceUsesOfWith(&CB, Cast);
302 CallBase *NewInst = cast<CallBase>(OrigInst->clone());
347 CallBase *NewInst = cast<CallBase>(OrigInst->clone());
355 auto *NewInvoke = cast<InvokeInst>(NewInst);
484 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
DynamicType.cpp 30 /// A set factory of dynamic cast informations.
33 /// A map from symbols to cast informations.
86 for (const DynamicCastInfo &Cast : *Lookup)
87 if (Cast.equals(CastFromTy, CastToTy))
88 return &Cast;
Store.cpp 111 // Process region cast according to the kind of the region being cast.
123 llvm_unreachable("Invalid region cast");
142 return MakeElementRegion(cast<SubRegion>(R), PointeeTy);
155 // the pointee-cast type as the new ElementType and the index
164 const ElementRegion *elementR = cast<ElementRegion>(R);
187 return MakeElementRegion(cast<SubRegion>(baseR), PointeeTy);
194 // that reflects the cast.
218 newSuperR = MakeElementRegion(cast<SubRegion>(baseR), Ctx.CharTy,
222 return MakeElementRegion(cast<SubRegion>(newSuperR), PointeeTy, newIndex)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblyFixFunctionBitcasts.cpp 85 auto C = ConstantBCs.insert(cast<Constant>(U.get()));
151 CastInst::CreateBitOrPointerCast(AI, ParamType, "cast");
190 Instruction *Cast =
191 CastInst::CreateBitOrPointerCast(Call, RtnType, "cast");
192 BB->getInstList().push_back(Cast);
193 ReturnInst::Create(M->getContext(), Cast, BB);
282 auto *PTy = cast<PointerType>(U->get()->getType());
310 cast<Function>(CallMain->getCalledOperand()->stripPointerCasts());
  /src/external/apache2/llvm/dist/clang/tools/clang-format-vs/ClangFormat/
RunningDocTableEventsDispatcher.cs 76 return _dte.Documents.Cast<Document>().FirstOrDefault(doc => doc.FullName == documentInfo.Moniker);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
CoroSplit.cpp 201 auto *MustTailCall = cast<CallInst>(&*std::prev(It));
263 cast<PointerType>(RetStructTy ? RetStructTy->getElementType(0) : RetTy);
305 auto *FromPad = cast<CleanupPadInst>(Bundle->Inputs[0]);
356 auto *S = cast<CoroSuspendInst>(AnyS);
369 auto *NullPtr = ConstantPointerNull::get(cast<PointerType>(
370 cast<PointerType>(GepIndex->getType())->getElementType()));
410 cast<BranchInst>(SuspendBB->getTerminator())->setSuccessor(0, LandingBB);
438 auto *Switch = cast<SwitchInst>(VMap[Shape.SwitchLowering.ResumeSwitch]);
459 auto *AsyncSuspend = cast<CoroSuspendAsyncInst>(Suspend);
460 auto *StructTy = cast<StructType>(AsyncSuspend->getType())
    [all...]
  /src/external/apache2/llvm/dist/llvm/utils/
lldbDataFormatters.py 120 return storage.Cast(underlying_type)
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
SeparateConstOffsetFromGEP.cpp 608 unsigned BitWidth = cast<IntegerType>(V->getType())->getBitWidth();
686 return UserChain[ChainIndex] = cast<ConstantInt>(applyExts(U));
689 if (CastInst *Cast = dyn_cast<CastInst>(U)) {
691 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) &&
693 ExtInsts.push_back(Cast);
699 BinaryOperator *BO = cast<BinaryOperator>(U);
722 BinaryOperator *BO = cast<BinaryOperator>(UserChain[ChainIndex]);
834 uint64_t Field = cast<ConstantInt>(GEP->getOperand(I))->getZExtValue()
    [all...]
IndVarSimplify.cpp 239 Instruction *U1 = cast<Instruction>(*IncrUse++);
241 Instruction *U2 = cast<Instruction>(*IncrUse++);
253 BranchInst *TheBr = cast<BranchInst>(Compare->user_back());
393 // int->fp cast.
511 static void visitIVCast(CastInst *Cast, WideIVInfo &WI,
514 bool IsSigned = Cast->getOpcode() == Instruction::SExt;
515 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt)
518 Type *Ty = Cast->getType();
520 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width))
523 // Check that `Cast` actually extends the induction variable (we rely on thi
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstructionCombining.cpp 307 /// cast to eliminate one of the associative operations:
308 /// (op (cast (op X, C2)), C1) --> (cast (op X, op (C1, C2)))
309 /// (op (cast (op X, C2)), C1) --> (op (cast X), op (C1, C2))
312 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0));
313 if (!Cast || !Cast->hasOneUse())
317 auto CastOpcode = Cast->getOpcode();
326 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0))
    [all...]
InstCombineLoadStoreAlloca.cpp 58 auto *I = cast<Instruction>(U.getUser());
256 Instruction *Inst = cast<Instruction>(&*U);
342 auto *PT = cast<PointerType>(I.getType());
343 auto *NT = cast<PointerType>(V->getType());
421 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy);
422 Instruction *NewI = replaceInstUsesWith(AI, Cast);
433 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy);
434 PtrReplacer.replacePointer(AI, Cast);
454 /// loaded *value* type. This will convert it to a pointer, cast the operand to
617 // cast to other types
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
Store.h 156 /// \p Cast.
157 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);
162 /// Evaluates a derived-to-base cast through a single level of derivation.
166 /// Attempts to do a down cast. Used to model BaseToDerived and C++
169 /// - Successful cast (ex: derived is subclass of base).
170 /// - Failed cast (ex: derived is definitely not a subclass of base).
174 /// enough info to determine if the cast will succeed at run time).
183 /// casted and 'CastToTy' the result type of the cast.
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
ThreadSafetyCommon.cpp 43 return cast<IntegerLiteral>(CE)->getValue().toString(10, true);
46 ret += cast<StringLiteral>(CE)->getString();
188 if (const auto *CE = dyn_cast<til::Cast>(E)) {
209 return translateDeclRefExpr(cast<DeclRefExpr>(S), Ctx);
211 return translateCXXThisExpr(cast<CXXThisExpr>(S), Ctx);
213 return translateMemberExpr(cast<MemberExpr>(S), Ctx);
215 return translateObjCIVarRefExpr(cast<ObjCIvarRefExpr>(S), Ctx);
217 return translateCallExpr(cast<CallExpr>(S), Ctx);
219 return translateCXXMemberCallExpr(cast<CXXMemberCallExpr>(S), Ctx);
221 return translateCXXOperatorCallExpr(cast<CXXOperatorCallExpr>(S), Ctx)
    [all...]
Consumed.cpp 502 void VisitCastExpr(const CastExpr *Cast);
756 void ConsumedStmtVisitor::VisitCastExpr(const CastExpr *Cast) {
757 forwardInfo(Cast->getSubExpr(), Cast);
841 VisitVarDecl(cast<VarDecl>(DI));
1094 const auto *Param = cast<ParmVarDecl>(DM.first);
1219 if (isAutoCastType(ReturnType)) // We can auto-cast the state to the
1240 PInfo = Visitor.getInfo(cast<BinaryOperator>(Cond)->getRHS());
CalledOnceCheck.cpp 1621 void VisitCStyleCastExpr(const CStyleCastExpr *Cast) {
1625 if (Cast->getType().getCanonicalType()->isVoidType()) {
1626 checkEscapee(Cast->getSubExpr());
  /src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
TargetTransformInfoImpl.h 765 const auto *VectorValue = cast<Constant>(Val);
769 auto *VT = cast<FixedVectorType>(Val->getType());
803 if (const auto *Cast = dyn_cast<SExtInst>(Val)) {
805 return Cast->getSrcTy()->getScalarSizeInBits() - 1;
808 if (const auto *Cast = dyn_cast<ZExtInst>(Val)) {
810 return Cast->getSrcTy()->getScalarSizeInBits();
825 const SCEVAddRecExpr *AddRec = cast<SCEVAddRecExpr>(Ptr);
947 auto *Intrinsic = cast<IntrinsicInst>(U);
960 if (cast<AllocaInst>(U)->isStaticAlloca())
964 const GEPOperator *GEP = cast<GEPOperator>(U)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
StackColoring.cpp 942 << cast<DILocalVariable>(VI.Var)->getName() << "].\n");
973 BitCastInst *Cast = new BitCastInst(Inst, From->getType());
974 Cast->insertAfter(Inst);
975 Inst = Cast;
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPUCodeGenPrepare.cpp 235 return cast<VectorType>(T)->getElementType()->getIntegerBitWidth();
243 return FixedVectorType::get(B.getInt32Ty(), cast<FixedVectorType>(T));
253 cast<ICmpInst>(I.getOperand(0))->isSigned() : false;
342 if (promotedOpIsNSW(cast<Instruction>(I)))
345 if (promotedOpIsNUW(cast<Instruction>(I)))
558 static SelectInst *findSelectThroughCast(Value *V, CastInst *&Cast) {
559 Cast = nullptr;
563 if ((Cast = dyn_cast<CastInst>(V))) {
564 if (SelectInst *Sel = dyn_cast<SelectInst>(Cast->getOperand(0)))
751 const FPMathOperator *FPOp = cast<const FPMathOperator>(&FDiv)
    [all...]

Completed in 41 milliseconds

1 2 3