| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCasts.cpp | 212 if (SrcTy && DestTy && in commonCastTransforms() 682 if ((DestTy->isVectorTy() || shouldChangeType(SrcTy, DestTy)) && in visitTrunc() 731 if (DestTy->isIntegerTy()) { in visitTrunc() 1199 X->getType() == DestTy) in visitZExt() 1206 X->getType() == DestTy) { in visitZExt() 1217 X->getType() == DestTy) { in visitZExt() 1412 if (shouldChangeType(SrcTy, DestTy) && canEvaluateSExtd(Src, DestTy)) { in visitSExt() 1488 ConstantInt::get(DestTy, DestTy->getScalarSizeInBits()), in visitSExt() 1505 if (XTy == DestTy) in visitSExt() 2584 Type *DestTy = CI.getType(); in visitBitCast() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | InstSimplifyFolder.h | 116 Type *DestTy) const override { in FoldCast() argument 117 return simplifyCastInst(Op, V, DestTy, SQ); in FoldCast() 124 Value *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() argument 125 if (C->getType() == DestTy) in CreatePointerCast() 127 return ConstFolder.CreatePointerCast(C, DestTy); in CreatePointerCast() 131 Type *DestTy) const override { in CreatePointerBitCastOrAddrSpaceCast() argument 132 if (C->getType() == DestTy) in CreatePointerBitCastOrAddrSpaceCast() 134 return ConstFolder.CreatePointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast()
|
| H A D | TargetFolder.h | 188 Type *DestTy) const override { in FoldCast() argument 190 return ConstantFoldCastOperand(Op, C, DestTy, DL); in FoldCast() 198 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() argument 199 if (C->getType() == DestTy) in CreatePointerCast() 201 return Fold(ConstantExpr::getPointerCast(C, DestTy)); in CreatePointerCast() 205 Type *DestTy) const override { in CreatePointerBitCastOrAddrSpaceCast() argument 206 if (C->getType() == DestTy) in CreatePointerBitCastOrAddrSpaceCast() 208 return Fold(ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy)); in CreatePointerBitCastOrAddrSpaceCast()
|
| H A D | ConstantFolding.h | 114 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy, 119 Constant *ConstantFoldIntegerCast(Constant *C, Type *DestTy, bool IsSigned, 192 Constant *ConstantFoldLoadThroughBitcast(Constant *C, Type *DestTy,
|
| /freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/ |
| H A D | llvm-stress.cpp | 545 Type *DestTy = pickScalarType(); in Act() local 549 DestTy = pickVectorType(cast<VectorType>(VTy)); in Act() 552 if (VTy == DestTy) return; in Act() 556 if (!DestTy->isPointerTy()) in Act() 557 DestTy = PointerType::get(DestTy, 0); in Act() 559 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); in Act() 568 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); in Act() 575 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); in Act() 580 new ZExtInst(V, DestTy, "ZE", BB->getTerminator())); in Act() 589 new FPToSIInst(V, DestTy, "FC", BB->getTerminator())); in Act() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IRBuilder.h | 2012 if (V->getType() == DestTy) 2031 DestTy->isIntOrIntVectorTy() && 2035 return CreateZExt(V, DestTy, Name); 2037 return CreateTrunc(V, DestTy, Name); 2046 DestTy->isIntOrIntVectorTy() && 2050 return CreateSExt(V, DestTy, Name); 2052 return CreateTrunc(V, DestTy, Name); 2146 if (V->getType() == DestTy) 2155 if (V->getType() == DestTy) 2167 if (V->getType() == DestTy) [all …]
|
| H A D | NoFolder.h | 111 Type *DestTy) const override { in FoldCast() argument 119 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() argument 120 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast() 124 Constant *C, Type *DestTy) const override { in CreatePointerBitCastOrAddrSpaceCast() argument 125 return CastInst::CreatePointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast()
|
| H A D | ConstantFolder.h | 177 Type *DestTy) const override { in FoldCast() argument 180 return ConstantExpr::getCast(Op, C, DestTy); in FoldCast() 181 return ConstantFoldCastInstruction(Op, C, DestTy); in FoldCast() 190 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override { in CreatePointerCast() argument 191 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast() 195 Type *DestTy) const override { in CreatePointerBitCastOrAddrSpaceCast() argument 196 return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast()
|
| H A D | IRBuilderFolder.h | 74 Type *DestTy) const = 0; 80 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0; 82 Type *DestTy) const = 0;
|
| H A D | AutoUpgrade.h | 79 Instruction *UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy, 85 Constant *UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy);
|
| H A D | ConstantFold.h | 37 Type *DestTy ///< The destination type
|
| /freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | CallingConvEmitter.cpp | 298 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local 299 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction() 312 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local 313 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction() 328 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local 329 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction() 332 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local 333 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction() 336 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local 337 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 72 if (SrcTy == DestTy) in FoldBitCast() 92 if (DestTy->isFloatingPointTy() && !DestTy->isPPC_FP128Ty()) in FoldBitCast() 113 if (!DestTy->isIntegerTy()) in FoldBitCast() 193 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() 201 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 202 return UndefValue::get(DestTy); in ConstantFoldCastInstruction() 205 if (V->isNullValue() && !DestTy->isX86_MMXTy() && !DestTy->isX86_AMXTy() && in ConstantFoldCastInstruction() 207 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 223 DestTy->isVectorTy() && in ConstantFoldCastInstruction() 276 return PoisonValue::get(DestTy); in ConstantFoldCastInstruction() [all …]
|
| H A D | Core.cpp | 3837 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildTrunc() argument 3842 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildZExt() argument 3847 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildSExt() argument 3852 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildFPToUI() argument 3857 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildFPToSI() argument 3862 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildUIToFP() argument 3877 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildFPExt() argument 3920 LLVMTypeRef DestTy, const char *Name) { in LLVMBuildCast() argument 3922 unwrap(DestTy), Name)); in LLVMBuildCast() 3939 return wrap(unwrap(B)->CreateIntCast(unwrap(Val), unwrap(DestTy), in LLVMBuildIntCast() [all …]
|
| H A D | Verifier.cpp | 3082 Type *DestTy = I.getType(); in visitTruncInst() local 3100 Type *DestTy = I.getType(); in visitZExtInst() local 3118 Type *DestTy = I.getType(); in visitSExtInst() local 3136 Type *DestTy = I.getType(); in visitFPTruncInst() local 3153 Type *DestTy = I.getType(); in visitFPExtInst() local 3171 Type *DestTy = I.getType(); in visitUIToFPInst() local 3194 Type *DestTy = I.getType(); in visitSIToFPInst() local 3217 Type *DestTy = I.getType(); in visitFPToUIInst() local 3239 Type *DestTy = I.getType(); in visitFPToSIInst() local 3261 Type *DestTy = I.getType(); in visitPtrToIntInst() local [all …]
|
| H A D | Instructions.cpp | 3074 Type *DestTy, in isNoopCast() argument 3095 DestTy->getScalarSizeInBits(); in isNoopCast() 3557 if (SrcTy == DestTy) in isBitCastable() 3565 DestTy = DestVecTy->getElementType(); in isBitCastable() 3600 if (auto *PtrTy = dyn_cast<PointerType>(DestTy)) in isBitOrNoopPointerCastable() 3605 return isBitCastable(SrcTy, DestTy); in isBitOrNoopPointerCastable() 3622 if (SrcTy == DestTy) in getCastOpcode() 3632 DestTy = DestVecTy->getElementType(); in getCastOpcode() 3686 } else if (DestTy->isVectorTy()) { in getCastOpcode() 3690 } else if (DestTy->isPointerTy()) { in getCastOpcode() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | TargetInfo.cpp | 134 LangAS DestAddr, llvm::Type *DestTy, bool isNonNull) const { in performAddrSpaceCast() argument 138 return performAddrSpaceCast(CGF.CGM, C, SrcAddr, DestAddr, DestTy); in performAddrSpaceCast() 141 Src, DestTy, Src->hasName() ? Src->getName() + ".ascast" : ""); in performAddrSpaceCast() 147 llvm::Type *DestTy) const { in performAddrSpaceCast() 150 return llvm::ConstantExpr::getPointerCast(Src, DestTy); in performAddrSpaceCast()
|
| H A D | CGExprScalar.cpp | 2047 QualType DestTy = CE->getType(); in VisitCastExpr() local 2074 CGF.ConvertTypeForMem(DestTy)); in VisitCastExpr() 2086 llvm::Type *DstTy = ConvertType(DestTy); in VisitCastExpr() 2213 ConvertType(DestTy)), DestTy); in VisitCastExpr() 2219 DestTy->getPointeeType().getAddressSpace(), ConvertType(DestTy)); in VisitCastExpr() 2278 DestTy); in VisitCastExpr() 2334 auto DestLLVMTy = ConvertType(DestTy); in VisitCastExpr() 2345 if (DestTy.mayBeDynamicClass()) in VisitCastExpr() 2374 llvm::Type *DstTy = ConvertType(DestTy); in VisitCastExpr() 2403 assert(DestTy->isFixedPointType() && in VisitCastExpr() [all …]
|
| H A D | CGExprCXX.cpp | 2254 QualType DestTy) { in EmitDynamicCastToNull() argument 2255 llvm::Type *DestLTy = CGF.ConvertType(DestTy); in EmitDynamicCastToNull() 2256 if (DestTy->isPointerType()) in EmitDynamicCastToNull() 2271 QualType DestTy = DCE->getTypeAsWritten(); in EmitDynamicCast() local 2278 bool IsDynamicCastToVoid = DestTy->isVoidPointerType(); in EmitDynamicCast() 2284 } else if (const PointerType *DestPTy = DestTy->getAs<PointerType>()) { in EmitDynamicCast() 2289 DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType(); in EmitDynamicCast() 2301 if (llvm::Value *T = EmitDynamicCastToNull(*this, DestTy)) { in EmitDynamicCast() 2345 *this, ThisAddr, SrcRecordTy, DestTy, DestRecordTy, CastEnd, CastNull); in EmitDynamicCast() 2350 DestTy, DestRecordTy, CastEnd); in EmitDynamicCast() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | LegalizationArtifactCombiner.h | 418 const unsigned DestSize = DestTy.getSizeInBits(); in tryFoldUnmergeCast() 525 return !DestTy.isVector() && OpTy.isVector() && in canFoldMergeOpcode() 526 DestTy == OpTy.getElementType(); in canFoldMergeOpcode() 530 if (!DestTy.isVector()) in canFoldMergeOpcode() 539 return DestTy.getSizeInBits() <= OpEltSize; in canFoldMergeOpcode() 540 return DestTy.getSizeInBits() >= OpEltSize; in canFoldMergeOpcode() 875 LLT DestTy = MRI.getType(MI.getReg(0)); in tryCombineUnmergeDefs() local 887 if (MRI.getType(FoundVal) != DestTy) in tryCombineUnmergeDefs() 1048 LLT DestTy = MRI.getType(MI.getReg(0)); in tryCombineUnmergeValues() local 1197 if (!ConvertOp && DestTy != MergeSrcTy) in tryCombineUnmergeValues() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 114 if (isa<IntegerType>(DestTy) || DestTy->isFloatingPointTy()) { in FoldBitCast() 133 if (isa<IntegerType>(DestTy)) in FoldBitCast() 142 auto *DestVTy = dyn_cast<VectorType>(DestTy); in FoldBitCast() 144 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast() 155 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast() 161 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast() 185 return ConstantExpr::getBitCast(C, DestTy); in FoldBitCast() 348 if (SrcTy == DestTy) in ConstantFoldLoadThroughBitcast() 995 Type *DestTy = InstOrCE->getType(); in ConstantFoldInstOperandsImpl() local 1462 return FoldBitCast(C, DestTy, DL); in ConstantFoldCastOperand() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | MergeFunctions.cpp | 482 static Value *createCast(IRBuilder<> &Builder, Value *V, Type *DestTy) { in createCast() argument 485 assert(DestTy->isStructTy()); in createCast() 486 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); in createCast() 487 Value *Result = PoisonValue::get(DestTy); in createCast() 491 DestTy->getStructElementType(I)); in createCast() 497 assert(!DestTy->isStructTy()); in createCast() 498 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in createCast() 499 return Builder.CreateIntToPtr(V, DestTy); in createCast() 500 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in createCast() 501 return Builder.CreatePtrToInt(V, DestTy); in createCast() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | Core.h | 4203 LLVMTypeRef DestTy, const char *Name); 4205 LLVMTypeRef DestTy, const char *Name); 4207 LLVMTypeRef DestTy, const char *Name); 4209 LLVMTypeRef DestTy, const char *Name); 4211 LLVMTypeRef DestTy, const char *Name); 4213 LLVMTypeRef DestTy, const char *Name); 4215 LLVMTypeRef DestTy, const char *Name); 4217 LLVMTypeRef DestTy, const char *Name); 4219 LLVMTypeRef DestTy, const char *Name); 4235 LLVMTypeRef DestTy, const char *Name); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Target/ |
| H A D | TargetCallingConv.td | 164 ValueType DestTy = destTy; 170 ValueType DestTy = destTy; 176 ValueType DestTy = destTy; 182 ValueType DestTy = destTy; 188 ValueType DestTy = destTy;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 981 IntegerType *DestTy) { in isPromotableTo() argument 983 if (!T || T->getBitWidth() > DestTy->getBitWidth()) in isPromotableTo() 985 if (T->getBitWidth() == DestTy->getBitWidth()) in isPromotableTo() 1019 IntegerType *DestTy, BasicBlock *LoopB) { in promoteTo() argument 1025 In->mutateType(DestTy); in promoteTo() 1026 unsigned DestBW = DestTy->getBitWidth(); in promoteTo() 1079 IntegerType *DestTy = getPmpyType(); in promoteTypes() local 1082 unsigned DestBW = DestTy->getBitWidth(); in promoteTypes() 1094 if (!In.isTerminator() && !isPromotableTo(&In, DestTy)) in promoteTypes() 1103 promoteTo(In, DestTy, LoopB); in promoteTypes() [all …]
|