Home
last modified time | relevance | path

Searched refs:DstTy (Results 1 – 25 of 89) sorted by relevance

1234

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizationArtifactCombiner.h61 LLT DstTy = MRI.getType(DstReg); in tryCombineZExt() local
62 if (isInstUnsupported({TargetOpcode::G_AND, {DstTy}}) || in tryCombineZExt()
63 isInstUnsupported({TargetOpcode::G_CONSTANT, {DstTy}})) in tryCombineZExt()
70 auto MaskCstMIB = Builder.buildConstant(DstTy, Mask.getZExtValue()); in tryCombineZExt()
73 auto SrcCopyOrTrunc = Builder.buildAnyExtOrTrunc(DstTy, TruncSrc); in tryCombineZExt()
89 LLT DstTy = MRI.getType(DstReg); in tryCombineSExt() local
90 if (isInstUnsupported({TargetOpcode::G_SHL, {DstTy}}) || in tryCombineSExt()
91 isInstUnsupported({TargetOpcode::G_ASHR, {DstTy}}) || in tryCombineSExt()
92 isInstUnsupported({TargetOpcode::G_CONSTANT, {DstTy}})) in tryCombineSExt()
98 unsigned SizeDiff = DstTy.getSizeInBits() - SExtSrcTy.getSizeInBits(); in tryCombineSExt()
[all …]
DMachineIRBuilder.h367 template <typename DstTy, typename UseArgTy>
368 MachineInstrBuilder buildSExtOrTrunc(DstTy &&Dst, UseArgTy &&Use) { in buildSExtOrTrunc()
381 template <typename DstTy, typename UseArgTy>
382 MachineInstrBuilder buildZExtOrTrunc(DstTy &&Dst, UseArgTy &&Use) { in buildZExtOrTrunc()
395 template <typename DstTy, typename UseArgTy>
396 MachineInstrBuilder buildAnyExtOrTrunc(DstTy &&Dst, UseArgTy &&Use) { in buildAnyExtOrTrunc()
982 template <typename DstTy, typename... UseArgsTy>
983 MachineInstrBuilder buildAdd(DstTy &&Ty, UseArgsTy &&... UseArgs) { in buildAdd()
1002 template <typename DstTy, typename... UseArgsTy>
1003 MachineInstrBuilder buildSub(DstTy &&Ty, UseArgsTy &&... UseArgs) { in buildSub()
[all …]
DConstantFoldingMIRBuilder.h91 template <typename DstTy, typename UseArg1Ty, typename UseArg2Ty>
92 MachineInstrBuilder buildInstr(unsigned Opc, DstTy &&Ty, UseArg1Ty &&Arg1, in buildInstr()
126 template <typename DstTy, typename... UseArgsTy>
127 MachineInstrBuilder buildInstr(unsigned Opc, DstTy &&Ty, in buildInstr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h203 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
205 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
207 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
209 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
211 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
213 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
215 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
217 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
219 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
221 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all …]
DExecution.cpp1217 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1222 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1230 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1237 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1242 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1250 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1257 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1262 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst()
1271 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1278 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/Interpreter/
DInterpreter.h210 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
212 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
214 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
216 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
218 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
220 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
222 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
224 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
226 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
228 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all …]
DExecution.cpp935 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
938 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
944 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
947 IntegerType *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
953 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
956 IntegerType *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
962 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
965 assert(SrcVal->getType()->isDoubleTy() && DstTy->isFloatTy() && in executeFPTruncInst()
971 GenericValue Interpreter::executeFPExtInst(Value *SrcVal, Type *DstTy, in executeFPExtInst() argument
974 assert(SrcVal->getType()->isFloatTy() && DstTy->isDoubleTy() && in executeFPExtInst()
[all …]
/external/llvm/lib/ExecutionEngine/Interpreter/
DInterpreter.h222 GenericValue executeTruncInst(Value *SrcVal, Type *DstTy,
224 GenericValue executeSExtInst(Value *SrcVal, Type *DstTy,
226 GenericValue executeZExtInst(Value *SrcVal, Type *DstTy,
228 GenericValue executeFPTruncInst(Value *SrcVal, Type *DstTy,
230 GenericValue executeFPExtInst(Value *SrcVal, Type *DstTy,
232 GenericValue executeFPToUIInst(Value *SrcVal, Type *DstTy,
234 GenericValue executeFPToSIInst(Value *SrcVal, Type *DstTy,
236 GenericValue executeUIToFPInst(Value *SrcVal, Type *DstTy,
238 GenericValue executeSIToFPInst(Value *SrcVal, Type *DstTy,
240 GenericValue executePtrToIntInst(Value *SrcVal, Type *DstTy,
[all …]
DExecution.cpp1218 GenericValue Interpreter::executeTruncInst(Value *SrcVal, Type *DstTy, in executeTruncInst() argument
1223 Type *DstVecTy = DstTy->getScalarType(); in executeTruncInst()
1231 IntegerType *DITy = cast<IntegerType>(DstTy); in executeTruncInst()
1238 GenericValue Interpreter::executeSExtInst(Value *SrcVal, Type *DstTy, in executeSExtInst() argument
1243 Type *DstVecTy = DstTy->getScalarType(); in executeSExtInst()
1251 auto *DITy = cast<IntegerType>(DstTy); in executeSExtInst()
1258 GenericValue Interpreter::executeZExtInst(Value *SrcVal, Type *DstTy, in executeZExtInst() argument
1263 Type *DstVecTy = DstTy->getScalarType(); in executeZExtInst()
1272 auto *DITy = cast<IntegerType>(DstTy); in executeZExtInst()
1279 GenericValue Interpreter::executeFPTruncInst(Value *SrcVal, Type *DstTy, in executeFPTruncInst() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/
DX86InstructionSelector.cpp696 const LLT DstTy = MRI.getType(DstReg); in selectTruncOrPtrToInt() local
708 const TargetRegisterClass *DstRC = getRegClass(DstTy, DstRB); in selectTruncOrPtrToInt()
760 const LLT DstTy = MRI.getType(DstReg); in selectZext() local
763 assert(!(SrcTy == LLT::scalar(8) && DstTy == LLT::scalar(32)) && in selectZext()
765 assert(!(SrcTy == LLT::scalar(16) && DstTy == LLT::scalar(32)) && in selectZext()
770 LLT DstTy; in selectZext() member
782 [SrcTy, DstTy](const ZextEntry &El) { in selectZext()
783 return El.DstTy == DstTy && El.SrcTy == SrcTy; in selectZext()
790 const TargetRegisterClass *DstRC = getRegClass(DstTy, DstRB); in selectZext()
831 if (DstTy == LLT::scalar(8)) in selectZext()
[all …]
/external/swiftshader/third_party/LLVM/lib/Linker/
DLinkModules.cpp49 void addTypeMapping(Type *DstTy, Type *SrcTy);
68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
76 if (DstTy == SrcTy) { in addTypeMapping()
77 Entry = DstTy; in addTypeMapping()
83 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
96 if (DstTy->getTypeID() != SrcTy->getTypeID()) return false; in areTypesIsomorphic()
101 return Entry == DstTy; in areTypesIsomorphic()
105 if (DstTy == SrcTy) { in areTypesIsomorphic()
[all …]
/external/llvm/lib/Linker/
DIRMover.cpp57 void addTypeMapping(Type *DstTy, Type *SrcTy);
77 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
81 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
87 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
109 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
111 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
117 return Entry == DstTy; in areTypesIsomorphic()
121 if (DstTy == SrcTy) { in areTypesIsomorphic()
122 Entry = DstTy; in areTypesIsomorphic()
132 Entry = DstTy; in areTypesIsomorphic()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/AggressiveInstCombine/
DTruncInstCombine.cpp143 Type *DstTy = CurrentTruncInst->getType(); in getMinBitWidth() local
144 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth()
209 if (DstTy->isVectorTy()) in getMinBitWidth()
212 Type *Ty = DL.getSmallestLegalIntType(DstTy->getContext(), MinBitWidth); in getMinBitWidth()
223 if (!DstTy->isVectorTy() && FromLegal && !ToLegal) in getMinBitWidth()
365 Type *DstTy = CurrentTruncInst->getType(); in ReduceExpressionDag() local
366 if (Res->getType() != DstTy) { in ReduceExpressionDag()
368 Res = Builder.CreateIntCast(Res, DstTy, false); in ReduceExpressionDag()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp27 LLT DstTy = MRI.getType(DstReg); in tryCombineCopy() local
31 if (DstTy.isValid() && SrcTy.isValid() && DstTy == SrcTy) { in tryCombineCopy()
DMachineIRBuilder.cpp269 LLT DstTy = getMRI()->getType(Res); in buildFConstant() local
272 ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getSizeInBits())); in buildFConstant()
388 LLT DstTy = getMRI()->getType(Dst); in buildCast() local
389 if (SrcTy == DstTy) in buildCast()
393 if (SrcTy.isPointer() && DstTy.isScalar()) in buildCast()
395 else if (DstTy.isPointer() && SrcTy.isScalar()) in buildCast()
398 assert(!SrcTy.isPointer() && !DstTy.isPointer() && "n G_ADDRCAST yet"); in buildCast()
825 LLT DstTy = getMRI()->getType(Dst); in validateTruncExt() local
827 if (DstTy.isVector()) { in validateTruncExt()
829 assert(SrcTy.getNumElements() == DstTy.getNumElements() && in validateTruncExt()
[all …]
DUtils.cpp212 auto DstTy = MRI.getType(DefMI->getOperand(0).getReg()); in getOpcodeDef() local
213 if (!DstTy.isValid()) in getOpcodeDef()
218 if (!SrcTy.isValid() || SrcTy != DstTy) in getOpcodeDef()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/
DIRMover.cpp57 void addTypeMapping(Type *DstTy, Type *SrcTy);
77 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
81 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
87 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
115 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
117 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic()
123 return Entry == DstTy; in areTypesIsomorphic()
127 if (DstTy == SrcTy) { in areTypesIsomorphic()
128 Entry = DstTy; in areTypesIsomorphic()
138 Entry = DstTy; in areTypesIsomorphic()
[all …]
/external/clang/lib/CodeGen/
DCGExprScalar.cpp141 Value *EmitConversionToBool(Value *Src, QualType DstTy);
147 llvm::Type *DstTy, SourceLocation Loc);
151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy,
154 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy,
160 QualType SrcTy, QualType DstTy,
599 QualType DstType, llvm::Type *DstTy, SourceLocation Loc) { in EmitFloatConversionCheck() argument
636 if (isa<llvm::IntegerType>(DstTy)) { in EmitFloatConversionCheck()
756 llvm::Type *DstTy = ConvertType(DstType); in EmitScalarConversion() local
761 if (DstTy->isFloatingPointTy()) { in EmitScalarConversion()
764 CGF.CGM.getIntrinsic(llvm::Intrinsic::convert_from_fp16, DstTy), in EmitScalarConversion()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp517 getVectorTruncCost(Type *SrcTy, Type *DstTy) { in getVectorTruncCost() argument
518 assert (SrcTy->isVectorTy() && DstTy->isVectorTy()); in getVectorTruncCost()
519 assert (SrcTy->getPrimitiveSizeInBits() > DstTy->getPrimitiveSizeInBits() && in getVectorTruncCost()
521 assert (SrcTy->getVectorNumElements() == DstTy->getVectorNumElements() && in getVectorTruncCost()
536 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorTruncCost()
548 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost()
557 getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy) { in getVectorBitmaskConversionCost() argument
558 assert (SrcTy->isVectorTy() && DstTy->isVectorTy() && in getVectorBitmaskConversionCost()
563 unsigned DstScalarBits = DstTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost()
564 unsigned Log2Diff = getElSizeLog2Diff(SrcTy, DstTy); in getVectorBitmaskConversionCost()
[all …]
DSystemZTargetTransformInfo.h79 unsigned getVectorTruncCost(Type *SrcTy, Type *DstTy);
80 unsigned getVectorBitmaskConversionCost(Type *SrcTy, Type *DstTy);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp237 unsigned HexagonTTIImpl::getCastInstrCost(unsigned Opcode, Type *DstTy, in getCastInstrCost() argument
239 if (SrcTy->isFPOrFPVectorTy() || DstTy->isFPOrFPVectorTy()) { in getCastInstrCost()
241 unsigned DstN = DstTy->isFPOrFPVectorTy() ? getTypeNumElements(DstTy) : 0; in getCastInstrCost()
244 std::pair<int, MVT> DstLT = TLI.getTypeLegalizationCost(DL, DstTy); in getCastInstrCost()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp428 static unsigned selectFPConvOpc(unsigned GenericOpc, LLT DstTy, LLT SrcTy) { in selectFPConvOpc() argument
429 if (!DstTy.isScalar() || !SrcTy.isScalar()) in selectFPConvOpc()
432 const unsigned DstSize = DstTy.getSizeInBits(); in selectFPConvOpc()
891 LLT DstTy = MRI.getType(I.getOperand(0).getReg()); in select() local
892 (void)DstTy; in select()
904 assert(SrcSize == 32 && DstTy.getSizeInBits() == 16 && in select()
923 LLT DstTy = MRI.getType(I.getOperand(0).getReg()); in select() local
924 unsigned DstSize = DstTy.getSizeInBits(); in select()
1149 const LLT DstTy = MRI.getType(I.getOperand(0).getReg()); in select() local
1166 getRegClassForTypeOnBank(DstTy, DstRB, RBI); in select()
[all …]
DAArch64RegisterBankInfo.cpp483 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local
487 getFPExtMapping(DstTy.getSizeInBits(), SrcTy.getSizeInBits()), in getInstrMapping()
518 LLT DstTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping() local
520 unsigned Size = DstTy.getSizeInBits(); in getInstrMapping()
521 bool DstIsGPR = !DstTy.isVector() && DstTy.getSizeInBits() <= 64; in getInstrMapping()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp2185 Type *DstTy = getType(); in isLosslessCast() local
2186 if (SrcTy == DstTy) in isLosslessCast()
2191 return DstTy->isPointerTy(); in isLosslessCast()
2246 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2311 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2331 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2337 if (DstTy->isFloatingPointTy()) in isEliminableCastPair()
2354 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2378 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2394 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
[all …]
/external/llvm/lib/IR/
DInstructions.cpp2349 Type *DstTy = getType(); in isLosslessCast() local
2350 if (SrcTy == DstTy) in isLosslessCast()
2355 return DstTy->isPointerTy(); in isLosslessCast()
2424 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2489 (IsSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy))) in isEliminableCastPair()
2509 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2515 if (DstTy->isFloatingPointTy()) in isEliminableCastPair()
2532 if (SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) in isEliminableCastPair()
2556 unsigned DstSize = DstTy->getScalarSizeInBits(); in isEliminableCastPair()
2569 if (SrcTy == DstTy) in isEliminableCastPair()
[all …]

1234