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

123

/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h177 Type *DestTy) const override {
178 if (C->getType() == DestTy)
180 return Fold(ConstantExpr::getCast(Op, C, DestTy));
182 Constant *CreateIntCast(Constant *C, Type *DestTy,
184 if (C->getType() == DestTy)
186 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned));
188 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override {
189 if (C->getType() == DestTy)
191 return Fold(ConstantExpr::getPointerCast(C, DestTy));
193 Constant *CreateFPCast(Constant *C, Type *DestTy) cons
[all...]
H A DConstantFolding.h97 Constant *ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy,
163 Constant *ConstantFoldLoadThroughBitcast(Constant *C, Type *DestTy,
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DNoFolder.h223 Type *DestTy) const override {
224 return CastInst::Create(Op, C, DestTy);
227 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const override {
228 return CastInst::CreatePointerCast(C, DestTy);
232 Constant *C, Type *DestTy) const override {
233 return CastInst::CreatePointerBitCastOrAddrSpaceCast(C, DestTy);
236 Instruction *CreateIntCast(Constant *C, Type *DestTy,
238 return CastInst::CreateIntegerCast(C, DestTy, isSigned);
241 Instruction *CreateFPCast(Constant *C, Type *DestTy) const override {
242 return CastInst::CreateFPCast(C, DestTy);
[all...]
H A DConstantFolder.h189 Type *DestTy) const override {
190 return ConstantExpr::getCast(Op, C, DestTy);
193 Constant *CreatePointerCast(Constant *C, Type *DestTy) const override {
194 return ConstantExpr::getPointerCast(C, DestTy);
198 Type *DestTy) const override {
199 return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy);
202 Constant *CreateIntCast(Constant *C, Type *DestTy,
204 return ConstantExpr::getIntegerCast(C, DestTy, isSigned);
207 Constant *CreateFPCast(Constant *C, Type *DestTy) const override {
208 return ConstantExpr::getFPCast(C, DestTy);
[all...]
H A DIRBuilderFolder.h99 Type *DestTy) const = 0;
100 virtual Value *CreatePointerCast(Constant *C, Type *DestTy) const = 0;
102 Type *DestTy) const = 0;
103 virtual Value *CreateIntCast(Constant *C, Type *DestTy,
105 virtual Value *CreateFPCast(Constant *C, Type *DestTy) const = 0;
106 virtual Value *CreateBitCast(Constant *C, Type *DestTy) const = 0;
107 virtual Value *CreateIntToPtr(Constant *C, Type *DestTy) const = 0;
108 virtual Value *CreatePtrToInt(Constant *C, Type *DestTy) const = 0;
109 virtual Value *CreateZExtOrBitCast(Constant *C, Type *DestTy) const = 0;
110 virtual Value *CreateSExtOrBitCast(Constant *C, Type *DestTy) cons
[all...]
H A DAutoUpgrade.h74 Instruction *UpgradeBitCastInst(unsigned Opc, Value *V, Type *DestTy,
80 Value *UpgradeBitCastExpr(unsigned Opc, Constant *C, Type *DestTy);
H A DIRBuilder.h1970 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") { argument
1971 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1974 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") { argument
1975 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1978 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") { argument
1979 return CreateCast(Instruction::SExt, V, DestTy, Name);
1982 /// Create a ZExt or Trunc from the integer value V to DestTy. Return
1983 /// the value untouched if the type of V is already DestTy.
1984 Value *CreateZExtOrTrunc(Value *V, Type *DestTy, argument
1987 DestTy
1999 CreateSExtOrTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument
2012 CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = �) argument
2019 CreateFPToSI(Value *V, Type *DestTy, const Twine &Name = �) argument
2026 CreateUIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument
2033 CreateSIToFP(Value *V, Type *DestTy, const Twine &Name = �) argument
2040 CreateFPTrunc(Value *V, Type *DestTy, const Twine &Name = �) argument
2049 CreateFPExt(Value *V, Type *DestTy, const Twine &Name = �) argument
2056 CreatePtrToInt(Value *V, Type *DestTy, const Twine &Name = �) argument
2061 CreateIntToPtr(Value *V, Type *DestTy, const Twine &Name = �) argument
2066 CreateBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2071 CreateAddrSpaceCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2076 CreateZExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2085 CreateSExtOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2094 CreateTruncOrBitCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2103 CreateCast(Instruction::CastOps Op, Value *V, Type *DestTy, const Twine &Name = �) argument
2112 CreatePointerCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2121 CreatePointerBitCastOrAddrSpaceCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2135 CreateIntCast(Value *V, Type *DestTy, bool isSigned, const Twine &Name = �) argument
2144 CreateBitOrPointerCast(Value *V, Type *DestTy, const Twine &Name = �) argument
2156 CreateFPCast(Value *V, Type *DestTy, const Twine &Name = �) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/utils/TableGen/
H A DCallingConvEmitter.cpp232 Record *DestTy = Action->getValueAsDef("DestTy"); local
233 MVT::SimpleValueType DestVT = getValueType(DestTy);
246 Record *DestTy = Action->getValueAsDef("DestTy"); local
247 MVT::SimpleValueType DestVT = getValueType(DestTy);
262 Record *DestTy = Action->getValueAsDef("DestTy"); local
263 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n";
266 Record *DestTy local
270 Record *DestTy = Action->getValueAsDef("DestTy"); local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp527 Type *DestTy = Trunc.getType(); local
528 unsigned NarrowWidth = DestTy->getScalarSizeInBits();
609 Value *NarrowShAmt = Builder.CreateTrunc(ShAmt, DestTy);
611 X = Y = Builder.CreateTrunc(ShVal0, DestTy);
613 Y = Builder.CreateTrunc(ShVal1, DestTy);
615 Function *F = Intrinsic::getDeclaration(Trunc.getModule(), IID, DestTy);
624 Type *DestTy = Trunc.getType(); local
625 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy))
644 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy);
645 Value *TruncX = Builder.CreateTrunc(BinOp1, DestTy);
732 Type *DestTy = Trunc.getType(), *SrcTy = Src->getType(); local
1191 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
1466 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
2029 optimizeVectorResizeWithIntegerBitCasts(Value *InVal, VectorType *DestTy, InstCombinerImpl &IC) argument
2281 Type *DestTy = BitCast.getType(); local
2334 Type *DestTy = BitCast.getType(); local
2392 Type *DestTy = CI.getType(); // Type A local
2557 Type *DestTy = CI.getType(); local
2740 PointerType *DestTy = cast<PointerType>(CI.getType()->getScalarType()); local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp549 Type *DestTy = pickScalarType(); variable
554 DestTy = pickVectorType(VecTy->getNumElements());
558 if (VTy == DestTy) return;
562 if (!DestTy->isPointerTy())
563 DestTy = PointerType::get(DestTy, 0);
565 new BitCastInst(V, DestTy, "PC", BB->getTerminator()));
569 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits();
574 new BitCastInst(V, DestTy, "BC", BB->getTerminator()));
578 if (VTy->isIntOrIntVectorTy() && DestTy
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp111 static Constant *FoldBitCast(Constant *V, Type *DestTy) { argument
113 if (SrcTy == DestTy)
119 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy))
140 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) {
148 return Constant::getNullValue(DestTy);
164 return ConstantPointerNull::get(cast<PointerType>(DestTy));
168 if (DestTy->isIntegerTy())
174 if (DestTy->isFloatingPointTy() && !DestTy->isPPC_FP128Ty())
175 return ConstantFP::get(DestTy
359 getFoldedSizeOfImpl(Type *Ty, Type *DestTy, bool Folded, DenseMap<Type *, Constant *> &Cache) argument
414 getFoldedSizeOf(Type *Ty, Type *DestTy, bool Folded, DenseMap<Type *, Constant *> &Cache) argument
423 getFoldedSizeOf(Type *Ty, Type *DestTy, bool Folded) argument
432 getFoldedAlignOf(Type *Ty, Type *DestTy, bool Folded) argument
496 getFoldedOffsetOf(Type *Ty, Constant *FieldNo, Type *DestTy, bool Folded) argument
545 ConstantFoldCastInstruction(unsigned opc, Constant *V, Type *DestTy) argument
[all...]
H A DConstantFold.h33 Type *DestTy ///< The destination type
H A DCore.cpp3766 LLVMTypeRef DestTy, const char *Name) {
3767 return wrap(unwrap(B)->CreateTrunc(unwrap(Val), unwrap(DestTy), Name));
3771 LLVMTypeRef DestTy, const char *Name) {
3772 return wrap(unwrap(B)->CreateZExt(unwrap(Val), unwrap(DestTy), Name));
3776 LLVMTypeRef DestTy, const char *Name) {
3777 return wrap(unwrap(B)->CreateSExt(unwrap(Val), unwrap(DestTy), Name));
3781 LLVMTypeRef DestTy, const char *Name) {
3782 return wrap(unwrap(B)->CreateFPToUI(unwrap(Val), unwrap(DestTy), Name));
3786 LLVMTypeRef DestTy, const char *Name) {
3787 return wrap(unwrap(B)->CreateFPToSI(unwrap(Val), unwrap(DestTy), Nam
[all...]
H A DConstantsContext.h222 Type *DestTy)
223 : ConstantExpr(DestTy, Instruction::ExtractValue, &Op<0>(), 1),
253 ArrayRef<unsigned> IdxList, Type *DestTy)
254 : ConstantExpr(DestTy, Instruction::InsertValue, &Op<0>(), 2),
286 ArrayRef<Constant *> IdxList, Type *DestTy);
291 Type *DestTy, unsigned Flags) {
293 GetElementPtrConstantExpr(SrcElementTy, C, IdxList, DestTy);
221 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, Type *DestTy) argument
252 InsertValueConstantExpr(Constant *Agg, Constant *Val, ArrayRef<unsigned> IdxList, Type *DestTy) argument
289 Create(Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy, unsigned Flags) argument
H A DVerifier.cpp2834 Type *DestTy = I.getType(); local
2838 unsigned DestBitSize = DestTy->getScalarSizeInBits();
2841 Assert(DestTy->isIntOrIntVectorTy(), "Trunc only produces integer", &I);
2842 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(),
2844 Assert(SrcBitSize > DestBitSize, "DestTy too big for Trunc", &I);
2852 Type *DestTy = I.getType(); local
2856 Assert(DestTy->isIntOrIntVectorTy(), "ZExt only produces an integer", &I);
2857 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(),
2860 unsigned DestBitSize = DestTy->getScalarSizeInBits();
2870 Type *DestTy local
2888 Type *DestTy = I.getType(); local
2905 Type *DestTy = I.getType(); local
2923 Type *DestTy = I.getType(); local
2946 Type *DestTy = I.getType(); local
2969 Type *DestTy = I.getType(); local
2992 Type *DestTy = I.getType(); local
3015 Type *DestTy = I.getType(); local
3040 Type *DestTy = I.getType(); local
3070 Type *DestTy = I.getType(); local
[all...]
H A DInstructions.cpp2689 Type *DestTy,
2691 assert(castIsValid(Opcode, SrcTy, DestTy) && "method precondition");
2710 DestTy->getScalarSizeInBits();
2712 return DL.getIntPtrType(DestTy)->getScalarSizeInBits() ==
2813 // No-op cast in second op implies firstOp as long as the DestTy
2820 // No-op cast in second op implies firstOp as long as the DestTy
3166 bool CastInst::isBitCastable(Type *SrcTy, Type *DestTy) { argument
3167 if (!SrcTy->isFirstClassType() || !DestTy->isFirstClassType())
3170 if (SrcTy == DestTy)
3174 if (VectorType *DestVecTy = dyn_cast<VectorType>(DestTy)) {
2687 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, const DataLayout &DL) argument
3206 isBitOrNoopPointerCastable(Type *SrcTy, Type *DestTy, const DataLayout &DL) argument
3228 getCastOpcode( const Value *Src, bool SrcIsSigned, Type *DestTy, bool DestIsSigned) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h368 const LLT DestTy = MRI.getType(MI.getOperand(0).getReg()); local
372 const unsigned DestSize = DestTy.getSizeInBits();
375 if (SrcTy.isVector() && SrcTy.getScalarType() == DestTy.getScalarType()) {
386 DestTy.isVector() ? CastSrcTy.getNumElements() / NumDefs : 1;
406 if (CastSrcTy.isScalar() && SrcTy.isScalar() && !DestTy.isVector()) {
419 {TargetOpcode::G_UNMERGE_VALUES, {DestTy, CastSrcTy}}))
430 DstRegs[Idx] = MRI.createGenericVirtualRegister(DestTy);
447 LLT OpTy, LLT DestTy) {
456 // to the destination type (DestTy).
478 return !DestTy
446 canFoldMergeOpcode(unsigned MergeOp, unsigned ConvertOp, LLT OpTy, LLT DestTy) argument
548 LLT DestTy = MRI.getType(MI.getOperand(0).getReg()); local
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp71 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, argument
92 return ConstantExpr::getBitCast(C, DestTy);
104 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { argument
105 assert(CastInst::castIsValid(Instruction::BitCast, C, DestTy) &&
109 if (C->isNullValue() && !DestTy->isX86_MMXTy() && !DestTy->isX86_AMXTy())
110 return Constant::getNullValue(DestTy);
111 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() && !DestTy->isX86_AMXTy() &&
112 !DestTy
351 ConstantFoldLoadThroughBitcast(Constant *C, Type *DestTy, const DataLayout &DL) argument
659 ConstantFoldLoadThroughBitcastExpr(ConstantExpr *CE, Type *DestTy, const DataLayout &DL) argument
1053 Type *DestTy = InstOrCE->getType(); local
1333 ConstantFoldCastOperand(unsigned Opcode, Constant *C, Type *DestTy, const DataLayout &DL) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp484 static Value *createCast(IRBuilder<> &Builder, Value *V, Type *DestTy) { argument
487 assert(DestTy->isStructTy());
488 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements());
489 Value *Result = UndefValue::get(DestTy);
493 DestTy->getStructElementType(I));
500 assert(!DestTy->isStructTy());
501 if (SrcTy->isIntegerTy() && DestTy->isPointerTy())
502 return Builder.CreateIntToPtr(V, DestTy);
503 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())
504 return Builder.CreatePtrToInt(V, DestTy);
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.h100 static unsigned GetConvertOpcode(MVT DestTy, MVT SrcTy, bool IsSigned);
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm-c/
H A DCore.h3890 LLVMTypeRef DestTy, const char *Name);
3892 LLVMTypeRef DestTy, const char *Name);
3894 LLVMTypeRef DestTy, const char *Name);
3896 LLVMTypeRef DestTy, const char *Name);
3898 LLVMTypeRef DestTy, const char *Name);
3900 LLVMTypeRef DestTy, const char *Name);
3902 LLVMTypeRef DestTy, const char *Name);
3904 LLVMTypeRef DestTy, const char *Name);
3906 LLVMTypeRef DestTy, const char *Name);
3908 LLVMTypeRef DestTy, cons
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DTargetInfo.h269 /// \param DestTy is the destination LLVM pointer type.
273 LangAS DestAddr, llvm::Type *DestTy,
280 /// \param DestTy is the destination LLVM pointer type.
284 llvm::Type *DestTy) const;
H A DCGExprScalar.cpp1959 QualType DestTy = CE->getType(); local
1977 Addr = Builder.CreateElementBitCast(Addr, CGF.ConvertTypeForMem(DestTy));
1978 LValue LV = CGF.MakeAddrLValue(Addr, DestTy);
1985 CGF.ConvertTypeForMem(DestTy));
1986 LValue DestLV = CGF.MakeAddrLValue(Addr, DestTy);
1997 llvm::Type *DstTy = ConvertType(DestTy);
2005 if (auto PT = DestTy->getAs<PointerType>())
2015 if (SrcType.mayBeNotDynamicClass() && DestTy.mayBeDynamicClass()) {
2019 } else if (SrcType.mayBeDynamicClass() && DestTy.mayBeNotDynamicClass()) {
2033 QualType PointeeType = DestTy
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp594 void promoteTo(Instruction *In, IntegerType *DestTy, BasicBlock *LoopB);
983 IntegerType *DestTy) {
985 if (!T || T->getBitWidth() > DestTy->getBitWidth())
987 if (T->getBitWidth() == DestTy->getBitWidth())
1021 IntegerType *DestTy, BasicBlock *LoopB) {
1027 In->mutateType(DestTy);
1028 unsigned DestBW = DestTy->getBitWidth();
1044 InV = IRBuilder<>(InB->getTerminator()).CreateZExt(InV, DestTy);
1057 Value *Mask = ConstantInt::get(DestTy, (1u << TruncTy->getBitWidth()) - 1);
1068 In->setOperand(i, ConstantInt::get(DestTy, C
982 isPromotableTo(Value *Val, IntegerType *DestTy) argument
1020 promoteTo(Instruction *In, IntegerType *DestTy, BasicBlock *LoopB) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp519 auto *DestTy = dyn_cast<FixedVectorType>(I.getType());
521 if (!SrcTy || !DestTy || I.getOperand(0)->getType() != SrcTy)
524 unsigned DestNumElts = DestTy->getNumElements();
545 TargetTransformInfo::SK_PermuteSingleSrc, DestTy, NewMask);
553 Value *CastV = Builder.CreateBitCast(V, DestTy);

Completed in 488 milliseconds

123