Searched defs:Ty (Results 101 - 125 of 257) sorted by relevance

1234567891011

/external/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp46 LLVMGenericValueRef LLVMCreateGenericValueOfInt(LLVMTypeRef Ty, argument
50 GenVal->IntVal = APInt(unwrap<IntegerType>(Ty)->getBitWidth(), N, IsSigned);
H A DExecutionEngine.cpp1031 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 DAttributes.cpp1172 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 DMetadata.cpp437 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 DConstantFold.cpp59 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 DInstCombinePHI.cpp579 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 DSSAUpdater.cpp44 void SSAUpdater::Initialize(Type *Ty, StringRef Name) { argument
49 ProtoType = Ty;
/external/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp225 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 DAMDILPeepholeOptimizer.cpp181 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 DTypeLoc.h42 // 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 DCGFunctionInfo.h444 void setArgStruct(llvm::StructType *Ty) { ArgStruct = Ty; } argument
/external/clang/lib/Driver/
H A DDriver.cpp1014 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 DParseExpr.cpp793 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 DParser.cpp1541 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 DSema.cpp308 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 DBugReporterVisitors.cpp1429 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 Ddiag-template-diffing.cpp909 typedef int Ty; typedef in struct:DependentDefault::Trait
915 template <typename T, typename = Trait<T>::Ty > struct B {};
/external/clang/tools/libclang/
H A DCXCursor.cpp944 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 DIndexingContext.cpp101 QualType Ty = IBAttr->getInterface(); local
102 if (const ObjCObjectType *ObjectTy = Ty->getAs<ObjCObjectType>()) {
/external/llvm/include/llvm/CodeGen/
H A DMachineBasicBlock.h143 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 DValue.h186 Value(Type *Ty, unsigned scid);
455 void mutateType(Type *Ty) { argument
456 VTy = Ty;
/external/llvm/lib/Analysis/
H A DConstantFolding.cpp554 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 DValueTracking.cpp41 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 DInlineCost.cpp279 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 DJITEmitter.cpp764 Type *Ty = CPE.getType(); local
765 Size += TD->getTypeAllocSize(Ty);
1049 Type *Ty = CPE.Val.ConstVal->getType(); local
1050 Offset += TheJIT->getDataLayout()->getTypeAllocSize(Ty);

Completed in 498 milliseconds

1234567891011