/external/llvm/test/Transforms/DeadArgElim/ |
D | returned.ll | 3 %Ty = type { i32, i32 } 8 define internal %Ty* @test1(%Ty* %this) { 9 ret %Ty* %this 15 define internal %Ty* @test2(%Ty* returned %this) { 16 ret %Ty* %this 20 @dummy = global %Ty* null 23 ; CHECK-LABEL: define internal void @test3(%Ty* %this) 25 define internal %Ty* @test3(%Ty* %this) { 26 store volatile %Ty* %this, %Ty** @dummy 27 ret %Ty* %this [all …]
|
/external/llvm/lib/IR/ |
D | Constants.cpp | 178 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() argument 179 switch (Ty->getTypeID()) { in getNullValue() 181 return ConstantInt::get(Ty, 0); in getNullValue() 183 return ConstantFP::get(Ty->getContext(), in getNullValue() 186 return ConstantFP::get(Ty->getContext(), in getNullValue() 189 return ConstantFP::get(Ty->getContext(), in getNullValue() 192 return ConstantFP::get(Ty->getContext(), in getNullValue() 195 return ConstantFP::get(Ty->getContext(), in getNullValue() 198 return ConstantFP::get(Ty->getContext(), in getNullValue() 202 return ConstantPointerNull::get(cast<PointerType>(Ty)); in getNullValue() [all …]
|
D | DataLayout.cpp | 48 Type *Ty = ST->getElementType(i); in StructLayout() local 49 unsigned TyAlign = ST->isPacked() ? 1 : DL.getABITypeAlignment(Ty); in StructLayout() 59 StructSize += DL.getTypeAllocSize(Ty); // Consume space for this data item in StructLayout() 454 Type *Ty) const { in getAlignmentInfo() 488 unsigned Align = getTypeAllocSize(cast<VectorType>(Ty)->getElementType()); in getAlignmentInfo() 489 Align *= cast<VectorType>(Ty)->getNumElements(); in getAlignmentInfo() 505 unsigned Align = getTypeStoreSize(Ty); in getAlignmentInfo() 551 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const { in getStructLayout() 556 StructLayout *&SL = (*STM)[Ty]; in getStructLayout() 561 int NumElts = Ty->getNumElements(); in getStructLayout() [all …]
|
D | Instructions.cpp | 856 AllocaInst::AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore) in AllocaInst() argument 857 : AllocaInst(Ty, /*ArraySize=*/nullptr, Name, InsertBefore) {} in AllocaInst() 859 AllocaInst::AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd) in AllocaInst() argument 860 : AllocaInst(Ty, /*ArraySize=*/nullptr, Name, InsertAtEnd) {} in AllocaInst() 862 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, const Twine &Name, in AllocaInst() argument 864 : AllocaInst(Ty, ArraySize, /*Align=*/0, Name, InsertBefore) {} in AllocaInst() 866 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, const Twine &Name, in AllocaInst() argument 868 : AllocaInst(Ty, ArraySize, /*Align=*/0, Name, InsertAtEnd) {} in AllocaInst() 870 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align, in AllocaInst() argument 872 : UnaryInstruction(PointerType::getUnqual(Ty), Alloca, in AllocaInst() [all …]
|
D | DIBuilder.cpp | 257 MDDerivedType *DIBuilder::createTypedef(MDType *Ty, StringRef Name, in createTypedef() argument 263 MDTypeRef::get(Ty), 0, 0, 0, 0); in createTypedef() 266 MDDerivedType *DIBuilder::createFriend(MDType *Ty, MDType *FriendTy) { in createFriend() argument 267 assert(Ty && "Invalid type!"); in createFriend() 270 MDTypeRef::get(Ty), MDTypeRef::get(FriendTy), 0, 0, in createFriend() 274 MDDerivedType *DIBuilder::createInheritance(MDType *Ty, MDType *BaseTy, in createInheritance() argument 277 assert(Ty && "Unable to create inheritance"); in createInheritance() 279 0, MDTypeRef::get(Ty), MDTypeRef::get(BaseTy), 0, 0, in createInheritance() 288 unsigned Flags, MDType *Ty) { in createMemberType() argument 291 MDScopeRef::get(getNonCompileUnitScope(Scope)), MDTypeRef::get(Ty), in createMemberType() [all …]
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 46 Type *Ty = Type::getInt1Ty(Context); in TEST_F() local 47 Constant *Init = Constant::getNullValue(Ty); in TEST_F() 48 Value *V0 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V0"); in TEST_F() 49 Value *V1 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V1"); in TEST_F() 50 Value *V2 = new GlobalVariable(M, Ty, false, GlobalValue::ExternalLinkage, Init, "V2"); in TEST_F() 91 Type *Ty = Type::getInt32Ty(Context); in TEST_F() local 93 Types.append(10, Ty); in TEST_F() 161 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[1])); in TEST_F() 163 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[2], B[1])); in TEST_F() 164 Sum.push_back(SE.getMulExpr(SE.getConstant(Ty, 2), A[1], B[2])); in TEST_F() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 56 GenericValue Src2, Type *Ty) { in executeFAddInst() argument 57 switch (Ty->getTypeID()) { in executeFAddInst() 61 dbgs() << "Unhandled type for FAdd instruction: " << *Ty << "\n"; in executeFAddInst() 67 GenericValue Src2, Type *Ty) { in executeFSubInst() argument 68 switch (Ty->getTypeID()) { in executeFSubInst() 72 dbgs() << "Unhandled type for FSub instruction: " << *Ty << "\n"; in executeFSubInst() 78 GenericValue Src2, Type *Ty) { in executeFMulInst() argument 79 switch (Ty->getTypeID()) { in executeFMulInst() 83 dbgs() << "Unhandled type for FMul instruction: " << *Ty << "\n"; in executeFMulInst() 89 GenericValue Src2, Type *Ty) { in executeFDivInst() argument [all …]
|
/external/clang/lib/CodeGen/ |
D | TargetInfo.cpp | 71 static QualType useFirstFieldIfTransparentUnion(QualType Ty) { in useFirstFieldIfTransparentUnion() argument 72 if (const RecordType *UT = Ty->getAsUnionType()) { in useFirstFieldIfTransparentUnion() 79 return Ty; in useFirstFieldIfTransparentUnion() 102 bool ABIInfo::isHomogeneousAggregateBaseType(QualType Ty) const { in isHomogeneousAggregateBaseType() 117 if (llvm::Type *Ty = getCoerceToType()) in dump() local 118 Ty->print(OS); in dump() 308 static bool is32Or64BitBasicType(QualType Ty, ASTContext &Context) { in is32Or64BitBasicType() argument 310 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in is32Or64BitBasicType() 311 Ty = CTy->getElementType(); in is32Or64BitBasicType() 316 if (!Ty->getAs<BuiltinType>() && !Ty->hasPointerRepresentation() && in is32Or64BitBasicType() [all …]
|
D | CodeGenTypes.cpp | 49 llvm::StructType *Ty, in addRecordTypeName() argument 77 Ty->setName(OS.str()); in addRecordTypeName() 99 bool CodeGenTypes::isRecordLayoutComplete(const Type *Ty) const { in isRecordLayoutComplete() 101 RecordDeclTypes.find(Ty); in isRecordLayoutComplete() 190 bool CodeGenTypes::isFuncParamTypeConvertible(QualType Ty) { in isFuncParamTypeConvertible() argument 193 if (const auto *MPT = Ty->getAs<MemberPointerType>()) in isFuncParamTypeConvertible() 197 const TagType *TT = Ty->getAs<TagType>(); in isFuncParamTypeConvertible() 300 const Type *Ty = T.getTypePtr(); in ConvertType() local 303 if (const RecordType *RT = dyn_cast<RecordType>(Ty)) in ConvertType() 307 llvm::DenseMap<const Type *, llvm::Type *>::iterator TCI = TypeCache.find(Ty); in ConvertType() [all …]
|
D | CGDebugInfo.h | 120 llvm::DIType CreateType(const BuiltinType *Ty); 121 llvm::DIType CreateType(const ComplexType *Ty); 122 llvm::DIType CreateQualifiedType(QualType Ty, llvm::DIFile Fg); 123 llvm::DIType CreateType(const TypedefType *Ty, llvm::DIFile Fg); 124 llvm::DIType CreateType(const TemplateSpecializationType *Ty, llvm::DIFile Fg); 125 llvm::DIType CreateType(const ObjCObjectPointerType *Ty, 127 llvm::DIType CreateType(const PointerType *Ty, llvm::DIFile F); 128 llvm::DIType CreateType(const BlockPointerType *Ty, llvm::DIFile F); 129 llvm::DIType CreateType(const FunctionType *Ty, llvm::DIFile F); 131 llvm::DIType CreateTypeDefinition(const RecordType *Ty); [all …]
|
D | CodeGenTBAA.cpp | 98 const Type *Ty = Context.getCanonicalType(QTy).getTypePtr(); in getTBAAInfo() local 100 if (llvm::MDNode *N = MetadataCache[Ty]) in getTBAAInfo() 104 if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) { in getTBAAInfo() 133 return MetadataCache[Ty] = in getTBAAInfo() 141 if (Ty->isPointerType()) in getTBAAInfo() 142 return MetadataCache[Ty] = createTBAAScalarType("any pointer", in getTBAAInfo() 147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo() 153 return MetadataCache[Ty] = getChar(); in getTBAAInfo() 159 return MetadataCache[Ty] = createTBAAScalarType(OutName, getChar()); in getTBAAInfo() 163 return MetadataCache[Ty] = getChar(); in getTBAAInfo() [all …]
|
D | CGDebugInfo.cpp | 530 llvm::DIType CGDebugInfo::CreateType(const ComplexType *Ty) { in CreateType() argument 533 if (Ty->isComplexIntegerType()) in CreateType() 536 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateType() 537 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateType() 546 llvm::DIType CGDebugInfo::CreateQualifiedType(QualType Ty, llvm::DIFile Unit) { in CreateQualifiedType() argument 548 const Type *T = Qc.strip(Ty); in CreateQualifiedType() 581 llvm::DIType CGDebugInfo::CreateType(const ObjCObjectPointerType *Ty, in CreateType() argument 587 if (Ty->isObjCQualifiedIdType()) in CreateType() 591 Ty, Ty->getPointeeType(), Unit); in CreateType() 595 llvm::DIType CGDebugInfo::CreateType(const PointerType *Ty, llvm::DIFile Unit) { in CreateType() argument [all …]
|
/external/llvm/include/llvm/IR/ |
D | DataLayout.h | 153 bool ABIAlign, Type *Ty) const; 158 unsigned getAlignment(Type *Ty, bool abi_or_pref) const; 338 unsigned getPointerTypeSize(Type *Ty) const { in getPointerTypeSize() argument 339 return getPointerTypeSizeInBits(Ty) / 8; in getPointerTypeSize() 363 uint64_t getTypeSizeInBits(Type *Ty) const; 369 uint64_t getTypeStoreSize(Type *Ty) const { in getTypeStoreSize() argument 370 return (getTypeSizeInBits(Ty) + 7) / 8; in getTypeStoreSize() 377 uint64_t getTypeStoreSizeInBits(Type *Ty) const { in getTypeStoreSizeInBits() argument 378 return 8 * getTypeStoreSize(Ty); in getTypeStoreSizeInBits() 386 uint64_t getTypeAllocSize(Type *Ty) const { in getTypeAllocSize() argument [all …]
|
D | Constants.h | 51 ConstantInt(IntegerType *Ty, const APInt& V); 61 static Constant *getTrue(Type *Ty); 62 static Constant *getFalse(Type *Ty); 66 static Constant *get(Type *Ty, uint64_t V, bool isSigned = false); 74 static ConstantInt *get(IntegerType *Ty, uint64_t V, 82 static ConstantInt *getSigned(IntegerType *Ty, int64_t V); 83 static Constant *getSigned(Type *Ty, int64_t V); 91 static ConstantInt *get(IntegerType *Ty, StringRef Str, 96 static Constant *get(Type* Ty, const APInt& V); 148 static bool isValueValidForType(Type *Ty, uint64_t V); [all …]
|
D | DIBuilder.h | 170 MDDerivedType *createTypedef(MDType *Ty, StringRef Name, MDFile *File, 174 MDDerivedType *createFriend(MDType *Ty, MDType *FriendTy); 183 MDDerivedType *createInheritance(MDType *Ty, MDType *BaseTy, 200 MDType *Ty); 213 MDType *Ty, unsigned Flags, 230 MDType *Ty, MDNode *PropertyNode); 245 unsigned PropertyAttributes, MDType *Ty); 313 createTemplateTypeParameter(MDScope *Scope, StringRef Name, MDType *Ty); 323 MDType *Ty, 333 MDType *Ty, [all …]
|
/external/clang/test/Misc/ |
D | integer-literal-printing.cpp | 15 template <> struct Type3Helper<boolTy::b> { typedef boolTy Ty; }; typedef 16 template <boolTy T, typename Type3Helper<T>::Ty U> struct Type3 {}; 24 template <> struct Type4Helper<charTy::c> { typedef charTy Ty; }; typedef 25 template <charTy T, typename Type4Helper<T>::Ty U> struct Type4 {}; 32 template <> struct Type5Helper<scharTy::c> { typedef scharTy Ty; }; typedef 33 template <scharTy T, typename Type5Helper<T>::Ty U> struct Type5 {}; 40 template <> struct Type6Helper<ucharTy::c> { typedef ucharTy Ty; }; typedef 41 template <ucharTy T, typename Type6Helper<T>::Ty U> struct Type6 {}; 48 template <> struct Type7Helper<wcharTy::c> { typedef wcharTy Ty; }; typedef 49 template <wcharTy T, typename Type7Helper<T>::Ty U> struct Type7 {}; [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfo.h | 131 unsigned getOperationCost(unsigned Opcode, Type *Ty, 305 bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 321 int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, int64_t BaseOffset, 334 bool isTypeLegal(Type *Ty) const; 353 bool haveFastSqrt(Type *Ty) const; 357 unsigned getFPOpCost(Type *Ty) const; 361 unsigned getIntImmCost(const APInt &Imm, Type *Ty) const; 367 Type *Ty) const; 369 Type *Ty) const; 410 getArithmeticInstrCost(unsigned Opcode, Type *Ty, [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 47 unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) { in getScalarizationOverhead() argument 48 assert(Ty->isVectorTy() && "Can only scalarize vectors"); in getScalarizationOverhead() 51 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getScalarizationOverhead() 54 ->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getScalarizationOverhead() 57 ->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getScalarizationOverhead() 64 unsigned getAltShuffleOverhead(Type *Ty) { in getAltShuffleOverhead() argument 65 assert(Ty->isVectorTy() && "Can only shuffle vectors"); in getAltShuffleOverhead() 74 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) { in getAltShuffleOverhead() 76 ->getVectorInstrCost(Instruction::InsertElement, Ty, i); in getAltShuffleOverhead() 78 ->getVectorInstrCost(Instruction::ExtractElement, Ty, i); in getAltShuffleOverhead() [all …]
|
/external/llvm/lib/Target/Mips/ |
D | MipsISelLowering.h | 269 SDValue getGlobalReg(SelectionDAG &DAG, EVT Ty) const; 276 SDValue getAddrLocal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrLocal() argument 279 SDValue GOT = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrLocal() 280 getTargetNode(N, Ty, DAG, GOTFlag)); in getAddrLocal() 281 SDValue Load = DAG.getLoad(Ty, DL, DAG.getEntryNode(), GOT, in getAddrLocal() 285 SDValue Lo = DAG.getNode(MipsISD::Lo, DL, Ty, in getAddrLocal() 286 getTargetNode(N, Ty, DAG, LoFlag)); in getAddrLocal() 287 return DAG.getNode(ISD::ADD, DL, Ty, Load, Lo); in getAddrLocal() 295 SDValue getAddrGlobal(NodeTy *N, SDLoc DL, EVT Ty, SelectionDAG &DAG, in getAddrGlobal() argument 298 SDValue Tgt = DAG.getNode(MipsISD::Wrapper, DL, Ty, getGlobalReg(DAG, Ty), in getAddrGlobal() [all …]
|
/external/llvm/lib/Analysis/ |
D | TargetTransformInfo.cpp | 49 unsigned TargetTransformInfo::getOperationCost(unsigned Opcode, Type *Ty, in getOperationCost() argument 51 return TTIImpl->getOperationCost(Opcode, Ty, OpTy); in getOperationCost() 100 bool TargetTransformInfo::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV, in isLegalAddressingMode() argument 104 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode() 118 int TargetTransformInfo::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost() argument 122 return TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost() 134 bool TargetTransformInfo::isTypeLegal(Type *Ty) const { in isTypeLegal() 135 return TTIImpl->isTypeLegal(Ty); in isTypeLegal() 159 bool TargetTransformInfo::haveFastSqrt(Type *Ty) const { in haveFastSqrt() 160 return TTIImpl->haveFastSqrt(Ty); in haveFastSqrt() [all …]
|
D | ConstantFolding.cpp | 559 Type *Ty = cast<PointerType>(CE->getType())->getElementType(); in ConstantFoldLoadFromConstPtr() local 560 unsigned NumBits = Ty->getPrimitiveSizeInBits(); in ConstantFoldLoadFromConstPtr() 564 (isa<IntegerType>(Ty) || Ty->isFloatingPointTy())) { in ConstantFoldLoadFromConstPtr() 583 if (Ty->isFloatingPointTy()) in ConstantFoldLoadFromConstPtr() 584 Res = ConstantExpr::getBitCast(Res, Ty); in ConstantFoldLoadFromConstPtr() 808 Type *Ty = Ptr->getType(); in SymbolicallyEvaluateGEP() local 809 assert(Ty->isPointerTy() && "Forming regular GEP of non-pointer type"); in SymbolicallyEvaluateGEP() 813 if (SequentialType *ATy = dyn_cast<SequentialType>(Ty)) { in SymbolicallyEvaluateGEP() 838 Ty = ATy->getElementType(); in SymbolicallyEvaluateGEP() 839 } else if (StructType *STy = dyn_cast<StructType>(Ty)) { in SymbolicallyEvaluateGEP() [all …]
|
/external/valgrind/mpi/ |
D | mpiwrap_type_test.c | 16 typedef MPI_Datatype Ty; typedef 24 static Ty tycon_Contiguous ( int count, Ty t ) in tycon_Contiguous() 26 Ty t2; in tycon_Contiguous() 32 static Ty tycon_Struct2 ( int d1, int copies1, Ty t1, in tycon_Struct2() 33 int d2, int copies2, Ty t2 ) in tycon_Struct2() 37 Ty tys[2]; in tycon_Struct2() 38 Ty tres; in tycon_Struct2() 51 static Ty tycon_Vector ( int count, int blocklen, int stride, Ty t ) in tycon_Vector() 53 Ty tres; in tycon_Vector() 60 static Ty tycon_HVector ( int count, int blocklen, MPI_Aint stride, Ty t ) in tycon_HVector() [all …]
|
/external/llvm/lib/Target/ |
D | Target.cpp | 90 unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMSizeOfTypeInBits() argument 91 return unwrap(TD)->getTypeSizeInBits(unwrap(Ty)); in LLVMSizeOfTypeInBits() 94 unsigned long long LLVMStoreSizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMStoreSizeOfType() argument 95 return unwrap(TD)->getTypeStoreSize(unwrap(Ty)); in LLVMStoreSizeOfType() 98 unsigned long long LLVMABISizeOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABISizeOfType() argument 99 return unwrap(TD)->getTypeAllocSize(unwrap(Ty)); in LLVMABISizeOfType() 102 unsigned LLVMABIAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMABIAlignmentOfType() argument 103 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); in LLVMABIAlignmentOfType() 106 unsigned LLVMCallFrameAlignmentOfType(LLVMTargetDataRef TD, LLVMTypeRef Ty) { in LLVMCallFrameAlignmentOfType() argument 107 return unwrap(TD)->getABITypeAlignment(unwrap(Ty)); in LLVMCallFrameAlignmentOfType() [all …]
|
/external/valgrind/memcheck/tests/ |
D | sh-mem.c | 134 #define DO(NNN, Ty, ITy, isF4) \ in main() argument 136 NNN, #Ty, #ITy); \ in main() 142 size_t nN = n / sizeof(Ty); \ in main() 143 Ty* aN = (Ty*)a; \ in main() 144 Ty* bN = (Ty*)b; \ in main() 145 Ty* aNb = (Ty*)(((U1*)aN) + h); /* set offset from a[] */ \ in main() 146 Ty* bNb = (Ty*)(((U1*)bN) + h); /* set offset from b[] */ \ in main() 155 Ty* undefN_Ty; \ in main() 171 undefN_Ty = (Ty*)&undefN_ITy; \ in main()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfUnit.cpp | 424 void DwarfUnit::addSourceLine(DIE &Die, DIType Ty) { in addSourceLine() argument 425 assert(Ty); in addSourceLine() 427 addSourceLine(Die, Ty->getLine(), Ty->getFilename(), Ty->getDirectory()); in addSourceLine() 432 void DwarfUnit::addSourceLine(DIE &Die, DIObjCProperty Ty) { in addSourceLine() argument 433 assert(Ty); in addSourceLine() 435 addSourceLine(Die, Ty->getLine(), Ty->getFilename(), Ty->getDirectory()); in addSourceLine() 522 DIType Ty = DV.getType(); in addBlockByrefAddress() local 523 DIType TmpTy = Ty; in addBlockByrefAddress() 524 uint16_t Tag = Ty->getTag(); in addBlockByrefAddress() 530 DIDerivedType DTy = cast<MDDerivedType>(Ty); in addBlockByrefAddress() [all …]
|