Home
last modified time | relevance | path

Searched refs:DestTy (Results 1 – 25 of 135) sorted by relevance

123456

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetFolder.h168 Type *DestTy) const { in CreateCast() argument
169 if (C->getType() == DestTy) in CreateCast()
171 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
173 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
175 if (C->getType() == DestTy) in CreateIntCast()
177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
179 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
180 if (C->getType() == DestTy) in CreatePointerCast()
182 return Fold(ConstantExpr::getPointerCast(C, DestTy)); in CreatePointerCast()
184 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
[all …]
/external/llvm/include/llvm/Analysis/
DTargetFolder.h169 Type *DestTy) const { in CreateCast() argument
170 if (C->getType() == DestTy) in CreateCast()
172 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
174 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
176 if (C->getType() == DestTy) in CreateIntCast()
178 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
180 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
181 if (C->getType() == DestTy) in CreatePointerCast()
183 return Fold(ConstantExpr::getPointerCast(C, DestTy)); in CreatePointerCast()
185 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantFolder.h182 Type *DestTy) const { in CreateCast() argument
183 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
186 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
187 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
191 Type *DestTy) const { in CreatePointerBitCastOrAddrSpaceCast() argument
192 return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast()
195 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
197 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
200 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
201 return ConstantExpr::getFPCast(C, DestTy); in CreateFPCast()
[all …]
DNoFolder.h251 Type *DestTy) const { in CreateCast() argument
252 return CastInst::Create(Op, C, DestTy); in CreateCast()
255 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
256 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
259 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
261 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
264 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
265 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
268 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
269 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DIRBuilder.h1552 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {
1553 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1556 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") {
1557 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1560 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") {
1561 return CreateCast(Instruction::SExt, V, DestTy, Name);
1566 Value *CreateZExtOrTrunc(Value *V, Type *DestTy,
1569 DestTy->isIntOrIntVectorTy() &&
1572 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1573 return CreateZExt(V, DestTy, Name);
[all …]
/external/llvm/include/llvm/IR/
DConstantFolder.h157 Type *DestTy) const { in CreateCast() argument
158 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
160 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
161 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
165 Type *DestTy) const { in CreatePointerBitCastOrAddrSpaceCast() argument
166 return ConstantExpr::getPointerBitCastOrAddrSpaceCast(C, DestTy); in CreatePointerBitCastOrAddrSpaceCast()
169 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
171 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
173 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
174 return ConstantExpr::getFPCast(C, DestTy); in CreateFPCast()
[all …]
DNoFolder.h216 Type *DestTy) const { in CreateCast() argument
217 return CastInst::Create(Op, C, DestTy); in CreateCast()
219 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
220 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
222 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
224 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
226 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
227 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
230 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
231 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DIRBuilder.h1263 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {
1264 return CreateCast(Instruction::Trunc, V, DestTy, Name);
1266 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") {
1267 return CreateCast(Instruction::ZExt, V, DestTy, Name);
1269 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") {
1270 return CreateCast(Instruction::SExt, V, DestTy, Name);
1274 Value *CreateZExtOrTrunc(Value *V, Type *DestTy,
1277 DestTy->isIntOrIntVectorTy() &&
1280 if (VTy->getScalarSizeInBits() < DestTy->getScalarSizeInBits())
1281 return CreateZExt(V, DestTy, Name);
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DTargetFolder.h168 Type *DestTy) const { in CreateCast() argument
169 if (C->getType() == DestTy) in CreateCast()
171 return Fold(ConstantExpr::getCast(Op, C, DestTy)); in CreateCast()
173 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
175 if (C->getType() == DestTy) in CreateIntCast()
177 return Fold(ConstantExpr::getIntegerCast(C, DestTy, isSigned)); in CreateIntCast()
179 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
180 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
182 Constant *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
183 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DConstantFolder.h156 Type *DestTy) const { in CreateCast() argument
157 return ConstantExpr::getCast(Op, C, DestTy); in CreateCast()
159 Constant *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
160 return ConstantExpr::getPointerCast(C, DestTy); in CreatePointerCast()
162 Constant *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
164 return ConstantExpr::getIntegerCast(C, DestTy, isSigned); in CreateIntCast()
166 Constant *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
167 return ConstantExpr::getFPCast(C, DestTy); in CreateFPCast()
170 Constant *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
171 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DNoFolder.h203 Type *DestTy) const { in CreateCast() argument
204 return CastInst::Create(Op, C, DestTy); in CreateCast()
206 Instruction *CreatePointerCast(Constant *C, Type *DestTy) const { in CreatePointerCast() argument
207 return CastInst::CreatePointerCast(C, DestTy); in CreatePointerCast()
209 Instruction *CreateIntCast(Constant *C, Type *DestTy, in CreateIntCast() argument
211 return CastInst::CreateIntegerCast(C, DestTy, isSigned); in CreateIntCast()
213 Instruction *CreateFPCast(Constant *C, Type *DestTy) const { in CreateFPCast() argument
214 return CastInst::CreateFPCast(C, DestTy); in CreateFPCast()
217 Instruction *CreateBitCast(Constant *C, Type *DestTy) const { in CreateBitCast() argument
218 return CreateCast(Instruction::BitCast, C, DestTy); in CreateBitCast()
[all …]
DIRBuilder.h916 Value *CreateTrunc(Value *V, Type *DestTy, const Twine &Name = "") {
917 return CreateCast(Instruction::Trunc, V, DestTy, Name);
919 Value *CreateZExt(Value *V, Type *DestTy, const Twine &Name = "") {
920 return CreateCast(Instruction::ZExt, V, DestTy, Name);
922 Value *CreateSExt(Value *V, Type *DestTy, const Twine &Name = "") {
923 return CreateCast(Instruction::SExt, V, DestTy, Name);
925 Value *CreateFPToUI(Value *V, Type *DestTy, const Twine &Name = ""){
926 return CreateCast(Instruction::FPToUI, V, DestTy, Name);
928 Value *CreateFPToSI(Value *V, Type *DestTy, const Twine &Name = ""){
929 return CreateCast(Instruction::FPToSI, V, DestTy, Name);
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp520 Type *DestTy = Trunc.getType(); in narrowRotate() local
521 unsigned NarrowWidth = DestTy->getScalarSizeInBits(); in narrowRotate()
545 Value *NarrowShAmt = Builder.CreateTrunc(ShAmt, DestTy); in narrowRotate()
549 Constant *MaskC = ConstantInt::get(DestTy, NarrowWidth - 1); in narrowRotate()
554 Value *X = Builder.CreateTrunc(ShVal, DestTy); in narrowRotate()
567 Type *DestTy = Trunc.getType(); in narrowBinOp() local
568 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
587 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
588 Value *TruncX = Builder.CreateTrunc(BinOp1, DestTy); in narrowBinOp()
593 Constant *NarrowC = ConstantExpr::getTrunc(C, DestTy); in narrowBinOp()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.cpp101 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() argument
103 if (SrcTy == DestTy) in FoldBitCast()
109 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) in FoldBitCast()
139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
146 return Constant::getNullValue(DestTy); in FoldBitCast()
162 return ConstantPointerNull::get(cast<PointerType>(DestTy)); in FoldBitCast()
166 if (DestTy->isIntegerTy()) in FoldBitCast()
172 if (DestTy->isFloatingPointTy() && !DestTy->isPPC_FP128Ty()) in FoldBitCast()
173 return ConstantFP::get(DestTy->getContext(), in FoldBitCast()
174 APFloat(DestTy->getFltSemantics(), in FoldBitCast()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp100 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() argument
102 if (SrcTy == DestTy) in FoldBitCast()
108 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) in FoldBitCast()
139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
146 return Constant::getNullValue(DestTy); in FoldBitCast()
162 return ConstantPointerNull::get(cast<PointerType>(DestTy)); in FoldBitCast()
166 if (DestTy->isIntegerTy()) in FoldBitCast()
172 if (DestTy->isFloatingPointTy() && !DestTy->isPPC_FP128Ty()) in FoldBitCast()
173 return ConstantFP::get(DestTy->getContext(), in FoldBitCast()
174 APFloat(DestTy->getFltSemantics(), in FoldBitCast()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineCasts.cpp439 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local
445 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc()
446 CanEvaluateTruncated(Src, DestTy)) { in visitTrunc()
452 Value *Res = EvaluateInDifferentType(Src, DestTy, false); in visitTrunc()
453 assert(Res->getType() == DestTy); in visitTrunc()
458 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc()
762 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local
769 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt()
770 CanEvaluateZExtd(Src, DestTy, BitsToClear)) { in visitZExt()
777 Value *Res = EvaluateInDifferentType(Src, DestTy, false); in visitZExt()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp496 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local
502 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc()
503 canEvaluateTruncated(Src, DestTy, *this, &CI)) { in visitTrunc()
509 Value *Res = EvaluateInDifferentType(Src, DestTy, false); in visitTrunc()
510 assert(Res->getType() == DestTy); in visitTrunc()
515 if (DestTy->getScalarSizeInBits() == 1) { in visitTrunc()
535 return replaceInstUsesWith(CI, Constant::getNullValue(DestTy)); in visitTrunc()
542 return CastInst::CreateIntegerCast(Shift, DestTy, false); in visitTrunc()
568 ShouldChangeType(SrcTy, DestTy) && in visitTrunc()
570 Value *NewTrunc = Builder->CreateTrunc(A, DestTy, A->getName() + ".tr"); in visitTrunc()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/
Dllvm-stress.cpp544 Type *DestTy = pickScalarType(); in Act() local
549 DestTy = pickVectorType(VecTy->getNumElements()); in Act()
553 if (VTy == DestTy) return; in Act()
557 if (!DestTy->isPointerTy()) in Act()
558 DestTy = PointerType::get(DestTy, 0); in Act()
560 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); in Act()
564 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
569 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); in Act()
573 if (VTy->isIntOrIntVectorTy() && DestTy->isIntOrIntVectorTy()) { in Act()
576 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); in Act()
[all …]
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp488 Type *DestTy = pickScalarType(); in Act() local
493 DestTy = pickVectorType(VecTy->getNumElements()); in Act()
497 if (VTy == DestTy) return; in Act()
501 if (!DestTy->isPointerTy()) in Act()
502 DestTy = PointerType::get(DestTy, 0); in Act()
504 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); in Act()
508 unsigned DestSize = DestTy->getScalarType()->getPrimitiveSizeInBits(); in Act()
513 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); in Act()
518 DestTy->getScalarType()->isIntegerTy()) { in Act()
521 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); in Act()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp98 static Constant *FoldBitCast(Constant *V, Type *DestTy) { in FoldBitCast() argument
100 if (SrcTy == DestTy) in FoldBitCast()
106 if (PointerType *DPTy = dyn_cast<PointerType>(DestTy)) in FoldBitCast()
135 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
142 return Constant::getNullValue(DestTy); in FoldBitCast()
158 return ConstantPointerNull::get(cast<PointerType>(DestTy)); in FoldBitCast()
162 if (DestTy->isIntegerTy()) in FoldBitCast()
167 if (DestTy->isFloatingPointTy()) in FoldBitCast()
168 return ConstantFP::get(DestTy->getContext(), in FoldBitCast()
170 !DestTy->isPPC_FP128Ty())); in FoldBitCast()
[all …]
DVerifier.cpp855 Type *DestTy = I.getType(); in visitTruncInst() local
859 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitTruncInst()
862 Assert1(DestTy->isIntOrIntVectorTy(), "Trunc only produces integer", &I); in visitTruncInst()
863 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst()
873 Type *DestTy = I.getType(); in visitZExtInst() local
877 Assert1(DestTy->isIntOrIntVectorTy(), "ZExt only produces an integer", &I); in visitZExtInst()
878 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst()
881 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitZExtInst()
891 Type *DestTy = I.getType(); in visitSExtInst() local
895 unsigned DestBitSize = DestTy->getScalarSizeInBits(); in visitSExtInst()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DCallingConvEmitter.cpp222 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
223 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction()
236 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
237 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction()
251 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
252 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
255 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
256 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
/external/swiftshader/third_party/subzero/src/
DIceInstARM32.cpp666 Type DestTy = Dest->getType(); in emitIAS() local
667 switch (DestTy) { in emitIAS()
670 typeStdString(DestTy)); in emitIAS()
674 Asm->vaddqi(typeElementType(DestTy), Dest, getSrc(0), getSrc(1)); in emitIAS()
985 const Type DestTy = Dest->getType(); in emitIAS() local
997 const Type ElmtTy = typeElementType(DestTy); in emitIAS()
1024 const Type DestTy = Dest->getType(); in emitIAS() local
1025 switch (DestTy) { in emitIAS()
1037 const Type ElmtTy = typeElementType(DestTy); in emitIAS()
1063 const Type DestTy = Dest->getType(); in emitIAS() local
[all …]
/external/llvm/utils/TableGen/
DCallingConvEmitter.cpp222 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
223 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction()
236 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
237 MVT::SimpleValueType DestVT = getValueType(DestTy); in EmitAction()
251 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
252 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
255 Record *DestTy = Action->getValueAsDef("DestTy"); in EmitAction() local
256 O << IndentStr << "LocVT = " << getEnumName(getValueType(DestTy)) <<";\n"; in EmitAction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DConstantFolding.cpp62 static Constant *foldConstVectorToAPInt(APInt &Result, Type *DestTy, in foldConstVectorToAPInt() argument
83 return ConstantExpr::getBitCast(C, DestTy); in foldConstVectorToAPInt()
95 Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) { in FoldBitCast() argument
97 if (C->isNullValue() && !DestTy->isX86_MMXTy()) in FoldBitCast()
98 return Constant::getNullValue(DestTy); in FoldBitCast()
99 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() && in FoldBitCast()
100 !DestTy->isPtrOrPtrVectorTy()) // Don't get ones for ptr types! in FoldBitCast()
101 return Constant::getAllOnesValue(DestTy); in FoldBitCast()
105 if (isa<IntegerType>(DestTy) || DestTy->isFloatingPointTy()) { in FoldBitCast()
119 APInt Result(DL.getTypeSizeInBits(DestTy), 0); in FoldBitCast()
[all …]

123456