Searched refs:DestTy (Results 1 - 25 of 50) sorted by relevance

12

/external/llvm/include/llvm/Analysis/
H A DTargetFolder.h168 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...]
H A DConstantFolding.h56 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
/external/llvm/include/llvm/IR/
H A DConstantFolder.h156 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 DAutoUpgrade.h55 Instruction *UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
61 Value *UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy);
H A DNoFolder.h215 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 DIRBuilder.h1094 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 DConstantFold.cpp100 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 DConstantFold.h33 Type *DestTy ///< The destination type
H A DVerifier.cpp338 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 DAutoUpgrade.cpp524 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 DCore.cpp2374 LLVMTypeRef DestTy, const char *Name) {
2375 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name));
2379 LLVMTypeRef DestTy, const char *Name) {
2380 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name));
2384 LLVMTypeRef DestTy, const char *Name) {
2385 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name));
2389 LLVMTypeRef DestTy, const char *Name) {
2390 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name));
2394 LLVMTypeRef DestTy, const char *Name) {
2395 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Nam
2373 LLVMBuildTrunc(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2378 LLVMBuildZExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2383 LLVMBuildSExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2388 LLVMBuildFPToUI(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2393 LLVMBuildFPToSI(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2398 LLVMBuildUIToFP(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2403 LLVMBuildSIToFP(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2408 LLVMBuildFPTrunc(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2413 LLVMBuildFPExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2418 LLVMBuildPtrToInt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2423 LLVMBuildIntToPtr(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2428 LLVMBuildBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2433 LLVMBuildAddrSpaceCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2438 LLVMBuildZExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2444 LLVMBuildSExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2450 LLVMBuildTruncOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2456 LLVMBuildCast(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2462 LLVMBuildPointerCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2467 LLVMBuildIntCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2473 LLVMBuildFPCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
[all...]
H A DInstructions.cpp2097 Type *DestTy,
2117 DestTy->getScalarSizeInBits();
2238 // No-op cast in second op implies firstOp as long as the DestTy
2245 // No-op cast in second op implies firstOp as long as the DestTy
2566 bool CastInst::isCastable(Type *SrcTy, Type *DestTy) { argument
2567 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType())
2570 if (SrcTy == DestTy)
2574 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
2578 DestTy = DestVecTy->getElementType();
2583 unsigned DestBits = DestTy
2095 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument
2627 isBitCastable(Type *SrcTy, Type *DestTy) argument
2675 getCastOpcode( const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) argument
[all...]
H A DConstantsContext.h174 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
/external/llvm/lib/Target/NVPTX/
H A DNVPTXFavorNonGenericAddrSpaces.cpp97 PointerType *DestTy = cast<PointerType>(Cast->getType()); local
102 if (SrcTy->getElementType() != DestTy->getElementType())
108 DestTy->getAddressSpace() == AddressSpace::ADDRESS_SPACE_GENERIC);
H A DNVPTXGenericToNVVM.cpp174 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 DCallingConvEmitter.cpp217 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/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp449 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 Dllvm-stress.cpp481 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/llvm/lib/Analysis/
H A DConstantFolding.cpp53 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/include/llvm-c/
H A DCore.h2641 LLVMTypeRef DestTy, const char *Name);
2643 LLVMTypeRef DestTy, const char *Name);
2645 LLVMTypeRef DestTy, const char *Name);
2647 LLVMTypeRef DestTy, const char *Name);
2649 LLVMTypeRef DestTy, const char *Name);
2651 LLVMTypeRef DestTy, const char *Name);
2653 LLVMTypeRef DestTy, const char *Name);
2655 LLVMTypeRef DestTy, const char *Name);
2657 LLVMTypeRef DestTy, const char *Name);
2659 LLVMTypeRef DestTy, cons
[all...]
/external/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp1286 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 DCGExprCXX.cpp1675 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 DCGExprConstant.cpp1052 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);
H A DCGExprScalar.cpp1271 QualType DestTy = CE->getType(); local
1274 if (!DestTy->isVoidType())
1289 ConvertType(CGF.getContext().getPointerType(DestTy)));
1290 return EmitLoadOfLValue(CGF.MakeNaturalAlignAddrLValue(V, DestTy),
1300 llvm::Type *DstTy = ConvertType(DestTy);
1310 return Builder.CreateAddrSpaceCast(Src, ConvertType(DestTy));
1319 const CXXRecordDecl *DerivedClassDecl = DestTy->getPointeeCXXRecordDecl();
1333 Derived, DestTy->getPointeeType());
1381 cast<llvm::PointerType>(ConvertType(DestTy)));
1431 assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy));
[all...]
H A DCGExprComplex.cpp145 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

Completed in 395 milliseconds

12