/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngineBindings.cpp | 46 LLVMGenericValueRef LLVMCreateGenericValueOfInt(LLVMTypeRef Ty, argument 50 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned);
|
H A D | ExecutionEngine.cpp | 1031 GenericValue *Ptr, Type *Ty) { 1032 const unsigned StoreBytes = getDataLayout()->getTypeStoreSize(Ty); 1034 switch (Ty->getTypeID()) { 1036 dbgs() << "Cannot store value of type " << *Ty << "!\n"; 1059 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) 1061 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) 1063 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { 1108 Type *Ty) { 1109 const unsigned LoadBytes = getDataLayout()->getTypeStoreSize(Ty); 1111 switch (Ty 1030 StoreValueToMemory(const GenericValue &Val, GenericValue *Ptr, Type *Ty) argument 1106 LoadValueFromMemory(GenericValue &Result, GenericValue *Ptr, Type *Ty) argument 1162 OS << "Cannot load value of type " << *Ty << "!"; local [all...] |
/external/llvm/lib/IR/ |
H A D | Attributes.cpp | 1172 AttributeSet AttributeFuncs::typeIncompatible(Type *Ty, uint64_t Index) { argument 1175 if (!Ty->isIntegerTy()) 1180 if (!Ty->isPointerTy()) 1192 return AttributeSet::get(Ty->getContext(), Index, Incompatible);
|
H A D | Metadata.cpp | 437 Type *Ty = High->getType(); local 438 EndPoints[Size - 2] = ConstantInt::get(Ty, Union.getLower()); 439 EndPoints[Size - 1] = ConstantInt::get(Ty, Union.getUpper());
|
H A D | ConstantFold.cpp | 59 Type *Ty = IntegerType::get(CV->getContext(), 32); local 62 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); 333 /// on Ty, with any known factors factored out. If Folded is false, 337 static Constant *getFoldedSizeOf(Type *Ty, Type *DestTy, argument 339 if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) { 345 if (StructType *STy = dyn_cast<StructType>(Ty)) 369 if (PointerType *PTy = dyn_cast<PointerType>(Ty)) 382 Constant *C = ConstantExpr::getSizeOf(Ty); 390 /// on Ty, with any known factors factored out. If Folded is false, 394 static Constant *getFoldedAlignOf(Type *Ty, Typ argument 460 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument 559 Type *Ty = IntegerType::get(V->getContext(), 32); local 616 Type *Ty = local 709 Type *Ty = IntegerType::get(CondV->getContext(), 32); local 783 Type *Ty = IntegerType::get(Val->getContext(), 32); local 825 Type *Ty = IntegerType::get(V2->getContext(), 32); local 830 Type *Ty = IntegerType::get(V1->getContext(), 32); local 1153 Type *Ty = IntegerType::get(VTy->getContext(), 32); local 1220 isMaybeZeroSizedType(Type *Ty) argument 1727 Type *Ty = IntegerType::get(C1->getContext(), 32); local 1971 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs); local 1985 Type *Ty = GetElementPtrInst::getIndexedType(Ptr, Idxs); local 2092 Type *Ty = C->getType(); local [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 579 LoweredPHIRecord(PHINode *pn, unsigned Sh, Type *Ty) argument 580 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} 704 Type *Ty = PHIUsers[UserI].Inst->getType(); local 710 if ((EltPHI = ExtractedVals[LoweredPHIRecord(PN, Offset, Ty)]) == nullptr) { 713 EltPHI = PHINode::Create(Ty, PN->getNumIncomingValues(), 739 if (Value *Res = ExtractedVals[LoweredPHIRecord(InPHI, Offset, Ty)]) { 752 Res = Builder->CreateTrunc(Res, Ty, "extract.t"); 773 ExtractedVals[LoweredPHIRecord(PN, Offset, Ty)] = EltPHI;
|
/external/llvm/lib/Transforms/Utils/ |
H A D | SSAUpdater.cpp | 44 void SSAUpdater::Initialize(Type *Ty, StringRef Name) { argument 49 ProtoType = Ty;
|
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 225 Type *Ty = pickType(); local 226 return PointerType::get(Ty, 0); 235 Type *Ty; local 239 Ty = pickScalarType(); 240 } while (Ty->isX86_MMXTy()); 244 return VectorType::get(Ty, width); 365 Type *Ty = pickType(); variable 367 if (Ty->isVectorTy()) { 369 case 0: if (Ty->getScalarType()->isIntegerTy()) 370 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
H A D | AMDILPeepholeOptimizer.cpp | 181 containsPointerType(Type *Ty) argument 183 if (!Ty) { 186 switch(Ty->getTypeID()) { 190 const StructType *ST = dyn_cast<StructType>(Ty); 202 return containsPointerType(dyn_cast<SequentialType>(Ty)->getElementType()); 948 Type* Ty = inst->getType(); local 951 Ty = inst->getType(); 954 Ty = sinst->getValueOperand()->getType(); 958 unsigned size = getTypeSize(Ty); 962 if (!Ty [all...] |
/external/clang/include/clang/AST/ |
H A D | TypeLoc.h | 42 // The correctness of this relies on the property that, for Type *Ty, 43 // QualType(Ty, 0).getAsOpaquePtr() == (void*) Ty 44 const void *Ty; member in class:clang::TypeLoc 84 TypeLoc() : Ty(nullptr), Data(nullptr) { } 86 : Ty(ty.getAsOpaquePtr()), Data(opaqueData) { } 88 : Ty(ty), Data(opaqueData) { } 95 bool isNull() const { return !Ty; } 96 LLVM_EXPLICIT operator bool() const { return Ty; } 99 static unsigned getFullDataSizeForType(QualType Ty); 210 UnqualTypeLoc(const Type *Ty, void *Data) argument 325 classofType(const Type *Ty) argument 427 classofType(const Type *Ty) argument [all...] |
/external/clang/include/clang/CodeGen/ |
H A D | CGFunctionInfo.h | 444 void setArgStruct(llvm::StructType *Ty) { ArgStruct = Ty; } argument
|
/external/clang/lib/Driver/ |
H A D | Driver.cpp | 1014 types::ID Ty = types::TY_INVALID; local 1032 Ty = types::TY_C; 1039 Ty = TC.LookupTypeForExtension(Ext + 1); 1041 if (Ty == types::TY_INVALID) { 1043 Ty = types::TY_C; 1045 Ty = types::TY_Object; 1051 types::ID OldTy = Ty; 1052 Ty = types::lookupCXXTypeForCType(Ty); 1054 if (Ty ! [all...] |
/external/clang/lib/Parse/ |
H A D | ParseExpr.cpp | 793 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), local 795 if (Ty.isInvalid()) 800 Ty.get(), nullptr); 961 TypeResult Ty = Actions.ActOnTypeName(getCurScope(), DeclaratorInfo); local 962 if (Ty.isInvalid()) 967 Ty.get(), nullptr); 1706 TypeResult Ty = ParseTypeName(); local 1713 if (Expr.isInvalid() || Ty.isInvalid()) 1716 Res = Actions.ActOnVAArg(StartLoc, Expr.get(), Ty.get(), ConsumeParen()); 1721 TypeResult Ty local 2001 TypeResult Ty = ParseTypeName(); local 2042 TypeResult Ty; local 2057 TypeResult Ty; local 2074 TypeResult Ty; local 2153 ParseCompoundLiteralExpression(ParsedType Ty, SourceLocation LParenLoc, SourceLocation RParenLoc) argument 2236 ParsedType Ty; local [all...] |
H A D | Parser.cpp | 1541 TypeResult Ty; local 1544 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS, 1559 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS, 1574 setTypeAnnotation(Tok, Ty.isInvalid() ? ParsedType() : Ty.get()); 1603 if (ParsedType Ty = Actions.getTypeName(*Tok.getIdentifierInfo(), 1618 setTypeAnnotation(Tok, Ty);
|
/external/clang/lib/Sema/ |
H A D | Sema.cpp | 308 ExprResult Sema::ImpCastExprToType(Expr *E, QualType Ty, argument 329 QualType TypeTy = Context.getCanonicalType(Ty); 348 ImpCast->setType(Ty); 354 return ImplicitCastExpr::Create(Context, Ty, Kind, E, BasePath, VK);
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | BugReporterVisitors.cpp | 1429 QualType Ty = CondVarExpr->getType(); local 1431 if (Ty->isPointerType()) 1433 else if (Ty->isObjCObjectPointerType()) 1435 else if (Ty->isBooleanType()) 1437 else if (Ty->isIntegralOrEnumerationType())
|
/external/clang/test/Misc/ |
H A D | diag-template-diffing.cpp | 909 typedef int Ty; typedef in struct:DependentDefault::Trait 915 template <typename T, typename = Trait<T>::Ty > struct B {};
|
/external/clang/tools/libclang/ |
H A D | CXCursor.cpp | 944 QualType Ty = Type->getType(); local 948 if (const ElaboratedType *ElabT = Ty->getAs<ElaboratedType>()) { 949 Ty = ElabT->getNamedType(); 954 if (const TypedefType *Typedef = Ty->getAs<TypedefType>()) 956 if (const TagType *Tag = Ty->getAs<TagType>()) 958 if (const TemplateTypeParmType *TemplP = Ty->getAs<TemplateTypeParmType>())
|
H A D | IndexingContext.cpp | 101 QualType Ty = IBAttr->getInterface(); local 102 if (const ObjCObjectType *ObjectTy = Ty->getAs<ObjCObjectType>()) {
|
/external/llvm/include/llvm/CodeGen/ |
H A D | MachineBasicBlock.h | 143 template<typename Ty, typename IterTy> 145 : public std::iterator<std::bidirectional_iterator_tag, Ty, ptrdiff_t> { 151 bundle_iterator(Ty &mi) : MII(mi) { 155 bundle_iterator(Ty *mi) : MII(mi) { 165 Ty &operator*() const { return *MII; } 166 Ty *operator->() const { return &operator*(); } 168 operator Ty*() const { return MII; }
|
/external/llvm/include/llvm/IR/ |
H A D | Value.h | 186 Value(Type *Ty, unsigned scid); 455 void mutateType(Type *Ty) { argument 456 VTy = Ty;
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 554 Type *Ty = cast<PointerType>(CE->getType())->getElementType(); local 555 unsigned NumBits = Ty->getPrimitiveSizeInBits(); 559 (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) { 578 if (Ty->isFloatingPointTy()) 579 Res = ConstantExpr::getBitCast(Res, Ty); 810 Type *Ty = Ptr->getType(); local 811 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); 815 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { 829 // The element size is 0. This may be [0 x Ty]*, s 1307 GetConstantFoldFPValue(double V, Type *Ty) argument 1344 ConstantFoldFP(double (*NativeFP)(double), double V, Type *Ty) argument 1356 ConstantFoldBinaryFP(double (*NativeFP)(double, double), double V, double W, Type *Ty) argument 1376 ConstantFoldConvertToInt(const APFloat &Val, bool roundTowardZero, Type *Ty) argument 1396 Type *Ty = Op->getType(); local 1410 ConstantFoldScalarCall(StringRef Name, unsigned IntrinsicID, Type *Ty, ArrayRef<Constant *> Operands, const TargetLibraryInfo *TLI) argument 1742 Type *Ty = VTy->getElementType(); local 1773 Type *Ty = F->getReturnType(); local [all...] |
H A D | ValueTracking.cpp | 41 static unsigned getBitWidth(Type *Ty, const DataLayout *TD) { argument 42 if (unsigned BitWidth = Ty->getScalarSizeInBits()) 45 return TD ? TD->getPointerTypeSizeInBits(Ty) : 0; 1136 Type *Ty = V->getType(); local 1138 Ty->getScalarSizeInBits();
|
/external/llvm/lib/Analysis/IPA/ |
H A D | InlineCost.cpp | 279 Type *Ty = I.getAllocatedType(); local 280 AllocatedSize += Ty->getPrimitiveSizeInBits() * AllocSize->getZExtValue(); 287 Type *Ty = I.getAllocatedType(); local 288 AllocatedSize += (DL ? DL->getTypeAllocSize(Ty) : 289 Ty->getPrimitiveSizeInBits());
|
/external/llvm/lib/ExecutionEngine/JIT/ |
H A D | JITEmitter.cpp | 764 Type *Ty = CPE.getType(); local 765 Size += TD->getTypeAllocSize(Ty); 1049 Type *Ty = CPE.Val.ConstVal->getType(); local 1050 Offset += TheJIT->getDataLayout()->getTypeAllocSize(Ty);
|