Home
last modified time | relevance | path

Searched refs:TargetTy (Results 1 – 9 of 9) sorted by relevance

/src/contrib/llvm-project/llvm/lib/Target/DirectX/DirectXIRPasses/
H A DPointerTypeAnalysis.cpp143 Type *TargetTy = nullptr; in classifyConstantWithOpaquePtr() local
151 TargetTy = StructType::get(C->getContext(), EltTys); in classifyConstantWithOpaquePtr()
162 TargetTy = ArrayType::get(TargetEltTy, AT->getNumElements()); in classifyConstantWithOpaquePtr()
166 TargetTy = VectorType::get(TargetEltTy, VT); in classifyConstantWithOpaquePtr()
170 assert(TargetTy && "PointerTypeAnalyisis failed to identify target type"); in classifyConstantWithOpaquePtr()
173 if (TargetTy == Ty) in classifyConstantWithOpaquePtr()
176 Map[C] = TargetTy; in classifyConstantWithOpaquePtr()
177 return TargetTy; in classifyConstantWithOpaquePtr()
/src/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp1165 LLT llvm::getLCMType(LLT OrigTy, LLT TargetTy) { in getLCMType() argument
1166 if (OrigTy.getSizeInBits() == TargetTy.getSizeInBits()) in getLCMType()
1169 if (OrigTy.isVector() && TargetTy.isVector()) { in getLCMType()
1171 LLT TargetElt = TargetTy.getElementType(); in getLCMType()
1179 assert(((OrigTy.isScalableVector() && !TargetTy.isFixedVector()) || in getLCMType()
1180 (OrigTy.isFixedVector() && !TargetTy.isScalableVector())) && in getLCMType()
1185 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1188 TargetTy.getElementCount().getKnownMinValue()); in getLCMType()
1193 TargetTy.getSizeInBits().getKnownMinValue()); in getLCMType()
1200 if (OrigTy.isVector() || TargetTy.isVector()) { in getLCMType()
[all …]
H A DLegalizerHelper.cpp3335 LLT TargetTy = B.getMRI()->getType(TargetReg); in buildBitFieldInsert() local
3337 auto ZextVal = B.buildZExt(TargetTy, InsertReg); in buildBitFieldInsert()
3338 auto ShiftedInsertVal = B.buildShl(TargetTy, ZextVal, OffsetBits); in buildBitFieldInsert()
3342 TargetTy, APInt::getLowBitsSet(TargetTy.getSizeInBits(), in buildBitFieldInsert()
3345 auto ShiftedMask = B.buildShl(TargetTy, EltMask, OffsetBits); in buildBitFieldInsert()
3346 auto InvShiftedMask = B.buildNot(TargetTy, ShiftedMask); in buildBitFieldInsert()
3349 auto MaskedOldElt = B.buildAnd(TargetTy, TargetReg, InvShiftedMask); in buildBitFieldInsert()
3353 return B.buildOr(TargetTy, MaskedOldElt, ShiftedInsertVal).getReg(0); in buildBitFieldInsert()
/src/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DUtils.h360 LLT getLCMType(LLT OrigTy, LLT TargetTy);
365 LLT getCoverTy(LLT OrigTy, LLT TargetTy);
384 LLT getGCDType(LLT OrigTy, LLT TargetTy);
/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2862 Type *TargetTy = IsSplit ? Type::getIntNTy(LI.getContext(), SliceSize * 8) in visitLoadInst() local
2865 DL.getTypeStoreSize(TargetTy).getFixedValue() > SliceSize; in visitLoadInst()
2874 (canConvertValue(DL, NewAllocaTy, TargetTy) || in visitLoadInst()
2876 TargetTy->isIntegerTy() && !LI.isVolatile()))) { in visitLoadInst()
2904 if (auto *TITy = dyn_cast<IntegerType>(TargetTy)) in visitLoadInst()
2914 IRB.CreateAlignedLoad(TargetTy, getNewAllocaSlicePtr(IRB, LTy), in visitLoadInst()
2929 V = convertValue(DL, IRB, V, TargetTy); in visitLoadInst()
/src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp3350 llvm::Type *TargetTy = IntPtrTy; in EmitCheckValue() local
3352 if (V->getType() == TargetTy) in EmitCheckValue()
3359 if (Bits <= TargetTy->getIntegerBitWidth()) in EmitCheckValue()
3366 V->getType()->getIntegerBitWidth() <= TargetTy->getIntegerBitWidth()) in EmitCheckValue()
3367 return Builder.CreateZExt(V, TargetTy); in EmitCheckValue()
3375 return Builder.CreatePtrToInt(V, TargetTy); in EmitCheckValue()
H A DCGOpenMPRuntimeGPU.cpp1811 QualType TargetTy = TargetParam->getType(); in getParameterAddress() local
1813 TargetTy, SourceLocation()); in getParameterAddress()
/src/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp4071 Type *TargetTy = GEP.getPointerOperandType()->getScalarType(); in visitGetElementPtrInst() local
4073 Check(isa<PointerType>(TargetTy), in visitGetElementPtrInst()
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp9191 auto *TargetTy = FPLiteral->getType()->getAs<BuiltinType>(); in CheckFloatComparison() local
9192 if (SourceTy && TargetTy && SourceTy->isFloatingPoint() && in CheckFloatComparison()
9193 TargetTy->isFloatingPoint()) { in CheckFloatComparison()