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

12

/freebsd-9.3-release/contrib/llvm/include/llvm/Support/
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 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 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...]
/freebsd-9.3-release/contrib/llvm/include/llvm/
H A DAutoUpgrade.h53 Instruction *UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
59 Value *UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy);
/freebsd-9.3-release/contrib/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 DVerifier.cpp341 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy);
944 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { argument
947 unsigned DestBitSize = DestTy->getPrimitiveSizeInBits();
951 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(),
959 Assert1(!DestTy->isAggregateType(),
967 !DestTy->isPtrOrPtrVectorTy() ||
968 SrcTy->isVectorTy() != DestTy->isVectorTy()) {
973 unsigned DstAS = DestTy->getPointerAddressSpace();
1236 Type *DestTy = I.getType(); local
1240 unsigned DestBitSize = DestTy
1254 Type *DestTy = I.getType(); local
1272 Type *DestTy = I.getType(); local
1290 Type *DestTy = I.getType(); local
1307 Type *DestTy = I.getType(); local
1325 Type *DestTy = I.getType(); local
1348 Type *DestTy = I.getType(); local
1371 Type *DestTy = I.getType(); local
1394 Type *DestTy = I.getType(); local
1417 Type *DestTy = I.getType(); local
1439 Type *DestTy = I.getType(); local
1458 Type *DestTy = I.getType(); local
1465 Type *DestTy = I.getType(); local
[all...]
H A DConstantFold.h33 Type *DestTy ///< The destination type
H A DAutoUpgrade.cpp452 Instruction *llvm::UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy, argument
459 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
460 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
468 return CastInst::Create(Instruction::IntToPtr, Temp, DestTy);
474 Value *llvm::UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy) { argument
479 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
480 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
488 DestTy);
H A DCore.cpp2268 LLVMTypeRef DestTy, const char *Name) {
2269 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name));
2273 LLVMTypeRef DestTy, const char *Name) {
2274 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name));
2278 LLVMTypeRef DestTy, const char *Name) {
2279 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name));
2283 LLVMTypeRef DestTy, const char *Name) {
2284 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name));
2288 LLVMTypeRef DestTy, const char *Name) {
2289 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Nam
2267 LLVMBuildTrunc(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2272 LLVMBuildZExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2277 LLVMBuildSExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2282 LLVMBuildFPToUI(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2287 LLVMBuildFPToSI(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2292 LLVMBuildUIToFP(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2297 LLVMBuildSIToFP(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2302 LLVMBuildFPTrunc(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2307 LLVMBuildFPExt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2312 LLVMBuildPtrToInt(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2317 LLVMBuildIntToPtr(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2322 LLVMBuildBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2327 LLVMBuildAddrSpaceCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2332 LLVMBuildZExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2338 LLVMBuildSExtOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2344 LLVMBuildTruncOrBitCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2350 LLVMBuildCast(LLVMBuilderRef B, LLVMOpcode Op, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2356 LLVMBuildPointerCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2361 LLVMBuildIntCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
2367 LLVMBuildFPCast(LLVMBuilderRef B, LLVMValueRef Val, LLVMTypeRef DestTy, const char *Name) argument
[all...]
H A DInstructions.cpp2085 Type *DestTy,
2105 DestTy->getScalarSizeInBits();
2207 // No-op cast in second op implies firstOp as long as the DestTy
2214 // No-op cast in second op implies firstOp as long as the DestTy
2541 bool CastInst::isCastable(Type *SrcTy, Type *DestTy) { argument
2542 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType())
2545 if (SrcTy == DestTy)
2549 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy))
2553 DestTy = DestVecTy->getElementType();
2558 unsigned DestBits = DestTy
2083 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument
2602 isBitCastable(Type *SrcTy, Type *DestTy) argument
2650 getCastOpcode( const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) argument
[all...]
H A DConstantsContext.h171 Type *DestTy)
172 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1),
197 Type *DestTy)
198 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2),
217 Type *DestTy);
221 Type *DestTy,
224 new(IdxList.size() + 1) GetElementPtrConstantExpr(C, IdxList, DestTy);
169 ExtractValueConstantExpr(Constant *Agg, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument
195 InsertValueConstantExpr(Constant *Agg, Constant *Val, const SmallVector<unsigned, 4> &IdxList, Type *DestTy) argument
219 Create(Constant *C, ArrayRef<Constant*> IdxList, Type *DestTy, unsigned Flags) argument
/freebsd-9.3-release/contrib/llvm/include/llvm/IR/
H A DIRBuilder.h1068 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") { argument
1069 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1071 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") { argument
1072 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1074 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") { argument
1075 return CreateCast(Instruction::SExt, V, DestTy, Name);
1077 /// \brief Create a ZExt or Trunc from the integer value V to DestTy. Return
1078 /// the value untouched if the type of V is already DestTy.
1079 Value *CreateZExtOrTrunc(Value *V, Type *DestTy, argument
1082 DestTy
1093 CreateSExtOrTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument
1105 CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = �) argument
1108 CreateFPToSI(Value *V, Type *DestTy, const Twine &Name = �) argument
1111 CreateUIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument
1114 CreateSIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument
1117 CreateFPTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument
1121 CreateFPExt(Value *V, Type *DestTy, const Twine &Name = �) argument
1124 CreatePtrToInt(Value *V, Type *DestTy, const Twine &Name = �) argument
1128 CreateIntToPtr(Value *V, Type *DestTy, const Twine &Name = �) argument
1132 CreateBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1136 CreateAddrSpaceCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1140 CreateZExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1148 CreateSExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1156 CreateTruncOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1164 CreateCast(Instruction::CastOps Op, Value *V, Type *DestTy, const Twine &Name = �) argument
1172 CreatePointerCast(Value *V, Type *DestTy, const Twine &Name = �) argument
1180 CreateIntCast(Value *V, Type *DestTy, bool isSigned, const Twine &Name = �) argument
1194 CreateFPCast(Value *V, Type *DestTy, const Twine &Name = �) argument
[all...]
/freebsd-9.3-release/contrib/llvm/utils/TableGen/
H A DCallingConvEmitter.cpp195 Record *DestTy = Action->getValueAsDef("DestTy"); local
196 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
204 Record *DestTy = Action->getValueAsDef("DestTy"); local
205 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
208 Record *DestTy = Action->getValueAsDef("DestTy"); local
209 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
/freebsd-9.3-release/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp480 Type *DestTy = pickScalarType(); local
485 DestTy = pickVectorType(VecTy->getNumElements());
489 if (VTy == DestTy) return;
493 if (!DestTy->isPointerTy())
494 DestTy = PointerType::get(DestTy, 0);
496 new BitCastInst(V, DestTy, "PC", BB->getTerminator()));
500 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits();
505 new BitCastInst(V, DestTy, "BC", BB->getTerminator()));
510 DestTy
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp446 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local
452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
453 CanEvaluateTruncated(Src, DestTy)) {
459 Value *Res = EvaluateInDifferentType(Src, DestTy, false);
460 assert(Res->getType() == DestTy);
465 if (DestTy->getScalarSizeInBits() == 1) {
773 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
780 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy))
1074 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
1461 OptimizeVectorResize(Value *InVal, VectorType *DestTy, InstCombiner &IC) argument
1674 Type *DestTy = CI.getType(); local
1732 Type *DestTy = CI.getType(); local
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/Analysis/
H A DConstantFolding.h55 Constant *ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
/freebsd-9.3-release/contrib/llvm/include/llvm-c/
H A DCore.h2588 LLVMTypeRef DestTy, const char *Name);
2590 LLVMTypeRef DestTy, const char *Name);
2592 LLVMTypeRef DestTy, const char *Name);
2594 LLVMTypeRef DestTy, const char *Name);
2596 LLVMTypeRef DestTy, const char *Name);
2598 LLVMTypeRef DestTy, const char *Name);
2600 LLVMTypeRef DestTy, const char *Name);
2602 LLVMTypeRef DestTy, const char *Name);
2604 LLVMTypeRef DestTy, const char *Name);
2606 LLVMTypeRef DestTy, cons
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp48 static Constant *FoldBitCast(Constant *C, Type *DestTy, argument
51 if (C->isNullValue() && !DestTy->isX86_MMXTy())
52 return Constant::getNullValue(DestTy);
53 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
54 return Constant::getAllOnesValue(DestTy);
57 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
60 return ConstantExpr::getBitCast(C, DestTy);
77 return ConstantExpr::getBitCast(C, DestTy);
95 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
97 return ConstantExpr::getBitCast(C, DestTy);
954 ConstantFoldInstOperands(unsigned Opcode, Type *DestTy, ArrayRef<Constant *> Ops, const DataLayout *TD, const TargetLibraryInfo *TLI) argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp177 Type *DestTy = PointerType::get(Type::getInt8Ty(Context), AddrSpace); local
178 CVTA = Builder.CreateBitCast(GV, DestTy, "cvta");
184 ParamTypes.push_back(DestTy);
190 DestTy =
192 CVTA = Builder.CreateBitCast(CVTA, DestTy, "cvta");
/freebsd-9.3-release/contrib/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp727 static Value* createCast(IRBuilder<false> &Builder, Value *V, Type *DestTy) { argument
729 if (SrcTy->isIntegerTy() && DestTy->isPointerTy())
730 return Builder.CreateIntToPtr(V, DestTy);
731 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())
732 return Builder.CreatePtrToInt(V, DestTy);
734 return Builder.CreateBitCast(V, DestTy);
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprConstant.cpp1046 llvm::Type *DestTy = getTypes().ConvertTypeForMem(DestType); local
1053 if (isa<llvm::ArrayType>(DestTy)) {
1070 if (isa<llvm::PointerType>(DestTy))
1071 return llvm::ConstantExpr::getBitCast(C, DestTy);
1073 return llvm::ConstantExpr::getPtrToInt(C, DestTy);
1079 if (isa<llvm::PointerType>(DestTy))
1080 return llvm::ConstantExpr::getIntToPtr(C, DestTy);
1083 if (C->getType() != DestTy)
1084 return llvm::ConstantExpr::getTrunc(C, DestTy);
H A DCGExprCXX.cpp1717 QualType SrcTy, QualType DestTy,
1721 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
1723 if (const PointerType *PTy = DestTy->getAs<PointerType>()) {
1748 if (const PointerType *DestPTy = DestTy->getAs<PointerType>()) {
1753 DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType();
1781 if (DestTy->isReferenceType()) {
1796 QualType DestTy) {
1797 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
1798 if (DestTy->isPointerType())
1811 QualType DestTy local
1716 EmitDynamicCastCall(CodeGenFunction &CGF, llvm::Value *Value, QualType SrcTy, QualType DestTy, llvm::BasicBlock *CastEnd) argument
1795 EmitDynamicCastToNull(CodeGenFunction &CGF, QualType DestTy) argument
[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,
483 Op->getType(), DestTy);
489 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy);
413 EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy) argument
H A DCGExprScalar.cpp1274 QualType DestTy = CE->getType(); local
1277 if (!DestTy->isVoidType())
1292 ConvertType(CGF.getContext().getPointerType(DestTy)));
1293 return EmitLoadOfLValue(CGF.MakeNaturalAlignAddrLValue(V, DestTy),
1302 return Builder.CreateBitCast(Src, ConvertType(DestTy));
1311 const CXXRecordDecl *DerivedClassDecl = DestTy->getPointeeCXXRecordDecl();
1325 Derived, DestTy->getPointeeType());
1373 cast<llvm::PointerType>(ConvertType(DestTy)));
1423 assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy));
1437 return Builder.CreateIntToPtr(IntResult, ConvertType(DestTy));
[all...]
/freebsd-9.3-release/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp698 Type* DestTy = CE->getType(); local
702 assert(DestTy->isFloatingPointTy() && "invalid bitcast");
703 if (DestTy->isFloatTy())
705 else if (DestTy->isDoubleTy())
709 assert(DestTy->isIntegerTy(32) && "Invalid bitcast");
713 assert(DestTy->isIntegerTy(64) && "Invalid bitcast");
717 assert(DestTy->isPointerTy() && "Invalid bitcast");

Completed in 390 milliseconds

12