Searched defs:Ty (Results 151 - 175 of 237) sorted by relevance

12345678910

/external/clang/lib/Parse/
H A DParseObjc.cpp906 ParsedType Ty; local
920 Ty = type.get();
933 Ty = Actions.ActOnObjCInstanceType(Tok.getLocation());
949 return Ty;
2810 TypeResult Ty = ParseTypeName(); local
2814 if (Ty.isInvalid())
2818 Ty.get(), T.getCloseLocation());
/external/clang/lib/Sema/
H A DSemaExprMember.cpp857 QualType Ty,
864 TemplateArgs, Ty, VK, OK);
850 BuildMemberExpr(Sema &SemaRef, ASTContext &C, Expr *Base, bool isArrow, const CXXScopeSpec &SS, SourceLocation TemplateKWLoc, ValueDecl *Member, DeclAccessPair FoundDecl, const DeclarationNameInfo &MemberNameInfo, QualType Ty, ExprValueKind VK, ExprObjectKind OK, const TemplateArgumentListInfo *TemplateArgs = 0) argument
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCStringChecker.cpp122 ProgramStateRef state, SVal V, QualType Ty);
205 QualType Ty) {
211 DefinedOrUnknownSVal zero = svalBuilder.makeZeroVal(Ty);
204 assumeZero(CheckerContext &C, ProgramStateRef state, SVal V, QualType Ty) argument
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp64 static Constant *getFalse(Type *Ty) { argument
65 assert(Ty->getScalarType()->isIntegerTy(1) &&
67 return Constant::getNullValue(Ty);
72 static Constant *getTrue(Type *Ty) { argument
73 assert(Ty->getScalarType()->isIntegerTy(1) &&
75 return Constant::getAllOnesValue(Ty);
2744 Type *Ty = PtrTy->getElementType(); local
2745 if (Ty->isSized() && Q.TD->getTypeAllocSize(Ty) == 0)
2836 static Value *SimplifyTruncInst(Value *Op, Type *Ty, cons argument
2843 SimplifyTruncInst(Value *Op, Type *Ty, const DataLayout *TD, const TargetLibraryInfo *TLI, const DominatorTree *DT) argument
2972 Type *Ty = V->getType(); local
[all...]
H A DScalarEvolution.cpp330 ScalarEvolution::getConstant(Type *Ty, uint64_t V, bool isSigned) { argument
331 IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty));
337 : SCEV(ID, SCEVTy), Op(op), Ty(ty) {}
343 (Ty->isIntegerTy() || Ty->isPointerTy()) &&
351 (Ty->isIntegerTy() || Ty->isPointerTy()) &&
359 (Ty->isIntegerTy() || Ty->isPointerTy()) &&
410 Type *Ty local
437 Type *Ty = local
822 getTruncateExpr(const SCEV *Op, Type *Ty) argument
901 getZeroExtendExpr(const SCEV *Op, Type *Ty) argument
1086 getPreStartForSignExtend(const SCEVAddRecExpr *AR, Type *Ty, ScalarEvolution *SE) argument
1148 getSignExtendAddRecStart(const SCEVAddRecExpr *AR, Type *Ty, ScalarEvolution *SE) argument
1159 getSignExtendExpr(const SCEV *Op, Type *Ty) argument
1311 getAnyExtendExpr(const SCEV *Op, Type *Ty) argument
1518 Type *Ty = Ops[0]->getType(); variable
[all...]
H A DScalarEvolutionExpander.cpp27 /// ReuseOrCreateCast - Arrange for there to be a cast of V to Ty at IP,
31 Value *SCEVExpander::ReuseOrCreateCast(Value *V, Type *Ty, argument
51 if (U->getType() == Ty)
61 Ret = CastInst::Create(Op, V, Ty, "", IP);
74 Ret = CastInst::Create(Op, V, Ty, V->getName(), IP);
88 Value *SCEVExpander::InsertNoopCastOfTo(Value *V, Type *Ty) { argument
89 Instruction::CastOps Op = CastInst::getCastOpcode(V, false, Ty, false);
94 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) &&
99 if (V->getType() == Ty)
102 if (CI->getOperand(0)->getType() == Ty)
309 SimplifyAddOperands(SmallVectorImpl<const SCEV *> &Ops, Type *Ty, ScalarEvolution &SE) argument
338 SplitAddRecs(SmallVectorImpl<const SCEV *> &Ops, Type *Ty, ScalarEvolution &SE) argument
395 expandAddToGEP(const SCEV *const *op_begin, const SCEV *const *op_end, PointerType *PTy, Type *Ty, Value *V) argument
710 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
781 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
823 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
1403 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
1412 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
1421 Type *Ty = SE.getEffectiveSCEVType(S->getType()); local
1431 Type *Ty = LHS->getType(); local
1455 Type *Ty = LHS->getType(); local
1477 expandCodeFor(const SCEV *SH, Type *Ty, Instruction *IP) argument
1483 expandCodeFor(const SCEV *SH, Type *Ty) argument
1565 getOrInsertCanonicalInductionVariable(const Loop *L, Type *Ty) argument
[all...]
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp133 static int GetDecodedBinaryOpcode(unsigned Val, Type *Ty) { argument
137 return Ty->isFPOrFPVectorTy() ? Instruction::FAdd : Instruction::Add;
139 return Ty->isFPOrFPVectorTy() ? Instruction::FSub : Instruction::Sub;
141 return Ty->isFPOrFPVectorTy() ? Instruction::FMul : Instruction::Mul;
144 return Ty->isFPOrFPVectorTy() ? Instruction::FDiv : Instruction::SDiv;
147 return Ty->isFPOrFPVectorTy() ? Instruction::FRem : Instruction::SRem;
206 explicit ConstantPlaceHolder(Type *Ty, LLVMContext& Context) argument
207 : ConstantExpr(Ty, Instruction::UserOp1, &Op<0>(), 1) {
261 Type *Ty) {
266 assert(Ty
260 getConstantFwdRef(unsigned Idx, Type *Ty) argument
276 getValueFwdRef(unsigned Idx, Type *Ty) argument
1054 Type *Ty = getTypeByID(Record[i]); local
[all...]
/external/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp980 Type *Ty = CFP->getType(); local
981 if (Ty->isHalfTy() || Ty->isFloatTy() || Ty->isDoubleTy()) {
983 } else if (Ty->isX86_FP80Ty()) {
990 } else if (Ty->isFP128Ty() || Ty->isPPC_FP128Ty()) {
/external/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp1066 Type *Ty = CPE.getType(); local
1067 Offset = NewOffset + TM.getDataLayout()->getTypeAllocSize(Ty);
1539 Type *Ty = CE->getType(); local
1545 if (TD.getTypeAllocSize(Ty) == TD.getTypeAllocSize(Op->getType()))
H A DDwarfCompileUnit.cpp299 void CompileUnit::addSourceLine(DIE *Die, DIType Ty) { argument
301 if (!Ty.isType())
304 unsigned Line = Ty.getLineNumber();
307 unsigned FileID = DD->getOrCreateSourceID(Ty.getFilename(),
308 Ty.getDirectory(), getUniqueID());
316 void CompileUnit::addSourceLine(DIE *Die, DIObjCProperty Ty) { argument
318 if (!Ty.isObjCProperty())
321 unsigned Line = Ty.getLineNumber();
324 DIFile File = Ty.getFile();
514 DIType Ty local
590 isTypeSigned(DIType Ty, int *SizeInBits) argument
603 addConstantValue(DIE *Die, const MachineOperand &MO, DIType Ty) argument
778 addType(DIE *Entity, DIType Ty, unsigned Attribute) argument
805 addGlobalType(DIType Ty) argument
886 isTypeUnitScoped(DIType Ty) argument
958 DIDescriptor Ty = Elements.getElement(i); local
1727 DIType Ty = DT.getTypeDerivedFrom(); local
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp80 Entry.Ty = Entry.Node.getValueType().getTypeForEVT(*DAG.getContext());
955 EVT Ty = OpVTLegal ? Op.getValueType() : MVT::i32; local
958 SDValue Sign = TLO.DAG.getNode(ISD::FGETSIGN, dl, Ty, Op.getOperand(0));
/external/llvm/lib/ExecutionEngine/JIT/
H A DJITEmitter.cpp759 Type *Ty = CPE.getType(); local
760 Size += TD->getTypeAllocSize(Ty);
1044 Type *Ty = CPE.Val.ConstVal->getType(); local
1045 Offset += TheJIT->getDataLayout()->getTypeAllocSize(Ty);
/external/llvm/lib/IR/
H A DAsmWriter.cpp191 void TypePrinting::print(Type *Ty, raw_ostream &OS) { argument
192 switch (Ty->getTypeID()) {
204 OS << 'i' << cast<IntegerType>(Ty)->getBitWidth();
208 FunctionType *FTy = cast<FunctionType>(Ty);
225 StructType *STy = cast<StructType>(Ty);
241 PointerType *PTy = cast<PointerType>(Ty);
249 ArrayType *ATy = cast<ArrayType>(Ty);
256 VectorType *PTy = cast<VectorType>(Ty);
H A DConstants.cpp111 Constant *Constant::getNullValue(Type *Ty) { argument
112 switch (Ty->getTypeID()) {
114 return ConstantInt::get(Ty, 0);
116 return ConstantFP::get(Ty->getContext(),
119 return ConstantFP::get(Ty->getContext(),
122 return ConstantFP::get(Ty->getContext(),
125 return ConstantFP::get(Ty->getContext(),
128 return ConstantFP::get(Ty->getContext(),
131 return ConstantFP::get(Ty->getContext(),
135 return ConstantPointerNull::get(cast<PointerType>(Ty));
146 getIntegerValue(Type *Ty, const APInt &V) argument
163 getAllOnesValue(Type *Ty) argument
433 ConstantInt(IntegerType *Ty, const APInt& V) argument
452 getTrue(Type *Ty) argument
464 getFalse(Type *Ty) argument
492 get(Type *Ty, uint64_t V, bool isSigned) argument
502 get(IntegerType *Ty, uint64_t V, bool isSigned) argument
507 getSigned(IntegerType *Ty, int64_t V) argument
511 getSigned(Type *Ty, int64_t V) argument
515 get(Type *Ty, const APInt& V) argument
527 get(IntegerType* Ty, StringRef Str, uint8_t radix) argument
536 TypeToFloatSemantics(Type *Ty) argument
557 get(Type *Ty, double V) argument
574 get(Type *Ty, StringRef Str) argument
588 getNegativeZero(Type *Ty) argument
596 getZeroValueForNegation(Type *Ty) argument
616 Type *Ty; local
638 getInfinity(Type *Ty, bool Negative) argument
644 ConstantFP(Type *Ty, const APFloat& V) argument
745 get(ArrayType *Ty, ArrayRef<Constant*> V) argument
1158 isValueValidForType(Type *Ty, uint64_t Val) argument
1168 isValueValidForType(Type *Ty, int64_t Val) argument
1179 isValueValidForType(Type *Ty, const APFloat& Val) argument
1230 get(Type *Ty) argument
1313 get(PointerType *Ty) argument
1333 get(Type *Ty) argument
1428 getFoldedCast( Instruction::CastOps opc, Constant *C, Type *Ty) argument
1443 getCast(unsigned oc, Constant *C, Type *Ty) argument
1467 getZExtOrBitCast(Constant *C, Type *Ty) argument
1473 getSExtOrBitCast(Constant *C, Type *Ty) argument
1479 getTruncOrBitCast(Constant *C, Type *Ty) argument
1485 getPointerCast(Constant *S, Type *Ty) argument
1495 getIntegerCast(Constant *C, Type *Ty, bool isSigned) argument
1508 getFPCast(Constant *C, Type *Ty) argument
1520 getTrunc(Constant *C, Type *Ty) argument
1534 getSExt(Constant *C, Type *Ty) argument
1548 getZExt(Constant *C, Type *Ty) argument
1562 getFPTrunc(Constant *C, Type *Ty) argument
1574 getFPExtend(Constant *C, Type *Ty) argument
1586 getUIToFP(Constant *C, Type *Ty) argument
1597 getSIToFP(Constant *C, Type *Ty) argument
1608 getFPToUI(Constant *C, Type *Ty) argument
1619 getFPToSI(Constant *C, Type *Ty) argument
1742 getSizeOf(Type* Ty) argument
1752 getAlignOf(Type* Ty) argument
1771 getOffsetOf(Type* Ty, Constant *FieldNo) argument
2106 getBinOpIdentity(unsigned Opcode, Type *Ty) argument
2129 getBinOpAbsorber(unsigned Opcode, Type *Ty) argument
2187 isElementTypeCompatible(const Type *Ty) argument
2308 Type *Ty = ArrayType::get(Type::getInt8Ty(Context), Elts.size()); local
2313 Type *Ty = ArrayType::get(Type::getInt16Ty(Context), Elts.size()); local
2318 Type *Ty = ArrayType::get(Type::getInt32Ty(Context), Elts.size()); local
2323 Type *Ty = ArrayType::get(Type::getInt64Ty(Context), Elts.size()); local
2328 Type *Ty = ArrayType::get(Type::getFloatTy(Context), Elts.size()); local
2333 Type *Ty = ArrayType::get(Type::getDoubleTy(Context), Elts.size()); local
2361 Type *Ty = VectorType::get(Type::getInt8Ty(Context), Elts.size()); local
2366 Type *Ty = VectorType::get(Type::getInt16Ty(Context), Elts.size()); local
2371 Type *Ty = VectorType::get(Type::getInt32Ty(Context), Elts.size()); local
2376 Type *Ty = VectorType::get(Type::getInt64Ty(Context), Elts.size()); local
2381 Type *Ty = VectorType::get(Type::getFloatTy(Context), Elts.size()); local
2386 Type *Ty = VectorType::get(Type::getDoubleTy(Context), Elts.size()); local
[all...]
H A DVerifier.cpp315 bool PerformTypeCheck(Intrinsic::ID ID, Function *F, Type *Ty,
317 bool VerifyIntrinsicType(Type *Ty,
323 void VerifyParameterAttrs(AttributeSet Attrs, unsigned Idx, Type *Ty,
777 void Verifier::VerifyParameterAttrs(AttributeSet Attrs, unsigned Idx, Type *Ty, argument
827 hasAttributes(AttributeFuncs::typeIncompatible(Ty, Idx), Idx),
829 AttributeFuncs::typeIncompatible(Ty, Idx).getAsString(Idx), V);
831 if (PointerType *PTy = dyn_cast<PointerType>(Ty))
854 Type *Ty; local
856 Ty = FT->getReturnType();
858 Ty
1509 Type *Ty = CS.getArgument(Idx-1)->getType(); local
2112 VerifyIntrinsicType(Type *Ty, ArrayRef<Intrinsic::IITDescriptor> &Infos, SmallVectorImpl<Type*> &ArgTys) argument
[all...]
/external/llvm/lib/TableGen/
H A DRecord.cpp116 RecTy *Ty = VI->getType(); local
117 if (isa<BitRecTy>(Ty) || isa<BitsRecTy>(Ty) || isa<IntRecTy>(Ty))
134 BitsRecTy *&Ty = Shared[Sz]; local
135 if (!Ty)
136 Ty = new BitsRecTy(Sz);
137 return Ty;
271 return "list<" + Ty->getAsString() + ">";
280 if (Init *CI = LI->getElement(i)->convertInitializerTo(Ty))
[all...]
/external/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp145 void printType(Type* Ty);
179 static std::string getTypePrefix(Type *Ty) { argument
180 switch (Ty->getTypeID()) {
183 return "int" + utostr(cast<IntegerType>(Ty)->getBitWidth()) + "_";
364 std::string CppWriter::getCppName(Type* Ty) { argument
366 if (Ty->isPrimitiveType() || Ty->isIntegerTy()) {
367 switch (Ty->getTypeID()) {
370 unsigned BitWidth = cast<IntegerType>(Ty)->getBitWidth();
387 TypeMap::iterator I = TypeNames.find(Ty);
418 printCppName(Type* Ty) argument
538 printType(Type* Ty) argument
2020 Type* Ty = TheModule->getTypeByName(typeName); local
[all...]
/external/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp198 Type *Ty = CE->getType(); local
204 if (TD.getTypeAllocSize(Ty) == TD.getTypeAllocSize(Op->getType()))
418 Type *Ty = F->getReturnType(); local
422 if (Ty->getTypeID() == Type::VoidTyID)
428 if (Ty->isPrimitiveType() || Ty->isIntegerTy()) {
430 if (const IntegerType *ITy = dyn_cast<IntegerType>(Ty)) {
435 assert(Ty->isFloatingPointTy() && "Floating point type expected here");
436 size = Ty->getPrimitiveSizeInBits();
440 } else if (isa<PointerType>(Ty)) {
1303 getPTXFundamentalTypeStr(const Type *Ty, bool useB4PTR) const argument
1387 getOpenCLAlignment(const DataLayout *TD, Type *Ty) argument
1477 Type *Ty = I->getType(); local
1836 const Type *Ty = CFP->getType(); local
1927 isImageType(const Type *Ty) argument
[all...]
H A DNVPTXISelLowering.cpp70 /// ComputePTXValueVTs - For the given Type \p Ty, returns the set of primitive
76 static void ComputePTXValueVTs(const TargetLowering &TLI, Type *Ty, argument
83 ComputeValueVTs(TLI, Ty, TempVTs, &TempOffsets, StartingOffset);
411 Type *Ty = Args[i].Ty; local
418 if (Ty->isAggregateType() || Ty->isVectorTy()) {
424 align = TD->getABITypeAlignment(Ty);
425 unsigned sz = TD->getTypeAllocSize(Ty);
431 ComputeValueVTs(*this, Ty, vtpart
469 getArgumentAlignment(SDValue Callee, const ImmutableCallSite *CS, Type *Ty, unsigned Idx) const argument
535 Type *Ty = Args[i].Ty; local
1341 const Type *Ty = arg->getType(); local
1400 Type *Ty = argTypes[i]; local
[all...]
/external/llvm/lib/Target/Sparc/
H A DSparcISelLowering.cpp930 PointerType *Ty = cast<PointerType>(CalleeFn->arg_begin()->getType()); local
931 Type *ElementTy = Ty->getElementType();
/external/llvm/lib/Target/X86/
H A DX86FastISel.cpp141 bool isTypeLegal(Type *Ty, MVT &VT, bool AllowI1 = false);
151 bool X86FastISel::isTypeLegal(Type *Ty, MVT &VT, bool AllowI1) { argument
152 EVT evt = TLI.getValueType(Ty, /*HandleUnknown=*/true);
366 if (PointerType *Ty = dyn_cast<PointerType>(V->getType()))
367 if (Ty->getAddressSpace() > 255)
1910 PointerType *Ty = cast<PointerType>(ArgVal->getType()); local
1911 Type *ElementTy = Ty->getElementType();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp332 Value *FAddendCoef::getValue(Type *Ty) const {
334 ConstantFP::get(Ty, float(IntVal)) :
335 ConstantFP::get(Ty->getContext(), getFpVal());
1286 Type *Ty) {
1348 return Builder->CreateIntCast(Result, Ty, true);
1285 OptimizePointerDifference(Value *LHS, Value *RHS, Type *Ty) argument
H A DInstCombineCasts.cpp160 Value *InstCombiner::EvaluateInDifferentType(Value *V, Type *Ty, argument
163 C = ConstantExpr::getIntegerCast(C, Ty, isSigned /*Sext or ZExt*/);
186 Value *LHS = EvaluateInDifferentType(I->getOperand(0), Ty, isSigned);
187 Value *RHS = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned);
197 if (I->getOperand(0)->getType() == Ty)
202 Res = CastInst::CreateIntegerCast(I->getOperand(0), Ty,
206 Value *True = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned);
207 Value *False = EvaluateInDifferentType(I->getOperand(2), Ty, isSigned);
213 PHINode *NPN = PHINode::Create(Ty, OPN->getNumIncomingValues());
215 Value *V =EvaluateInDifferentType(OPN->getIncomingValue(i), Ty, isSigne
270 ShouldOptimizeCast(Instruction::CastOps opc, const Value *V, Type *Ty) argument
335 CanEvaluateTruncated(Value *V, Type *Ty) argument
651 CanEvaluateZExtd(Value *V, Type *Ty, unsigned &BitsToClear) argument
1002 CanEvaluateSExtd(Value *V, Type *Ty) argument
1343 Type *Ty = TD->getIntPtrType(CI.getContext()); local
1410 Type *Ty = TD->getIntPtrType(CI.getContext()); local
1478 isMultipleOfTypeSize(unsigned Value, Type *Ty) argument
1482 getTypeSizeIndex(unsigned Value, Type *Ty) argument
[all...]
H A DInstCombineCompares.cpp207 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth.");
475 Type *Ty = 0; local
482 Ty = Idx->getType();
484 Ty = TD->getSmallestLegalIntType(Init->getContext(), ArrayElementCount);
486 Ty = Type::getInt32Ty(Init->getContext());
488 if (Ty != 0) {
489 Value *V = Builder->CreateIntCast(Idx, Ty, false);
490 V = Builder->CreateLShr(ConstantInt::get(Ty, MagicBitvector), V);
491 V = Builder->CreateAnd(ConstantInt::get(Ty, 1), V);
492 return new ICmpInst(ICmpInst::ICMP_NE, V, ConstantInt::get(Ty,
1170 IntegerType *Ty = cast<IntegerType>(Cast->getSrcTy()); local
1193 Type *Ty = Shift ? Shift->getType() : 0; // Type of the shift. local
1990 Type *Ty = LHS->getType(); local
2072 Type *Ty = Op0->getType(); local
[all...]
H A DInstructionCombining.cpp762 Type *InstCombiner::FindElementAtOffset(Type *Ty, int64_t Offset, argument
765 if (!Ty->isSized()) return 0;
770 Type *IntPtrTy = TD->getIntPtrType(Ty->getContext());
772 if (int64_t TySize = TD->getTypeAllocSize(Ty)) {
790 if (uint64_t(Offset*8) >= TD->getTypeSizeInBits(Ty))
793 if (StructType *STy = dyn_cast<StructType>(Ty)) {
799 NewIndices.push_back(ConstantInt::get(Type::getInt32Ty(Ty->getContext()),
803 Ty = STy->getElementType(Elt);
804 } else if (ArrayType *AT = dyn_cast<ArrayType>(Ty)) {
809 Ty
[all...]

Completed in 1068 milliseconds

12345678910