Searched refs:getType (Results 26 - 50 of 533) sorted by relevance

1234567891011>>

/freebsd-10.3-release/contrib/llvm/lib/Analysis/
H A DScalarEvolutionExpander.cpp52 if (U->getType() == Ty)
65 CI->setOperand(0, UndefValue::get(V->getType()));
95 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) &&
100 if (V->getType() == Ty)
103 if (CI->getOperand(0)->getType() == Ty)
109 SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) {
113 SE.getTypeSizeInBits(CI->getType()) ==
114 SE.getTypeSizeInBits(CI->getOperand(0)->getType()))
119 SE.getTypeSizeInBits(CE->getType()) ==
120 SE.getTypeSizeInBits(CE->getOperand(0)->getType()))
[all...]
H A DCaptureTracking.cpp83 assert(V->getType()->isPointerTy() && "Capture is for pointers only!");
113 if (CS.onlyReadsMemory() && CS.doesNotThrow() && I->getType()->isVoidTy())
169 if (CPN->getType()->getAddressSpace() == 0)
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DCastToStructChecker.cpp38 QualType OrigTy = Ctx.getCanonicalType(E->getType());
39 QualType ToTy = Ctx.getCanonicalType(CE->getType());
H A DFixedAddressChecker.cpp43 QualType T = B->getType();
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Utils/
H A DCmpInstAnalysis.cpp77 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 0);
85 return ConstantInt::get(CmpInst::makeCmpResultType(LHS->getType()), 1);
H A DSimplifyIndVar.cpp112 assert(SE->isSCEVable(IVSrc->getType()) && "Expect SCEVable IV operand");
117 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth();
127 if (!SE->isSCEVable(UseInst->getType()))
210 SE->getMinusSCEV(S, SE->getConstant(S->getType(), 1));
223 ConstantInt::get(Rem->getType(), 0),
252 if (!SE->isSCEVable(UseInst->getType()) ||
253 (UseInst->getType() != IVOperand->getType()) ||
293 if (!SE->isSCEVable(I->getType()))
320 if (!SE->isSCEVable(CurrIV->getType()))
[all...]
H A DSimplifyLibCalls.cpp121 if ((*it)->getType()->isFloatingPointTy())
504 return Constant::getNullValue(CI->getType());
540 return Constant::getNullValue(CI->getType());
559 return ConstantInt::get(CI->getType(), 0);
567 return ConstantInt::get(CI->getType(), Str1.compare(Str2));
571 CI->getType()));
574 return B.CreateZExt(B.CreateLoad(Str1P, "strcmpload"), CI->getType());
605 return ConstantInt::get(CI->getType(), 0);
615 return ConstantInt::get(CI->getType(), 0);
628 return ConstantInt::get(CI->getType(), SubStr
[all...]
H A DBypassSlowDivision.cpp133 Dividend->getType());
136 Dividend->getType());
141 PHINode *QuoPhi = SuccessorBuilder.CreatePHI(Instr->getType(), 2);
144 PHINode *RemPhi = SuccessorBuilder.CreatePHI(Instr->getType(), 2);
166 Value *ZeroV = ConstantInt::getSigned(Dividend->getType(), 0);
242 if (!J->getType()->isIntegerTy())
246 IntegerType *T = cast<IntegerType>(J->getType());
H A DCloneModule.cpp48 I->getType()->getElementType(),
53 I->getType()->getAddressSpace());
61 Function::Create(cast<FunctionType>(I->getType()->getElementType()),
70 GlobalAlias *GA = new GlobalAlias(I->getType(), I->getLinkage(),
H A DDemoteRegToStack.cpp34 Slot = new AllocaInst(I.getType(), 0,
38 Slot = new AllocaInst(I.getType(), 0, I.getName()+".reg2mem",
119 Slot = new AllocaInst(P->getType(), 0,
123 Slot = new AllocaInst(P->getType(), 0, P->getName()+".reg2mem",
/freebsd-10.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp28 return ConstantInt::get(cast<IntegerType>(C->getType()), 1);
33 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));
37 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
61 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) {
96 if (VectorType *VTy = dyn_cast<VectorType>(In1->getType())) {
237 uint64_t ArrayElementCount = Init->getType()->getArrayNumElements();
255 Type *EltTy = Init->getType()->getArrayElementType();
398 Type *IntPtrTy = TD->getIntPtrType(GEP->getType());
400 if (Idx->getType()->getPrimitiveSizeInBits() > PtrSize)
411 Value *FirstTrueIdx = ConstantInt::get(Idx->getType(), FirstTrueElemen
[all...]
H A DInstCombineShifts.cpp23 assert(I.getOperand(1)->getType() == I.getOperand(0)->getType());
47 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1),
126 unsigned TypeWidth = I->getType()->getScalarSizeInBits();
150 unsigned TypeWidth = I->getType()->getScalarSizeInBits();
213 unsigned TypeWidth = BO->getType()->getScalarSizeInBits();
223 return Constant::getNullValue(I->getType());
225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt));
247 BO->setOperand(1, ConstantInt::get(BO->getType(),
255 unsigned TypeWidth = BO->getType()
[all...]
H A DInstCombinePHI.cpp31 Type *LHSType = LHSVal->getType();
32 Type *RHSType = RHSVal->getType();
49 I->getOperand(0)->getType() != LHSType ||
50 I->getOperand(1)->getType() != RHSType)
149 if (!GEP || !GEP->hasOneUse() || GEP->getType() != FirstInst->getType() ||
175 if (FirstInst->getOperand(op)->getType() !=GEP->getOperand(op)->getType())
207 PHINode *NewPN = PHINode::Create(FirstOp->getType(), e,
348 PHINode *NewPN = PHINode::Create(FirstLI->getOperand(0)->getType(),
[all...]
H A DInstCombineSelect.cpp114 return Constant::getNullValue(I->getType());
116 return Constant::getAllOnesValue(I->getType());
118 return ConstantInt::get(I->getType(), 1);
130 Type *FIOpndTy = FI->getOperand(0)->getType();
131 if (TI->getOperand(0)->getType() != FIOpndTy)
135 Type *CondTy = SI.getCondition()->getType();
147 TI->getType());
345 return ConstantFoldInstOperands(I->getOpcode(), I->getType(),
370 if (!IC || !IC->isEquality() || !SI.getType()->isIntegerTy())
399 V = Builder->CreateZExtOrTrunc(V, Y->getType());
[all...]
/freebsd-10.3-release/contrib/llvm/lib/IR/
H A DTypeFinder.cpp29 incorporateType(I->getType());
37 incorporateType(I->getType());
45 incorporateType(FI->getType());
62 incorporateType(I.getType());
135 incorporateType(V->getType());
H A DGlobals.cpp96 assert(InitVal->getType() == Ty &&
117 assert(InitVal->getType() == Ty &&
173 assert(InitVal->getType() == getType()->getElementType() &&
202 assert(aliasee->getType() == Ty && "Alias and aliasee types should match!");
226 assert((!Aliasee || Aliasee->getType() == getType()) &&
/freebsd-10.3-release/contrib/llvm/lib/Transforms/Scalar/
H A DGVN.cpp165 e.type = I->getType();
203 e.type = CmpInst::makeCmpResultType(LHS->getType());
219 e.type = EI->getType();
837 StoredVal->getType()->isStructTy() ||
838 StoredVal->getType()->isArrayTy())
842 if (TD.getTypeSizeInBits(StoredVal->getType()) <
863 Type *StoredValTy = StoredVal->getType();
915 Constant *Val = ConstantInt::get(StoredVal->getType(), StoreSize-LoadSize);
1020 if (DepSI->getValueOperand()->getType()->isStructTy() ||
1021 DepSI->getValueOperand()->getType()
[all...]
H A DSCCP.cpp228 if (GV->getType()->getElementType()->isSingleValueType()) {
287 assert(!V->getType()->isStructTy() && "Should use other method");
294 if (StructType *STy = dyn_cast<StructType>(V->getType()))
316 assert(!V->getType()->isStructTy() && "Should use other method");
321 assert(!V->getType()->isStructTy() && "Should use other method");
359 assert(!V->getType()->isStructTy() && "Should use other method");
368 assert(!V->getType()->isStructTy() && "Should use getStructValueState");
391 assert(V->getType()->isStructTy() && "Should use getValueState");
392 assert(i < cast<StructType>(V->getType())->getNumElements() &&
654 if (PN.getType()
[all...]
H A DScalarReplAggregates.cpp477 if (LI->getType()->isX86_MMXTy())
480 MergeInTypeForLoadOrStore(LI->getType(), Offset);
488 if (SI->getOperand(0)->getType()->isX86_MMXTy())
491 MergeInTypeForLoadOrStore(SI->getOperand(0)->getType(), Offset);
518 if (!GEPNonConstantIdx->getType()->isIntegerTy(32))
631 = ConvertScalar_ExtractValue(LoadedVal, LI->getType(), Offset,
702 PointerType* SPTy = cast<PointerType>(SrcPtr->getType());
703 PointerType* AIPTy = cast<PointerType>(NewAI->getType());
719 PointerType* DPTy = cast<PointerType>(MTI->getDest()->getType());
720 PointerType* AIPTy = cast<PointerType>(NewAI->getType());
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransBlockObjCVariable.cpp85 var->getType()->isObjCObjectPointerType() &&
86 isImplicitStrong(var->getType())) {
141 bool useWeak = canApplyWeak(Pass.Ctx, var->getType());
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/AST/
H A DInheritViz.cpp98 QualType CanonBaseType = Context.getCanonicalType(Base->getType());
106 WriteNode(Base->getType(), Base->isVirtual());
112 WriteNodeReference(Base->getType(), Base->isVirtual());
/freebsd-10.3-release/contrib/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCInst.cpp32 unsigned HexagonMCInst::getType() const { function in class:HexagonMCInst
42 getType() != HexagonII::TypeENDLOOP);
47 return (getType() == HexagonII::TypePREFIX);
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprComplex.cpp149 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType());
152 return EmitCast(E->getCastKind(), E->getSubExpr(), E->getType());
200 assert(E->getType()->isAnyComplexType() && "Expected complex type!");
201 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
206 assert(E->getType()->isAnyComplexType() && "Expected complex type!");
207 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
298 if (lvalue.getType()->isAtomicType())
305 QualType ComplexTy = lvalue.getType();
332 if (lvalue.getType()->isAtomicType())
340 QualType ComplexTy = lvalue.getType();
[all...]
/freebsd-10.3-release/contrib/llvm/include/llvm/Analysis/
H A DScalarEvolutionExpressions.h46 Type *getType() const { return V->getType(); } function in class:llvm::SCEVConstant
67 Type *getType() const { return Ty; } function in class:llvm::SCEVCastExpr
157 Type *getType() const { return getOperand(0)->getType(); }
211 Type *getType() const { function in class:llvm::SCEVAddExpr
215 return getOperand(getNumOperands() - 1)->getType();
258 Type *getType() const { function in class:llvm::SCEVUDivExpr
264 return getRHS()->getType();
442 Type *getType() cons function in class:llvm::SCEVUnknown
[all...]
/freebsd-10.3-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DConstraintManager.cpp30 QualType Ty = Sym->getType();

Completed in 278 milliseconds

1234567891011>>