Home
last modified time | relevance | path

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

123

/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/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-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/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/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()
DAArch64TargetTransformInfo.cpp197 bool AArch64TTIImpl::isWideningInstruction(Type *DstTy, unsigned Opcode, in isWideningInstruction() argument
204 DstTy->getVectorNumElements()); in isWideningInstruction()
209 if (!DstTy->isVectorTy() || DstTy->getScalarSizeInBits() < 16) in isWideningInstruction()
239 auto DstTyL = TLI->getTypeLegalizationCost(DL, DstTy); in isWideningInstruction()
241 if (!DstTyL.second.isVector() || DstElTySize != DstTy->getScalarSizeInBits()) in isWideningInstruction()
287 EVT DstTy = TLI->getValueType(DL, Dst); in getCastInstrCost() local
289 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
390 DstTy.getSimpleVT(), in getCastInstrCost()
/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 …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DMachineVerifier.cpp973 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in visitMachineInstrBefore() local
974 if (!DstTy.isValid() || in visitMachineInstrBefore()
976 [this, &DstTy](const MachineOperand &MO) { in visitMachineInstrBefore()
980 if (!Ty.isValid() || (Ty != DstTy)) in visitMachineInstrBefore()
1003 LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); in visitMachineInstrBefore() local
1005 if (!DstTy.isValid() || !SrcTy.isValid()) in visitMachineInstrBefore()
1008 LLT DstElTy = DstTy.isVector() ? DstTy.getElementType() : DstTy; in visitMachineInstrBefore()
1013 if (DstTy.isVector() != SrcTy.isVector()) { in visitMachineInstrBefore()
1022 if (DstTy.isVector() && DstTy.getNumElements() != SrcTy.getNumElements()) in visitMachineInstrBefore()
1046 LLT DstTy = MRI->getType(DstOp.getReg()); in visitMachineInstrBefore() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h828 Type *DstTy = I->getType(); in getInstructionLatency() local
838 if (StructType* StructTy = dyn_cast<StructType>(DstTy)) in getInstructionLatency()
839 DstTy = StructTy->getElementType(0); in getInstructionLatency()
843 if (VectorType *VectorTy = dyn_cast<VectorType>(DstTy)) in getInstructionLatency()
844 DstTy = VectorTy->getElementType(); in getInstructionLatency()
845 if (DstTy->isFloatingPointTy()) in getInstructionLatency()

123