/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXFavorNonGenericAddrSpaces.cpp | 97 PointerType *DestTy = cast<PointerType>(Cast->getType()); local 102 if (SrcTy->getElementType() != DestTy->getElementType()) 108 DestTy->getAddressSpace() == AddressSpace::ADDRESS_SPACE_GENERIC);
|
H A D | NVPTXGenericToNVVM.cpp | 174 Type *DestTy = PointerType::get(Type::getInt8Ty(Context), AddrSpace); local 175 CVTA = Builder.CreateBitCast(GV, DestTy, "cvta"); 181 ParamTypes.push_back(DestTy); 187 DestTy = 189 CVTA = Builder.CreateBitCast(CVTA, DestTy, "cvta");
|
/external/llvm/utils/TableGen/ |
H A D | CallingConvEmitter.cpp | 217 Record *DestTy = Action->getValueAsDef("DestTy"); local 218 MVT::SimpleValueType DestVT = getValueType(DestTy); 231 Record *DestTy = Action->getValueAsDef("DestTy"); local 232 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; 235 Record *DestTy = Action->getValueAsDef("DestTy"); local 236 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
|
/external/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 168 Type *DestTy) const { 169 if (C->getType() == DestTy) 171 return Fold(ConstantExpr::getCast(Op, C, DestTy)); 173 Constant *CreateIntCast(Constant *C, Type *DestTy, argument 175 if (C->getType() == DestTy) 177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); 179 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 180 if (C->getType() == DestTy) 182 return Fold(ConstantExpr::getPointerCast(C, DestTy)); 184 Constant *CreateFPCast(Constant *C, Type *DestTy) cons [all...] |
/external/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 156 Type *DestTy) const { 157 return ConstantExpr::getCast(Op, C, DestTy); 159 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { 160 return ConstantExpr::getPointerCast(C, DestTy); 162 Constant *CreateIntCast(Constant *C, Type *DestTy, argument 164 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); 166 Constant *CreateFPCast(Constant *C, Type *DestTy) const { 167 return ConstantExpr::getFPCast(C, DestTy); 170 Constant *CreateBitCast(Constant *C, Type *DestTy) const { 171 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
H A D | NoFolder.h | 215 Type *DestTy) const { 216 return CastInst::Create(Op, C, DestTy); 218 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { 219 return CastInst::CreatePointerCast(C, DestTy); 221 Instruction *CreateIntCast(Constant *C, Type *DestTy, argument 223 return CastInst::CreateIntegerCast(C, DestTy, isSigned); 225 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { 226 return CastInst::CreateFPCast(C, DestTy); 229 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { 230 return CreateCast(Instruction::BitCast, C, DestTy); [all...] |
H A D | IRBuilder.h | 1094 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") { argument 1095 return CreateCast(Instruction::Trunc, V, DestTy, Name); 1097 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") { argument 1098 return CreateCast(Instruction::ZExt, V, DestTy, Name); 1100 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") { argument 1101 return CreateCast(Instruction::SExt, V, DestTy, Name); 1103 /// \brief Create a ZExt or Trunc from the integer value V to DestTy. Return 1104 /// the value untouched if the type of V is already DestTy. 1105 Value *CreateZExtOrTrunc(Value *V, Type *DestTy, argument 1108 DestTy 1119 CreateSExtOrTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument 1131 CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = �) argument 1134 CreateFPToSI(Value *V, Type *DestTy, const Twine &Name = �) argument 1137 CreateUIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument 1140 CreateSIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument 1143 CreateFPTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument 1147 CreateFPExt(Value *V, Type *DestTy, const Twine &Name = �) argument 1150 CreatePtrToInt(Value *V, Type *DestTy, const Twine &Name = �) argument 1154 CreateIntToPtr(Value *V, Type *DestTy, const Twine &Name = �) argument 1158 CreateBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1162 CreateAddrSpaceCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1166 CreateZExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1174 CreateSExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1182 CreateTruncOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1190 CreateCast(Instruction::CastOps Op, Value *V, Type *DestTy, const Twine &Name = �) argument 1198 CreatePointerCast(Value *V, Type *DestTy, const Twine &Name = �) argument 1206 CreateIntCast(Value *V, Type *DestTy, bool isSigned, const Twine &Name = �) argument 1220 CreateFPCast(Value *V, Type *DestTy, const Twine &Name = �) argument [all...] |
/external/llvm/lib/IR/ |
H A D | AutoUpgrade.cpp | 524 Instruction *llvm::UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy, argument 531 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 532 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 540 return CastInst::Create(Instruction::IntToPtr, Temp, DestTy); 546 Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) { argument 551 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 552 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 560 DestTy);
|
H A D | ConstantFold.cpp | 100 static Constant *FoldBitCast(Constant *V, Type *DestTy) { argument 102 if (SrcTy == DestTy) 108 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) 138 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { 145 return Constant::getNullValue(DestTy); 161 return ConstantPointerNull::get(cast<PointerType>(DestTy)); 165 if (DestTy->isIntegerTy()) 170 if (DestTy->isFloatingPointTy()) 171 return ConstantFP::get(DestTy->getContext(), 172 APFloat(DestTy 337 getFoldedSizeOf(Type *Ty, Type *DestTy, bool Folded) argument 394 getFoldedAlignOf(Type *Ty, Type *DestTy, bool Folded) argument 460 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument 510 ConstantFoldCastInstruction(unsigned opc, Constant *V, Type *DestTy) argument [all...] |
H A D | ConstantsContext.h | 174 Type *DestTy) 175 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1), 200 Type *DestTy) 201 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2), 220 Type *DestTy); 224 Type *DestTy, 227 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy); 172 ExtractValueConstantExpr(Constant *Agg, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument 198 InsertValueConstantExpr(Constant *Agg, Constant *Val, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument 222 Create(Constant *C, ArrayRef<Constant*> IdxList, Type *DestTy, unsigned Flags) argument
|
H A D | Verifier.cpp | 338 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy); 961 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { argument 964 unsigned DestBitSize = DestTy->getPrimitiveSizeInBits(); 968 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), 976 Assert1(!DestTy->isAggregateType(), 984 !DestTy->isPtrOrPtrVectorTy() || 985 SrcTy->isVectorTy() != DestTy->isVectorTy()) { 990 unsigned DstAS = DestTy->getPointerAddressSpace(); 1257 Type *DestTy = I.getType(); local 1261 unsigned DestBitSize = DestTy 1275 Type *DestTy = I.getType(); local 1293 Type *DestTy = I.getType(); local 1311 Type *DestTy = I.getType(); local 1328 Type *DestTy = I.getType(); local 1346 Type *DestTy = I.getType(); local 1369 Type *DestTy = I.getType(); local 1392 Type *DestTy = I.getType(); local 1415 Type *DestTy = I.getType(); local 1438 Type *DestTy = I.getType(); local 1460 Type *DestTy = I.getType(); local 1479 Type *DestTy = I.getType(); local 1486 Type *DestTy = I.getType(); local [all...] |
H A D | Constants.cpp | 1596 "SrcTy must be larger than DestTy for Trunc!"); 1610 "SrcTy must be smaller than DestTy for SExt!"); 1624 "SrcTy must be smaller than DestTy for ZExt!"); 2246 Type *DestTy) 2247 : ConstantExpr(DestTy, Instruction::GetElementPtr, 2245 GetElementPtrConstantExpr(Constant *C, ArrayRef<Constant*> IdxList, Type *DestTy) argument
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 300 PointerType *DestTy = cast<PointerType>(CI->getType()); local 301 Type *DestPTy = DestTy->getElementType(); 305 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
|
H A D | InstCombineVectorOps.cpp | 725 Type *DestTy = local 729 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
|
H A D | InstCombineCasts.cpp | 449 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local 455 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 456 CanEvaluateTruncated(Src, DestTy)) { 462 Value *Res = EvaluateInDifferentType(Src, DestTy, false); 463 assert(Res->getType() == DestTy); 468 if (DestTy->getScalarSizeInBits() == 1) { 776 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 783 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) 1056 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 1517 OptimizeVectorResize(Value *InVal, VectorType *DestTy, InstCombiner &IC) argument 1730 Type *DestTy = CI.getType(); local 1788 Type *DestTy = CI.getType(); local 1917 PointerType *DestTy = cast<PointerType>(CI.getType()->getScalarType()); local [all...] |
/external/llvm/tools/llvm-stress/ |
H A D | llvm-stress.cpp | 481 Type *DestTy = pickScalarType(); variable 486 DestTy = pickVectorType(VecTy->getNumElements()); 490 if (VTy == DestTy) return; 494 if (!DestTy->isPointerTy()) 495 DestTy = PointerType::get(DestTy, 0); 497 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); 501 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); 506 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); 511 DestTy [all...] |
/external/clang/lib/Parse/ |
H A D | ParseExpr.cpp | 1847 TypeResult DestTy = ParseTypeName(); local 1848 if (DestTy.isInvalid()) 1858 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc, 1876 TypeResult DestTy = ParseTypeName(); local 1877 if (DestTy.isInvalid()) 1887 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc,
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 53 static Constant *FoldBitCast(Constant *C, Type *DestTy, argument 56 if (C->isNullValue() && !DestTy->isX86_MMXTy()) 57 return Constant::getNullValue(DestTy); 58 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy()) 59 return Constant::getAllOnesValue(DestTy); 62 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) { 65 return ConstantExpr::getBitCast(C, DestTy); 82 return ConstantExpr::getBitCast(C, DestTy); 100 VectorType *DestVTy = dyn_cast<VectorType>(DestTy); 102 return ConstantExpr::getBitCast(C, DestTy); 1009 ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, ArrayRef<Constant *> Ops, const DataLayout *TD, const TargetLibraryInfo *TLI) argument [all...] |
/external/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 735 Type* DestTy = CE->getType(); local 739 assert(DestTy->isFloatingPointTy() && "invalid bitcast"); 740 if (DestTy->isFloatTy()) 742 else if (DestTy->isDoubleTy()) 746 assert(DestTy->isIntegerTy(32) && "Invalid bitcast"); 750 assert(DestTy->isIntegerTy(64) && "Invalid bitcast"); 754 assert(DestTy->isPointerTy() && "Invalid bitcast");
|
/external/llvm/lib/Transforms/IPO/ |
H A D | MergeFunctions.cpp | 1286 static Value *createCast(IRBuilder<false> &Builder, Value *V, Type *DestTy) { argument 1289 assert(DestTy->isStructTy()); 1290 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); 1291 Value *Result = UndefValue::get(DestTy); 1295 DestTy->getStructElementType(I)); 1302 assert(!DestTy->isStructTy()); 1303 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) 1304 return Builder.CreateIntToPtr(V, DestTy); 1305 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) 1306 return Builder.CreatePtrToInt(V, DestTy); [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprCXX.cpp | 1675 QualType DestTy) { 1676 llvm::Type *DestLTy = CGF.ConvertType(DestTy); 1677 if (DestTy->isPointerType()) 1691 QualType DestTy = DCE->getTypeAsWritten(); local 1694 if (llvm::Value *T = EmitDynamicCastToNull(*this, DestTy)) 1702 const PointerType *DestPTy = DestTy->getAs<PointerType>(); 1714 DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType(); 1741 DestTy); 1746 DestTy, DestRecordTy, CastEnd); 1674 EmitDynamicCastToNull(CodeGenFunction &CGF, QualType DestTy) argument
|
H A D | CGExprComplex.cpp | 145 ComplexPairTy EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy); 414 QualType DestTy) { 431 CGF.ConvertType(CGF.getContext().getPointerType(DestTy))); 432 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy, 484 Op->getType(), DestTy); 490 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy); 413 EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy) argument
|
H A D | CGExprConstant.cpp | 1052 llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType); local 1059 if (isa<llvm::ArrayType>(DestTy)) { 1078 if (isa<llvm::PointerType>(DestTy)) 1079 return llvm::ConstantExpr::getPointerCast(C, DestTy); 1081 return llvm::ConstantExpr::getPtrToInt(C, DestTy); 1087 if (isa<llvm::PointerType>(DestTy)) 1088 return llvm::ConstantExpr::getIntToPtr(C, DestTy); 1091 if (C->getType() != DestTy) 1092 return llvm::ConstantExpr::getTrunc(C, DestTy);
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 1646 Type *DestTy = I->getType(); local 1651 EVT DestEVT = TLI.getValueType(DestTy, true); 1819 Type *DestTy = I->getType(); local 1829 EVT DestEVT = TLI.getValueType(DestTy, true);
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCFastISel.cpp | 1723 Type *DestTy = I->getType(); local 1733 DestEVT = TLI.getValueType(DestTy, true);
|