Home
last modified time | relevance | path

Searched refs:getType (Results 1 – 25 of 1453) sorted by relevance

12345678910>>...59

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DMatrixBuilder.h39 assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && in splatScalarOperandIfNeeded()
41 if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
42 assert(!isa<ScalableVectorType>(LHS->getType()) && in splatScalarOperandIfNeeded()
45 cast<VectorType>(LHS->getType())->getElementCount(), RHS, in splatScalarOperandIfNeeded()
47 } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { in splatScalarOperandIfNeeded()
48 assert(!isa<ScalableVectorType>(RHS->getType()) && in splatScalarOperandIfNeeded()
51 cast<VectorType>(RHS->getType())->getElementCount(), LHS, in splatScalarOperandIfNeeded()
73 Type *OverloadedTypes[] = {RetType, Stride->getType()};
96 Type *OverloadedTypes[] = {Matrix->getType(), Stride->getType()};
112 auto *OpType = cast<VectorType>(Matrix->getType());
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DSPIR.cpp28 assert(E->getArg(0)->getType()->hasFloatingRepresentation() && in EmitSPIRVBuiltinExpr()
29 E->getArg(1)->getType()->hasFloatingRepresentation() && in EmitSPIRVBuiltinExpr()
31 assert(E->getArg(0)->getType()->isVectorType() && in EmitSPIRVBuiltinExpr()
32 E->getArg(1)->getType()->isVectorType() && in EmitSPIRVBuiltinExpr()
35 /*ReturnType=*/X->getType()->getScalarType(), Intrinsic::spv_distance, in EmitSPIRVBuiltinExpr()
40 assert(E->getArg(0)->getType()->hasFloatingRepresentation() && in EmitSPIRVBuiltinExpr()
42 assert(E->getArg(0)->getType()->isVectorType() && in EmitSPIRVBuiltinExpr()
45 /*ReturnType=*/X->getType()->getScalarType(), Intrinsic::spv_length, in EmitSPIRVBuiltinExpr()
51 assert(E->getArg(0)->getType()->hasFloatingRepresentation() && in EmitSPIRVBuiltinExpr()
52 E->getArg(1)->getType()->hasFloatingRepresentation() && in EmitSPIRVBuiltinExpr()
[all …]
H A DRISCV.cpp44 Ops.push_back(ConstantInt::get(Ops.back()->getType(), PolicyAttrs)); in emitRVVVLEFFBuiltin()
45 IntrinsicTypes = {ResultType, Ops[4]->getType(), Ops[2]->getType()}; in emitRVVVLEFFBuiltin()
49 IntrinsicTypes = {ResultType, Ops[3]->getType(), Ops[1]->getType()}; in emitRVVVLEFFBuiltin()
60 E->getArg(E->getNumArgs() - 2)->getType()); in emitRVVVLEFFBuiltin()
62 Align = CGM.getNaturalPointeeTypeAlignment(E->getArg(1)->getType()); in emitRVVVLEFFBuiltin()
64 Builder.CreateStore(Val, Address(NewVL, Val->getType(), Align)); in emitRVVVLEFFBuiltin()
85 IntrinsicTypes = {Ops[0]->getType(), Ops[1]->getType(), Ops[4]->getType()}; in emitRVVVSSEBuiltin()
87 IntrinsicTypes = {Ops[0]->getType(), Ops[1]->getType(), Ops[3]->getType()}; in emitRVVVSSEBuiltin()
109 IntrinsicTypes = {Ops[0]->getType(), Ops[1]->getType(), Ops[2]->getType(), in emitRVVIndexedStoreBuiltin()
110 Ops[4]->getType()}; in emitRVVIndexedStoreBuiltin()
[all …]
H A DWebAssembly.cpp25 llvm::Type *ResultType = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
32 llvm::Type *ResultType = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
40 llvm::Type *ResultType = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
45 llvm::Type *ResultType = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
88 llvm::Type *ResT = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
90 CGM.getIntrinsic(Intrinsic::wasm_trunc_signed, {ResT, Src->getType()}); in EmitWebAssemblyBuiltinExpr()
98 llvm::Type *ResT = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
100 {ResT, Src->getType()}); in EmitWebAssemblyBuiltinExpr()
110 llvm::Type *ResT = ConvertType(E->getType()); in EmitWebAssemblyBuiltinExpr()
112 CGM.getIntrinsic(Intrinsic::fptosi_sat, {ResT, Src->getType()}); in EmitWebAssemblyBuiltinExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DIntrinsicLowering.cpp39 ParamTys.push_back((*I)->getType()); in ReplaceCallWith()
54 assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!"); in LowerBSWAP()
56 unsigned BitSize = V->getType()->getScalarSizeInBits(); in LowerBSWAP()
63 Value *Tmp1 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
65 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
71 Value *Tmp4 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 24), in LowerBSWAP()
73 Value *Tmp3 = Builder.CreateShl(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
75 Value *Tmp2 = Builder.CreateLShr(V, ConstantInt::get(V->getType(), 8), in LowerBSWAP()
77 Value *Tmp1 = Builder.CreateLShr(V,ConstantInt::get(V->getType(), 24), in LowerBSWAP()
80 ConstantInt::get(V->getType(), 0xFF0000), in LowerBSWAP()
[all …]
H A DMachineStableHash.cpp60 switch (MO.getType()) { in stableHashValue()
71 return stable_hash_combine(MO.getType(), MO.getReg().id(), MO.getSubReg(), in stableHashValue()
74 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), MO.getImm()); in stableHashValue()
81 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), ValHash); in stableHashValue()
109 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), GVHash, in stableHashValue()
115 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
123 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
127 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
142 return stable_hash_combine(MO.getType(), MO.getTargetFlags(), in stableHashValue()
149 return stable_hash_combine(MO.getType(), MO.getTargetFlags()); in stableHashValue()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGHLSLBuiltins.cpp22 assert((E->getArg(0)->getType()->hasUnsignedIntegerRepresentation() && in handleAsDoubleBuiltin()
23 E->getArg(1)->getType()->hasUnsignedIntegerRepresentation()) && in handleAsDoubleBuiltin()
30 if (auto *VTy = E->getArg(0)->getType()->getAs<clang::VectorType>()) { in handleAsDoubleBuiltin()
40 if (!E->getArg(0)->getType()->isVectorType()) { in handleAsDoubleBuiltin()
63 if (const auto *VecTy = E->getArg(0)->getType()->getAs<clang::VectorType>()) { in handleHlslClip()
102 CGF->EmitHLSLOutArgExpr(OutArg1, Args, OutArg1->getType()); in handleHlslSplitdouble()
104 CGF->EmitHLSLOutArgExpr(OutArg2, Args, OutArg2->getType()); in handleHlslSplitdouble()
114 if (auto *Op0VecTy = E->getArg(0)->getType()->getAs<clang::VectorType>()) in handleHlslSplitdouble()
127 if (!Op0->getType()->isVectorTy()) { in handleHlslSplitdouble()
136 E->getArg(0)->getType()->getAs<clang::VectorType>()) in handleHlslSplitdouble()
[all …]
H A DCGExprAgg.cpp137 EnsureDest(E->getType()); in VisitConstantExpr()
143 Dest.getPreferredSize(CGF.getContext(), E->getType()) in VisitConstantExpr()
145 E->getType().isVolatileQualified()); in VisitConstantExpr()
215 return EmitFinalDestCopy(E->getType(), LV); in VisitPseudoObjectExpr()
218 AggValueSlot Slot = EnsureSlot(E->getType()); in VisitPseudoObjectExpr()
221 E->getType().isDestructedType() == QualType::DK_nontrivial_c_struct; in VisitPseudoObjectExpr()
227 E->getType()); in VisitPseudoObjectExpr()
241 EmitFinalDestCopy(E->getType(), Res); in VisitAtomicExpr()
260 if (LV.getType()->isAtomicType() || CGF.LValueIsSuitableForInlineAtomic(LV)) { in EmitAggLoadOfLValue()
265 EmitFinalDestCopy(E->getType(), LV); in EmitAggLoadOfLValue()
[all …]
H A DCGExpr.cpp205 if (const MemberPointerType *MPT = E->getType()->getAs<MemberPointerType>()) { in EvaluateExprAsBool()
213 if (!E->getType()->isAnyComplexType()) in EvaluateExprAsBool()
214 return EmitScalarConversion(EmitScalarExpr(E), E->getType(), BoolTy, Loc); in EvaluateExprAsBool()
216 return EmitComplexToScalarConversion(EmitComplexExpr(E), E->getType(), BoolTy, in EvaluateExprAsBool()
247 switch (getEvaluationKind(E->getType())) { in EmitAnyExpr()
254 aggSlot = CreateAggTemp(E->getType(), "agg-temp"); in EmitAnyExpr()
266 if (hasAggregateEvaluationKind(E->getType())) in EmitAnyExprToTemp()
267 AggSlot = CreateAggTemp(E->getType(), "agg.tmp"); in EmitAnyExprToTemp()
278 switch (getEvaluationKind(E->getType())) { in EmitAnyExprToMem()
280 EmitComplexExprIntoLValue(E, MakeAddrLValue(Location, E->getType()), in EmitAnyExprToMem()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DType.cpp15 return Ctx.getType(LLVMTy->getScalarType()); in getScalarType()
19 return Ctx.getType(llvm::Type::getInt64Ty(Ctx.LLVMCtx)); in getInt64Ty()
22 return Ctx.getType(llvm::Type::getInt32Ty(Ctx.LLVMCtx)); in getInt32Ty()
25 return Ctx.getType(llvm::Type::getInt16Ty(Ctx.LLVMCtx)); in getInt16Ty()
28 return Ctx.getType(llvm::Type::getInt8Ty(Ctx.LLVMCtx)); in getInt8Ty()
31 return Ctx.getType(llvm::Type::getInt1Ty(Ctx.LLVMCtx)); in getInt1Ty()
34 return Ctx.getType(llvm::Type::getDoubleTy(Ctx.LLVMCtx)); in getDoubleTy()
37 return Ctx.getType(llvm::Type::getFloatTy(Ctx.LLVMCtx)); in getFloatTy()
40 return Ctx.getType(llvm::Type::getHalfTy(Ctx.LLVMCtx)); in getHalfTy()
53 Ctx.getType(llvm::PointerType::get(Ctx.LLVMCtx, AddressSpace))); in get()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DRecordOps.cpp22 assert(Field.getType()->isReferenceType() || in copyField()
25 if (Field.getType()->isRecordType()) { in copyField()
28 } else if (Field.getType()->isReferenceType()) { in copyField()
53 auto SrcType = Src.getType().getCanonicalType().getUnqualifiedType(); in copyRecord()
54 auto DstType = Dst.getType().getCanonicalType().getUnqualifiedType(); in copyRecord()
66 llvm::dbgs() << "Source type " << Src.getType() << "\n"; in copyRecord()
67 llvm::dbgs() << "Destination type " << Dst.getType() << "\n"; in copyRecord()
77 copySyntheticField(DstFieldLoc->getType(), Src.getSyntheticField(Name), in copyRecord()
83 copySyntheticField(SrcFieldLoc->getType(), *SrcFieldLoc, in copyRecord()
91 if (Loc2.getType().getCanonicalType().getUnqualifiedType() != in recordsEqual()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/
H A DOpDescriptor.h98 return V->getType() == Only; in onlyType()
108 return !V->getType()->isVoidTy(); in anyType()
116 return V->getType()->isIntegerTy(); in anyIntType()
124 return V->getType()->isIntOrIntVectorTy(); in anyIntOrVecIntType()
131 return V->getType()->isIntOrIntVectorTy(1); in boolOrVecBoolType()
138 return V->getType()->isFloatingPointTy(); in anyFloatType()
146 return V->getType()->isFPOrFPVectorTy(); in anyFloatOrVecFloatType()
153 return V->getType()->isPointerTy() && !V->isSwiftError(); in anyPtrType()
171 return V->getType()->isPointerTy(); in sizedPtrType()
191 Type *This = V->getType(), *First = Cur[0]->getType(); in matchFirstLengthWAnyType()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_value.cpp69 CHECK(getType().isSignedIntegerTy()); in getSIntValue()
73 sizeof(SIntMax) * 8 - getType().getIntegerBitCount(); in getSIntValue()
77 if (getType().getIntegerBitWidth() == 64) { in getSIntValue()
82 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
86 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
93 CHECK(getType().isUnsignedIntegerTy()); in getUIntValue()
96 if (getType().getIntegerBitWidth() == 64) in getUIntValue()
99 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
102 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
109 if (getType().isUnsignedIntegerTy()) in getPositiveIntValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp54 Type *SrcTy = Op->getOperand(0)->getType(); in foldConstantCastPair()
55 Type *MidTy = Op->getType(); in foldConstantCastPair()
70 Type *SrcTy = V->getType(); in FoldBitCast()
163 if (DestTy->isVectorTy() && V->getType()->isVectorTy() && in ConstantFoldCastInstruction()
165 cast<VectorType>(V->getType())->getElementCount()) { in ConstantFoldCastInstruction()
181 e = cast<FixedVectorType>(V->getType())->getNumElements(); in ConstantFoldCastInstruction()
270 auto *V1VTy = CondV->getType(); in ConstantFoldSelectInstruction()
281 V = PoisonValue::get(V1Element->getType()); in ConstantFoldSelectInstruction()
299 return PoisonValue::get(V1->getType()); in ConstantFoldSelectInstruction()
328 if (C->getType()->isVectorTy()) in ConstantFoldSelectInstruction()
[all …]
H A DConstants.cpp62 if (getType()->isVectorTy()) in isNegativeZeroValue()
67 if (getType()->isFPOrFPVectorTy()) in isNegativeZeroValue()
82 if (getType()->isVectorTy()) in isZeroValue()
117 if (getType()->isVectorTy()) in isAllOnesValue()
134 if (getType()->isVectorTy()) in isOneValue()
151 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotOneValue()
161 if (getType()->isVectorTy()) in isNotOneValue()
179 if (getType()->isVectorTy()) in isMinSignedValue()
196 if (auto *VTy = dyn_cast<FixedVectorType>(getType())) { in isNotMinSignedValue()
206 if (getType()->isVectorTy()) in isNotMinSignedValue()
[all …]
H A DIRBuilder.cpp51 *M, StrConstant->getType(), true, GlobalValue::PrivateLinkage, in CreateGlobalString()
72 Type *SrcTy = V->getType(); in CreateAggregateCast()
169 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateMemSet()
184 Type *Tys[] = {Dst->getType(), Size->getType()}; in CreateMemSetInline()
199 Type *Tys[] = {Ptr->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemSet()
218 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateMemTransferInst()
239 Type *Tys[] = {Dst->getType(), Src->getType(), Size->getType()}; in CreateElementUnorderedAtomicMemCpy()
269 else if (ArraySize->getType() != IntPtrTy) in CreateMalloc()
281 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in CreateMalloc()
297 assert(!MCall->getType()->isVoidTy() && "Malloc has void return type"); in CreateMalloc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp64 if (I->getOperand(0)->getType() == Ty) in EvaluateInDifferentType()
110 auto *VTy = cast<VectorType>(I->getOperand(0)->getType()); in EvaluateInDifferentType()
158 Type *Ty = CI.getType(); in commonCastTransforms()
184 if (!Cmp || Cmp->getOperand(0)->getType() != Sel->getType() || in commonCastTransforms()
186 shouldChangeType(CI.getSrcTy(), CI.getType()))) { in commonCastTransforms()
204 if (!Src->getType()->isIntegerTy() || !CI.getType()->isIntegerTy() || in commonCastTransforms()
205 shouldChangeType(CI.getSrcTy(), CI.getType())) in commonCastTransforms()
218 auto *SrcTy = dyn_cast<FixedVectorType>(X->getType()); in commonCastTransforms()
239 X->getType() == Ty) in canAlwaysEvaluateInType()
277 Type *OrigTy = V->getType(); in canEvaluateTruncated()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankLegalizeRules.cpp50 return MRI.getType(Reg) == LLT::scalar(1); in matchUniformityAndLLT()
52 return MRI.getType(Reg) == LLT::scalar(16); in matchUniformityAndLLT()
54 return MRI.getType(Reg) == LLT::scalar(32); in matchUniformityAndLLT()
56 return MRI.getType(Reg) == LLT::scalar(64); in matchUniformityAndLLT()
58 return MRI.getType(Reg) == LLT::scalar(128); in matchUniformityAndLLT()
60 return MRI.getType(Reg) == LLT::pointer(0, 64); in matchUniformityAndLLT()
62 return MRI.getType(Reg) == LLT::pointer(1, 64); in matchUniformityAndLLT()
64 return MRI.getType(Reg) == LLT::pointer(3, 32); in matchUniformityAndLLT()
66 return MRI.getType(Reg) == LLT::pointer(4, 64); in matchUniformityAndLLT()
68 return MRI.getType(Reg) == LLT::pointer(5, 32); in matchUniformityAndLLT()
[all …]
H A DAMDGPUInstCombineIntrinsic.cpp68 Type *VTy = V.getType(); in canSafelyConvertTo16Bit()
96 Type *CastSrcTy = CastSrc->getType(); in canSafelyConvertTo16Bit()
106 Type *VTy = V.getType(); in convertTo16Bit()
141 if (!InstToReplace.getType()->isVoidTy()) in modifyIntrinsicCall()
241 User->getType()->getScalarType()->isHalfTy()) { in simplifyAMDGCNImageIntrinsic()
247 ArgTys[0] = User->getType(); in simplifyAMDGCNImageIntrinsic()
266 if (!Tr || !Tr->getType()->isHalfTy()) { in simplifyAMDGCNImageIntrinsic()
275 auto *VecTy = cast<VectorType>(II.getType()); in simplifyAMDGCNImageIntrinsic()
341 FloatCoord == Coord->getType()->isFloatingPointTy()); in simplifyAMDGCNImageIntrinsic()
342 FloatCoord = Coord->getType()->isFloatingPointTy(); in simplifyAMDGCNImageIntrinsic()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVEGatherScatterLowering.cpp196 unsigned OffsetElemSize = cast<FixedVectorType>(Offsets->getType()) in checkOffsetSize()
213 if (isa<FixedVectorType>(ConstOff->getType())) { in checkOffsetSize()
242 FixedVectorType *PtrTy = cast<FixedVectorType>(Ptr->getType()); in decomposePtr()
266 if (GEPPtr->getType()->isVectorTy() || in decomposeGEP()
267 !isa<FixedVectorType>(Offsets->getType())) in decomposeGEP()
277 cast<FixedVectorType>(Offsets->getType())->getNumElements(); in decomposeGEP()
284 FixedVectorType *OffsetType = cast<FixedVectorType>(Offsets->getType()); in decomposeGEP()
296 if (Ty != Offsets->getType()) { in decomposeGEP()
312 auto *BCTy = cast<FixedVectorType>(BitCast->getType()); in lookThroughBitcast()
313 auto *BCSrcTy = cast<FixedVectorType>(BitCast->getOperand(0)->getType()); in lookThroughBitcast()
[all …]
H A DARMRegisterBankInfo.cpp197 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
232 LLT LargeTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
242 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
255 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
262 LLT Ty = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
276 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
277 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
285 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
286 LLT FromTy = MRI.getType(MI.getOperand(1).getReg()); in getInstrMapping()
295 LLT ToTy = MRI.getType(MI.getOperand(0).getReg()); in getInstrMapping()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaOpenCL.cpp60 const Type *DeclTy = PDecl->getType().getCanonicalType().getTypePtr(); in handleAccessAttr()
69 << AL << PDecl->getType() << DeclTy->isImageType(); in handleAccessAttr()
100 return Arg->getType()->isBlockPointerType(); in isBlockPointer()
107 cast<BlockPointerType>(BlockArg->getType().getCanonicalType()); in checkBlockArgs()
163 if (NDRangeArg->getType().getUnqualifiedType().getAsString() != "ndrange_t") { in checkBuiltinNDRangeAndBlock()
195 if (!E->getType()->isIntegerType()) { in checkOpenCLEnqueueIntType()
221 cast<BlockPointerType>(BlockArg->getType().getCanonicalType()); in checkOpenCLEnqueueVariadicArgs()
255 if (!Arg0->getType()->isQueueT()) { in checkBuiltinEnqueueKernel()
263 if (!Arg1->getType()->isIntegerType()) { in checkBuiltinEnqueueKernel()
271 if (Arg2->getType().getUnqualifiedType().getAsString() != "ndrange_t") { in checkBuiltinEnqueueKernel()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DCompiler.cpp209 if (SubExpr->getType().isVolatileQualified()) in VisitCastExpr()
212 std::optional<PrimType> SubExprT = classify(SubExpr->getType()); in VisitCastExpr()
235 assert(classifyPrim(CE->getType()) == PT_MemberPtr); in VisitCastExpr()
236 assert(classifyPrim(SubExpr->getType()) == PT_MemberPtr); in VisitCastExpr()
237 const auto *FromMP = SubExpr->getType()->castAs<MemberPointerType>(); in VisitCastExpr()
238 const auto *ToMP = CE->getType()->castAs<MemberPointerType>(); in VisitCastExpr()
253 const auto *FromMP = SubExpr->getType()->castAs<MemberPointerType>(); in VisitCastExpr()
254 const auto *ToMP = CE->getType()->castAs<MemberPointerType>(); in VisitCastExpr()
278 QualType CurType = SubExpr->getType(); in VisitCastExpr()
281 if (!this->emitGetPtrVirtBasePop(extractRecordDecl(B->getType()), CE)) in VisitCastExpr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp19 Type *StoredTy = StoredVal->getType(); in canCoerceMustAliasedValueToLoad()
99 Type *StoredValTy = StoredVal->getType(); in coerceAvailableValueToLoadType()
103 if (isa<ScalableVectorType>(StoredVal->getType()) && in coerceAvailableValueToLoadType()
166 StoredVal, ConstantInt::get(StoredVal->getType(), ShiftAmt)); in coerceAvailableValueToLoadType()
239 if (isFirstClassAggregateOrScalableType(StoredVal->getType())) in analyzeLoadFromClobberingStore()
247 DL.getTypeSizeInBits(DepSI->getValueOperand()->getType()).getFixedValue(); in analyzeLoadFromClobberingStore()
258 if (isFirstClassAggregateOrScalableType(DepLI->getType())) in analyzeLoadFromClobberingLoad()
265 uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType()).getFixedValue(); in analyzeLoadFromClobberingLoad()
310 unsigned IndexSize = DL.getIndexTypeSizeInBits(Src->getType()); in analyzeLoadFromClobberingMemInst()
319 LLVMContext &Ctx = SrcVal->getType()->getContext(); in getStoreValueForLoadHelper()
[all …]
H A DScalarEvolutionExpander.cpp117 if (U->getType() != Ty) in ReuseOrCreateCast()
213 assert(SE.getTypeSizeInBits(V->getType()) == SE.getTypeSizeInBits(Ty) && in InsertNoopCastOfTo()
228 if (V->getType() == Ty) in InsertNoopCastOfTo()
231 if (CI->getOperand(0)->getType() == Ty) in InsertNoopCastOfTo()
237 SE.getTypeSizeInBits(Ty) == SE.getTypeSizeInBits(V->getType())) { in InsertNoopCastOfTo()
241 SE.getTypeSizeInBits(CI->getType()) == in InsertNoopCastOfTo()
242 SE.getTypeSizeInBits(CI->getOperand(0)->getType())) in InsertNoopCastOfTo()
247 SE.getTypeSizeInBits(CE->getType()) == in InsertNoopCastOfTo()
248 SE.getTypeSizeInBits(CE->getOperand(0)->getType())) in InsertNoopCastOfTo()
479 if (LHS.second->getType()->isPointerTy() != in operator ()()
[all …]

12345678910>>...59