Searched refs:getType (Results 1 - 25 of 533) sorted by relevance

1234567891011>>

/freebsd-10-stable/contrib/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp34 ParamTys.push_back(I->getType());
42 switch((int)Fn->arg_begin()->getType()->getTypeID()) {
55 Fn->arg_begin()->getType());
74 ParamTys.push_back((*I)->getType());
167 assert(V->getType()->isIntegerTy() && "Can't bswap a non-integer type!");
169 unsigned BitSize = V->getType()->getPrimitiveSizeInBits();
176 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8),
178 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8),
184 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24),
186 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(),
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprAgg.cpp121 if (E->getDecl()->getType()->isReferenceType()) {
124 EmitFinalDestCopy(E->getType(), result.getReferenceLValue(CGF, E));
181 return EmitFinalDestCopy(E->getType(), LV);
184 CGF.EmitPseudoObjectRValue(E, EnsureSlot(E->getType()));
194 CGF.EmitAtomicExpr(E, EnsureSlot(E->getType()).getAddr());
210 if (LV.getType()->isAtomicType()) {
215 EmitFinalDestCopy(E->getType(), LV);
256 CGF.getContext().getTypeInfoInChars(E->getType());
257 EmitFinalDestCopy(E->getType(), src, typeInfo.second);
319 Ctx.getAsConstantArrayType(E->getSubExpr()->getType());
[all...]
H A DCGExpr.cpp41 cast<llvm::PointerType>(value->getType())->getAddressSpace();
47 if (value->getType() == destType) return value;
88 if (const MemberPointerType *MPT = E->getType()->getAs<MemberPointerType>()) {
94 if (!E->getType()->isAnyComplexType())
95 return EmitScalarConversion(EmitScalarExpr(E), E->getType(), BoolTy);
97 return EmitComplexToScalarConversion(EmitComplexExpr(E), E->getType(),BoolTy);
117 switch (getEvaluationKind(E->getType())) {
124 aggSlot = CreateAggTemp(E->getType(), "agg-temp");
136 if (hasAggregateEvaluationKind(E->getType()))
137 AggSlot = CreateAggTemp(E->getType(), "ag
[all...]
H A DCGExprScalar.cpp56 return E->getType()->isNullPtrType();
128 llvm::Value *Zero = llvm::Constant::getNullValue(V->getType());
135 cast<llvm::PointerType>(V->getType()));
144 if (ZI->getOperand(0)->getType() == Builder.getInt1Ty()) {
190 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
193 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
196 return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());
199 return EmitNullValue(E->getType());
202 return EmitNullValue(E->getType());
208 return Builder.CreateBitCast(V, ConvertType(E->getType()));
[all...]
H A DCGExprConstant.cpp78 CGM.getDataLayout().getABITypeAlignment(C->getType()));
83 CGM.getDataLayout().getTypeAllocSize(C->getType()));
219 if (!isa<llvm::IntegerType>(LastElt->getType())) {
222 assert(isa<llvm::ArrayType>(LastElt->getType()) &&
224 llvm::ArrayType *AT = cast<llvm::ArrayType>(LastElt->getType());
237 Elements.back()->getType()->isIntegerTy(CharWidth) &&
319 CGM.getDataLayout().getABITypeAlignment(C->getType()));
350 RecordDecl *RD = ILE->getType()->getAs<RecordType>()->getDecl();
371 Field->getType(), CGF);
373 EltInit = CGM.EmitNullConstant(Field->getType());
[all...]
/freebsd-10-stable/contrib/llvm/lib/Target/Hexagon/
H A DHexagonRemoveSZExtArgs.cpp61 if (!isa<PointerType>(Arg->getType())) {
66 SExtInst* SI = new SExtInst(Arg, Use->getType());
67 assert (EVT::getEVT(SI->getType()) ==
68 (EVT::getEVT(Use->getType())));
/freebsd-10-stable/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp31 return ConstantInt::get(Val->getType(), 0);
84 PointerType *PTy = cast<PointerType>(CI.getType());
130 Amt = ConstantInt::get(AI.getArraySize()->getType(), Scale);
136 Value *Off = ConstantInt::get(AI.getArraySize()->getType(),
151 Value *NewCast = AllocaBuilder.CreateBitCast(New, AI.getType(), "tmpcast");
197 if (I->getOperand(0)->getType() == Ty)
241 Type *SrcTy = CI->getOperand(0)->getType(); // A from above
242 Type *MidTy = CI->getType(); // B from above
273 if (V->getType() == Ty || isa<Constant>(V)) return false;
298 isEliminableCastPair(CSrc, CI.getOpcode(), CI.getType(), T
[all...]
H A DInstCombineCalls.cpp87 cast<PointerType>(MI->getArgOperand(1)->getType())->getAddressSpace();
89 cast<PointerType>(MI->getArgOperand(0)->getType())->getAddressSpace();
104 Type *SrcETy = cast<PointerType>(StrippedDest->getType())
150 MI->setArgOperand(2, Constant::getNullValue(MemOpLength->getType()));
165 if (!LenC || !FillC || !FillC->getType()->isIntegerTy(8))
176 unsigned DstAddrSp = cast<PointerType>(Dest->getType())->getAddressSpace();
190 MI->setLength(Constant::getNullValue(LenC->getType()));
246 Type *Tys[3] = { CI.getArgOperand(0)->getType(),
247 CI.getArgOperand(1)->getType(),
248 CI.getArgOperand(2)->getType() };
[all...]
H A DInstCombineVectorOps.cpp29 for (unsigned i = 1, e = V->getType()->getVectorNumElements(); i != e;
64 assert(V->getType()->isVectorTy() && "Not looking at a vector?");
65 VectorType *VTy = cast<VectorType>(V->getType());
90 unsigned LHSWidth = SVI->getOperand(0)->getType()->getVectorNumElements();
136 PHINode::Create(EI.getType(), PN->getNumIncomingValues(), ""), *PN));
193 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
216 if (VectorType *VT = dyn_cast<VectorType>(BCI->getOperand(0)->getType()))
219 return new BitCastInst(Elt, EI.getType());
263 SVI->getOperand(0)->getType()->getVectorNumElements();
266 return ReplaceInstUsesWith(EI, UndefValue::get(EI.getType()));
[all...]
H A DInstCombineLoadStoreAlloca.cpp157 Type *IntPtrTy = TD->getIntPtrType(AI.getType());
158 if (AI.getArraySize()->getType() != IntPtrTy) {
184 ? TD->getIntPtrType(AI.getType())
196 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType()));
213 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1));
242 if (AI.getType() != EntryAI->getType())
243 return new BitCastInst(EntryAI, AI.getType());
267 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(TheSrc, AI.getType());
288 PointerType *DestTy = cast<PointerType>(CI->getType());
[all...]
/freebsd-10-stable/contrib/llvm/lib/IR/
H A DIRBuilder.cpp29 GlobalVariable *GV = new GlobalVariable(M, StrConstant->getType(),
43 PointerType *PT = cast<PointerType>(Ptr->getType());
68 Type *Tys[] = { Ptr->getType(), Size->getType() };
88 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
112 Type *Tys[] = { Dst->getType(), Src->getType(), Size->getType() };
[all...]
H A DInstructions.cpp63 if (Op1->getType() != Op2->getType())
66 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) {
70 VectorType *ET = dyn_cast<VectorType>(Op1->getType());
76 } else if (Op0->getType() != Type::getInt1Ty(Op0->getContext())) {
88 : Instruction(PN.getType(), Instruction::PHI,
132 replaceAllUsesWith(UndefValue::get(getType()));
172 return UndefValue::get(getType());
195 : Instruction(LP.getType(), Instruction::LandingPad,
272 cast<FunctionType>(cast<PointerType>(Func->getType())
[all...]
H A DConstants.cpp57 if (getType()->isFPOrFPVectorTy())
205 assert(isa<IntegerType>(Elt->getType()) && "Index must be an integer");
242 assert(C->getType()->isFirstClassType() && "Cannot evaluate aggregate vals!");
517 assert(C->getType() == Ty->getScalarType() &&
661 return Constant::getNullValue(getType()->getSequentialElementType());
667 return Constant::getNullValue(getType()->getStructElementType(Elt));
673 if (isa<SequentialType>(getType()))
681 if (isa<SequentialType>(getType()))
694 return UndefValue::get(getType()->getSequentialElementType());
700 return UndefValue::get(getType()
[all...]
H A DVerifier.cpp440 Assert1(GVar && GVar->getType()->getElementType()->isArrayTy(),
447 Assert1(GV.getInitializer()->getType() == GV.getType()->getElementType(),
471 if (ArrayType *ATy = dyn_cast<ArrayType>(GV.getType())) {
486 Type *GVType = GV.getType()->getElementType();
543 Assert1(GA.getType() == GA.getAliasee()->getType(),
559 unsigned SrcAS = CE->getOperand(0)->getType()->getPointerAddressSpace();
560 unsigned DstAS = CE->getType()->getPointerAddressSpace();
982 Type *SrcTy = CE->getOperand(0)->getType();
[all...]
H A DConstantFold.cpp53 if (NumElts != CV->getType()->getVectorNumElements())
85 Type *SrcTy = Op->getOperand(0)->getType();
86 Type *MidTy = Op->getType();
101 Type *SrcTy = V->getType();
107 if (PointerType *PTy = dyn_cast<PointerType>(V->getType()))
139 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
199 assert(C->getType()->isIntegerTy() &&
200 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 &&
202 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8;
298 cast<IntegerType>(CE->getOperand(0)->getType())
[all...]
/freebsd-10-stable/contrib/llvm/lib/Target/R600/
H A DSITypeRewriter.cpp84 Type *PtrTy = Ptr->getType();
95 Value *BitCastLoad = Builder.CreateBitCast(Load, I.getType());
110 if (Arg->getType() == v16i8) {
115 } else if (Arg->getType()->isVectorTy() &&
116 Arg->getType()->getVectorNumElements() == 1 &&
117 Arg->getType()->getVectorElementType() ==
119 Type *ElementTy = Arg->getType()->getVectorElementType();
130 Types.push_back(Arg->getType());
/freebsd-10-stable/contrib/llvm/lib/Transforms/Utils/
H A DInstructionNamer.cpp37 if (!AI->hasName() && !AI->getType()->isVoidTy())
45 if (!I->hasName() && !I->getType()->isVoidTy())
/freebsd-10-stable/contrib/llvm/lib/Analysis/IPA/
H A DFindUsedTypes.cpp45 IncorporateType(V->getType());
65 IncorporateType(I->getType());
71 IncorporateType(MI->getType());
81 IncorporateType(I.getType()); // Incorporate the type of the instruction
/freebsd-10-stable/contrib/llvm/include/llvm/IR/
H A DIntrinsicInst.h139 return cast<PointerType>(getRawDest()->getType())->getAddressSpace();
150 assert(getRawDest()->getType() == Ptr->getType() &&
156 assert(getLength()->getType() == L->getType() &&
170 return getArgOperand(3)->getType();
197 assert(getValue()->getType() == Val->getType() &&
225 return cast<PointerType>(getRawSource()->getType())->getAddressSpace();
229 assert(getRawSource()->getType()
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DExprEngineC.cpp71 RHS->getType()->isIntegralOrEnumerationType() &&
73 RightV = svalBuilder.conjureSymbolVal(RHS, LCtx, RHS->getType(),
77 LHS->getType()->isIntegralOrEnumerationType() &&
79 LeftV = svalBuilder.conjureSymbolVal(LHS, LCtx, LHS->getType(),
86 SVal Result = evalBinOp(state, Op, LeftV, RightV, B->getType());
136 QualType LTy = getContext().getCanonicalType(LHS->getType());
143 B->getType(), CTy);
183 CanQualType T = getContext().getCanonicalType(BE->getType());
238 QualType T = CastE->getType();
239 QualType ExTy = Ex->getType();
[all...]
/freebsd-10-stable/contrib/llvm/lib/Analysis/
H A DCostModel.cpp134 SmallVector<int, 32> Mask(SI->getType()->getVectorNumElements(), -1);
159 assert(BinOp->getType()->isVectorTy() && "Expecting a vector type");
246 Type *VecTy = ReduxRoot->getOperand(0)->getType();
310 Type *VecTy = ReduxRoot->getOperand(0)->getType();
374 Type *ValTy = I->getOperand(0)->getType()->getPointerElementType();
405 return TTI->getArithmeticInstrCost(I->getOpcode(), I->getType(), Op1VK,
410 Type *CondTy = SI->getCondition()->getType();
411 return TTI->getCmpSelInstrCost(I->getOpcode(), I->getType(), CondTy);
415 Type *ValTy = I->getOperand(0)->getType();
420 Type *ValTy = SI->getValueOperand()->getType();
[all...]
H A DConstantFolding.cpp58 VectorType *VTy = dyn_cast<VectorType>(C->getType());
112 unsigned NumSrcElt = C->getType()->getVectorNumElements();
116 Type *SrcEltTy = C->getType()->getVectorElementType();
178 Src = ConstantExpr::getZExt(Src, Elt->getType());
182 ConstantInt::get(Src->getType(), ShiftAmt));
208 ConstantInt::get(Src->getType(), ShiftAmt));
227 unsigned BitWidth = TD.getPointerTypeSizeInBits(GV->getType());
246 unsigned BitWidth = TD.getPointerTypeSizeInBits(GEP->getType());
268 assert(ByteOffset <= TD.getTypeAllocSize(C->getType()) &&
295 if (CFP->getType()
[all...]
/freebsd-10-stable/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXLowerAggrCopies.cpp37 Type *indType = len->getType();
48 unsigned srcAS = dyn_cast<PointerType>(srcAddr->getType())->getAddressSpace();
49 unsigned dstAS = dyn_cast<PointerType>(dstAddr->getType())->getAddressSpace();
84 unsigned dstAS = dyn_cast<PointerType>(dstAddr->getType())->getAddressSpace();
88 builder.CreateBitCast(dstAddr, PointerType::get(val->getType(), dstAS));
91 PHINode *ind = loop.CreatePHI(len->getType(), 0);
92 ind->addIncoming(ConstantInt::get(len->getType(), 0), origBB);
96 Value *newind = loop.CreateAdd(ind, ConstantInt::get(len->getType(), 1));
123 if (TD->getTypeStoreSize(load->getType()) < MaxAggrCopySize)
169 unsigned numLoads = TD->getTypeStoreSize(load->getType());
[all...]
/freebsd-10-stable/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DDynamicTypeInfo.h34 QualType getType() const { return T; } function in class:clang::ento::DynamicTypeInfo
/freebsd-10-stable/contrib/llvm/tools/clang/lib/AST/
H A DMangleNumberingContext.cpp24 = CallOperator->getType()->getAs<FunctionProtoType>();

Completed in 207 milliseconds

1234567891011>>