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

  /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/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...]
SimplifyIndVar.cpp 154 ConstantInt *D = cast<ConstantInt>(UseInst->getOperand(1));
157 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth();
286 Users.push_back(cast<Instruction>(U));
448 auto *NarrowTy = cast<IntegerType>(LHS->getType());
563 !DT->isReachableFromEntry(cast<Instruction>(U)->getParent()))
805 BinaryOperator *Shr = cast<BinaryOperator>(U);
825 Instruction *UI = cast<Instruction>(U);
944 CastInst *Cast = dyn_cast<CastInst>(UseInst);
945 if (V && Cast) {
946 V->visitCast(Cast);
    [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/Transforms/Instrumentation/
ThreadSanitizer.cpp 403 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType());
451 Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand()
452 : cast<LoadInst>(I)->getPointerOperand();
464 ClDistinguishVolatile && (cast<LoadInst>(I)->isVolatile() ||
465 cast<StoreInst>(WI.Inst)->isVolatile());
615 Value *Addr = IsWrite ? cast<StoreInst>(II.Inst)->getPointerOperand()
616 : cast<LoadInst>(II.Inst)->getPointerOperand();
629 Value *StoredValue = cast<StoreInst>(II.Inst)->getValueOperand();
652 const unsigned Alignment = IsWrite ? cast<StoreInst>(II.Inst)->getAlignment()
653 : cast<LoadInst>(II.Inst)->getAlignment()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
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...]
InstCombineCompares.cpp 126 !cast<ConstantInt>(GEP->getOperand(1))->isZero() ||
184 Constant *CompareRHS = cast<Constant>(ICI.getOperand(1));
216 bool IsTrueForElt = !cast<ConstantInt>(C)->isZero();
448 // Cast to intptrty in case a truncation occurs. If an extension is needed,
517 auto *CI = cast<CastInst>(V);
661 if (isa<ConstantInt>(Op) && cast<ConstantInt>(Op)->isZero())
712 Value *Cast = Builder.CreatePointerCast(GEP, Val->getType(),
714 GEP = Cast;
841 isa<Constant>(RHS) && cast<Constant>(RHS)->isNullValue() &&
863 auto EC = cast<VectorType>(GEPLHS->getType())->getElementCount()
    [all...]
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...]
  /src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/
ThreadSafetyTIL.h 112 /// Opcode for cast operations.
1252 /// Cast expressions.
1253 /// Cast expressions are essentially unary operations, but we treat them
1255 class Cast : public SExpr {
1257 Cast(TIL_CastOpcode Op, SExpr *E) : SExpr(COP_Cast), Expr0(E) { Flags = Op; }
1258 Cast(const Cast &C, SExpr *E) : SExpr(C), Expr0(E) { Flags = C.Flags; }
1276 typename C::CType compare(const Cast* E, C& Cmp) const {
1488 case COP_Goto: return cast<Goto>(this)->successors();
1489 case COP_Branch: return cast<Branch>(this)->successors()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
ConstantFolding.cpp 116 // Handle a vector->scalar integer/fp cast.
118 unsigned NumSrcElts = cast<FixedVectorType>(VTy)->getNumElements();
149 // If this is a scalar -> vector cast, convert the input into a <1 x scalar>
161 unsigned NumDstElt = cast<FixedVectorType>(DestVTy)->getNumElements();
162 unsigned NumSrcElt = cast<FixedVectorType>(C->getType())->getNumElements();
166 Type *SrcEltTy = cast<VectorType>(C->getType())->getElementType();
226 cast<VectorType>(C->getType())->getElementType());
373 // If the type sizes are the same and a cast is legal, just directly
374 // cast the constant.
379 Instruction::CastOps Cast = Instruction::BitCast
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
HexagonVectorCombine.cpp 443 Type *ElemTy = cast<PointerType>(Ptr->getType())->getElementType();
793 propagateMetadata(cast<Instruction>(Load),
813 // Instead of casting everything to bytes for the vselect, cast to the
820 Value *Cast = Builder.CreateBitCast(Accum, ValTy);
821 Value *Sel = Builder.CreateSelect(getMask(B.Seg.Val), Cast,
881 propagateMetadata(cast<Instruction>(Store),
1109 auto *Ty = cast<VectorType>(Work[ThisW].front()->getType());
1137 auto *ValTy = cast<VectorType>(Val->getType());
1170 auto *MaskTy = cast<VectorType>(Mask->getType());
1179 Value *Cast = Builder.CreateBitCast
    [all...]
  /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/lib/CodeGen/SelectionDAG/
LegalizeFloatTypes.cpp 222 ConstantFPSDNode *CN = cast<ConstantFPSDNode>(N);
677 LoadSDNode *L = cast<LoadSDNode>(N);
894 ISD::CondCode CCCode = cast<CondCodeSDNode>(N->getOperand(1))->get();
978 ISD::CondCode CCCode = cast<CondCodeSDNode>(N->getOperand(4))->get();
1006 cast<CondCodeSDNode>(N->getOperand(IsStrict ? 3 : 2))->get();
1039 StoreSDNode *ST = cast<StoreSDNode>(N);
1260 APInt C = cast<ConstantFPSDNode>(N)->getValueAPF().bitcastToAPInt();
1613 LoadSDNode *LD = cast<LoadSDNode>(N);
1783 case ISD::STORE: Res = ExpandFloatOp_STORE(cast<StoreSDNode>(N),
1843 ISD::CondCode CCCode = cast<CondCodeSDNode>(N->getOperand(1))->get()
    [all...]
DAGCombiner.cpp 608 SDValue matchVSelectOpSizesWithSetCC(SDNode *Cast);
995 !cast<ConstantSDNode>(LD->getOperand(2))->isOpaque());
1211 LoadSDNode *LD = cast<LoadSDNode>(Op);
1448 LoadSDNode *LD = cast<LoadSDNode>(N);
2189 ISD::CondCode CC = cast<CondCodeSDNode>(SetCC->getOperand(2))->get();
2690 VTSDNode *TN = cast<VTSDNode>(N1.getOperand(1));
3532 VTSDNode *TN = cast<VTSDNode>(N1.getOperand(1));
3773 ConstValue1 = cast<ConstantSDNode>(N1)->getAPIntValue();
3774 N1IsOpaqueConst = cast<ConstantSDNode>(N1)->isOpaque();
4902 auto *SVN0 = cast<ShuffleVectorSDNode>(N0)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/IR/
AutoUpgrade.cpp 1027 auto Ctor = cast<Constant>(Init->getOperand(i));
1042 auto *ResultTy = cast<FixedVectorType>(Op->getType());
1047 Op = Builder.CreateBitCast(Op, VecTy, "cast");
1069 return Builder.CreateBitCast(Res, ResultTy, "cast");
1076 auto *ResultTy = cast<FixedVectorType>(Op->getType());
1081 Op = Builder.CreateBitCast(Op, VecTy, "cast");
1103 return Builder.CreateBitCast(Res, ResultTy, "cast");
1110 Builder.getInt1Ty(), cast<IntegerType>(Mask->getType())->getBitWidth());
1134 cast<FixedVectorType>(Op0->getType())->getNumElements());
1159 unsigned ShiftVal = cast<llvm::ConstantInt>(Shift)->getZExtValue()
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
CFG.cpp 157 auto *Decl1 = cast<DeclRefExpr>(E1)->getDecl();
158 auto *Decl2 = cast<DeclRefExpr>(E2)->getDecl();
434 InitListExpr *IE = cast<InitListExpr>(S);
794 assert(!isa<Expr>(S) || cast<Expr>(S)->IgnoreParens() == S);
1373 auto *CE = cast<CXXConstructExpr>(Child);
1389 auto *E = cast<Expr>(Child);
1395 auto *Cleanups = cast<ExprWithCleanups>(Child);
1400 auto *Cast = cast<CXXFunctionalCastExpr>(Child);
1401 findConstructionContexts(Layer, Cast->getSubExpr())
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGObjC.cpp 44 return llvm::ConstantPointerNull::get(cast<llvm::PointerType>(type));
92 // and cast value to correct type
103 // Cast type encoding to correct type
106 llvm::Value *Cast = Builder.CreateBitCast(GV, ConvertType(EncodingQT));
108 Args.add(RValue::get(Cast), EncodingQT);
126 DLE = cast<ObjCDictionaryLiteral>(E);
138 cast<llvm::LoadInst>(Ptr)->setMetadata(
279 // We have applied a substitution. Cast the rvalue appropriately.
677 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl());
684 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl)
    [all...]
TargetInfo.cpp 316 // Cast the element type to i8* if necessary. Some platforms define
377 // Cast the address we've calculated to the right type.
827 llvm::Function *Fn = cast<llvm::Function>(GV);
833 llvm::Function *Fn = cast<llvm::Function>(GV);
839 llvm::Function *Fn = cast<llvm::Function>(GV);
847 llvm::Function *Fn = cast<llvm::Function>(GV);
1019 cast<llvm::VectorType>(IRType)->getElementType()->isIntegerTy() &&
1030 if (cast<llvm::VectorType>(Ty)->getPrimitiveSizeInBits().getFixedSize() !=
2111 llvm::Function *Fn = cast<llvm::Function>(GV);
2116 auto PtrTy = cast<PointerType>(FD->getParamDecl(0)->getType())
    [all...]
CGExpr.cpp 55 cast<llvm::PointerType>(value->getType())->getAddressSpace();
89 // cast alloca to the default address space when necessary.
134 cast<llvm::AddrSpaceCastInst>(Alloca)->getPointerOperand())));
159 auto *ArrayTy = cast<llvm::ArrayType>(Result.getType()->getElementType());
342 auto *ClassDecl = cast<CXXRecordDecl>(RT->getDecl());
365 CleanupArg = cast<llvm::Constant>(ReferenceTemporary.getPointer());
368 CGF, *cast<VarDecl>(M->getExtendingDecl()), CleanupFn, CleanupArg);
446 !cast<VarDecl>(M->getExtendingDecl())->isARCPseudoStrong()) &&
515 cast<llvm::Constant>(Object.getPointer()),
640 return cast<llvm::ConstantInt>(Elts->getAggregateElement(Idx)
    [all...]
CodeGenModule.cpp 278 auto *OldF = cast<llvm::Function>(Entry);
284 auto *CE = cast<llvm::ConstantExpr>(Replacement);
343 const auto *D = cast<ValueDecl>(GD.getDecl());
352 auto *Alias = cast<llvm::GlobalIndirectSymbol>(Entry);
373 AliaseeGV = cast<llvm::GlobalValue>(CE->getOperand(0));
375 AliaseeGV = cast<llvm::GlobalValue>(Aliasee);
405 auto *Alias = cast<llvm::GlobalIndirectSymbol>(Entry);
1340 const auto *ND = cast<NamedDecl>(GD.getDecl());
1382 MangleCtx.mangleBlock(cast<DeclContext>(D), BD, Out);
1454 const auto *D = cast<FunctionDecl>(GD.getDecl())
    [all...]
ItaniumCXXABI.cpp 57 return cast<ItaniumMangleContext>(CodeGen::CGCXXABI::getMangleContext());
631 cast<CXXRecordDecl>(MPT->getClass()->castAs<RecordType>()->getDecl());
650 // Apply the adjustment and cast back to the original struct type
676 // Cast the adjusted this to a pointer to vtable pointer and load.
858 // Cast to char*.
865 // Cast the address to the appropriate pointer type, adopting the
908 return EmitMemberPointerConversion(E, cast<llvm::Constant>(src));
936 uint64_t offset = cast<llvm::ConstantInt>(adj)->getZExtValue();
984 uint64_t offset = cast<llvm::ConstantInt>(adj)->getZExtValue();
1251 cast<CXXRecordDecl>(ElementType->castAs<RecordType>()->getDecl())
    [all...]
  /src/external/apache2/llvm/dist/llvm/utils/unittest/googlemock/include/gmock/
gmock-matchers.h 130 static Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
177 // Note that we first attempt to perform an implicit cast on the value and
195 static Matcher<T> Cast(const Matcher<U>& source_matcher) {
244 static Matcher<T> Cast(const Matcher<T>& matcher) { return matcher; }
255 return internal::MatcherCastImpl<T, M>::Cast(matcher);
268 static inline Matcher<T> Cast(const M& polymorphic_matcher_or_value) {
269 return internal::MatcherCastImpl<T, M>::Cast(polymorphic_matcher_or_value);
282 static inline Matcher<T> Cast(const Matcher<U>& matcher) {
307 return SafeMatcherCastImpl<T>::Cast(polymorphic_matcher);
1658 // If To is a pointer and the cast fails, the inner matcher will receive NULL
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
LoopStrengthReduce.cpp 500 (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
531 (cast<SCEVAddRecExpr>(S)->getLoop() == &L);
939 return isHighCostExpansion(cast<SCEVTruncateExpr>(S)->getOperand(),
942 return isHighCostExpansion(cast<SCEVZeroExtendExpr>(S)->getOperand(),
945 return isHighCostExpansion(cast<SCEVSignExtendExpr>(S)->getOperand(),
1663 // The cast does the right thing with
2072 /// If IV is used in a int-to-float cast inside the loop then try to eliminate
2073 /// the cast operation.
2087 /* If shadow use is a int->float cast then insert a second IV
2088 to eliminate this cast
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
SIISelLowering.cpp 1052 = cast<ConstantInt>(CI.getArgOperand(0))->getZExtValue();
1068 unsigned DMask = cast<ConstantInt>(CI.getArgOperand(1))->getZExtValue();
1104 const ConstantInt *Vol = cast<ConstantInt>(CI.getOperand(4));
1134 const ConstantInt *Vol = cast<ConstantInt>(CI.getOperand(1));
1540 const MemSDNode *MemNode = cast<MemSDNode>(N);
1564 const MemSDNode *MemNode = cast<MemSDNode>(N);
3286 MaybeAlign Alignment = cast<ConstantSDNode>(Tmp3)->getMaybeAlignValue();
4569 // Cast back to the original packed type or to a larger type that is a
4600 // Cast back to the original packed type.
4679 const auto *CD = cast<ConstantSDNode>(N->getOperand(3))
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
AArch64ISelLowering.cpp 1440 // We use EXTRACT_SUBVECTOR to "cast" a scalable vector to a fixed length one.
1711 ConstantSDNode *CN = cast<ConstantSDNode>(Op->getOperand(1));
1718 EVT VT = cast<MemIntrinsicSDNode>(Op)->getMemoryVT();
1728 unsigned IntNo = cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue();
2633 ISD::CondCode CC = cast<CondCodeSDNode>(Val->getOperand(2))->get();
2854 !isLegalArithImmed(cast<ConstantSDNode>(RHS)->getZExtValue())) {
2866 const ConstantSDNode *RHSC = cast<ConstantSDNode>(RHS);
2885 cast<LoadSDNode>(LHS)->getExtensionType() == ISD::ZEXTLOAD &&
2886 cast<LoadSDNode>(LHS)->getMemoryVT() == MVT::i16 &&
2888 int16_t ValueofRHS = cast<ConstantSDNode>(RHS)->getZExtValue()
    [all...]

Completed in 135 milliseconds