Home
last modified time | relevance | path

Searched refs:ElementTy (Results 1 – 25 of 59) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILOpBuilder.cpp195 static StructType *getResRetType(Type *ElementTy) { in getResRetType() argument
196 LLVMContext &Ctx = ElementTy->getContext(); in getResRetType()
197 OverloadKind Kind = getOverloadKind(ElementTy); in getResRetType()
199 Type *FieldTypes[5] = {ElementTy, ElementTy, ElementTy, ElementTy, in getResRetType()
204 static StructType *getCBufRetType(Type *ElementTy) { in getCBufRetType() argument
205 LLVMContext &Ctx = ElementTy->getContext(); in getCBufRetType()
206 OverloadKind Kind = getOverloadKind(ElementTy); in getCBufRetType()
210 if (ElementTy->isDoubleTy() || ElementTy->isIntegerTy(64)) in getCBufRetType()
211 return getOrCreateStructType(TypeName, {ElementTy, ElementTy}, Ctx); in getCBufRetType()
215 if (ElementTy->isHalfTy() || ElementTy->isIntegerTy(16)) { in getCBufRetType()
[all …]
H A DDXILOpBuilder.h51 StructType *getResRetType(Type *ElementTy);
54 StructType *getCBufRetType(Type *ElementTy);
H A DDXILPrettyPrinter.cpp52 switch (RI.getTyped().ElementTy) { in getFormatName()
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h150 template <typename ElementTy> class BCArray : public detail::BCField<true> {
151 static_assert(!ElementTy::IsCompound, "arrays can only contain scalar types");
156 ElementTy::emitOp(abbrev); in emitOp()
186 template <typename ElementTy, typename... Fields> class BCRecordCoding {
191 static_assert(!ElementTy::IsCompound, in emit()
193 ElementTy::assertValid(element); in emit()
203 element = ElementTy::convert(buffer.front()); in read()
223 template <typename ElementTy> class BCRecordCoding<ElementTy> {
228 static_assert(!ElementTy::IsCompound, in emit()
230 ElementTy::assertValid(data); in emit()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicExtent.cpp73 QualType ElementTy) { in getDynamicElementCount() argument
77 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount()
107 QualType ElementTy) { in getDynamicElementCountWithOffset() argument
113 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCountWithOffset()
H A DRegionStore.cpp546 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1340 QualType ElementTy = AT->getElementType(); in VisitCluster() local
1341 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster()
2643 QualType ElementTy = AT->getElementType(); in bindArray() local
2683 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray()
2685 if (ElementTy->isStructureOrClassType()) in bindArray()
2687 else if (ElementTy->isArrayType()) in bindArray()
2697 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h83 llvm::Type *ElementTy = llvm::GetElementPtrInst::getIndexedType( in createConstGEP2_32() local
85 return Address(V, ElementTy, in createConstGEP2_32()
194 llvm::Type *ElementTy,
198 ElementTy, Addr.getAlignment(), Addr.getPointerAuthInfo(),
203 ElementTy, Addr.getAlignment(), Addr.isKnownNonNull());
208 llvm::Type *ElementTy,
211 return Addr.withElementType(ElementTy);
212 return CreateAddrSpaceCast(Addr, Ty, ElementTy, Name);
H A DABIInfoImpl.cpp216 llvm::Type *DirectTy = CGF.ConvertTypeForMem(ValueTy), *ElementTy = DirectTy; in emitVoidPtrVAArg() local
227 Addr = Address(CGF.Builder.CreateLoad(Addr), ElementTy, ValueInfo.Align); in emitVoidPtrVAArg()
432 llvm::Type *ElementTy = CGF.ConvertTypeForMem(Ty); in EmitVAArgInstr() local
436 return Address(Addr, ElementTy, TyAlignForABI); in EmitVAArgInstr()
H A DCGRecordLayoutBuilder.cpp1174 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local
1195 getDataLayout().getTypeAllocSizeInBits(ElementTy) || in ComputeRecordLayout()
1197 getDataLayout().getTypeAllocSizeInBits(ElementTy)) && in ComputeRecordLayout()
H A DCGExprCXX.cpp1001 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
1107 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
1108 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer()
1310 ElementTy, CurPtr.emitRawPointer(*this), 1, "array.next"); in EmitNewArrayInitializer()
1322 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument
1327 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DExprInspectionChecker.cpp353 QualType ElementTy; in analyzerDumpElementCount() local
355 ElementTy = TVR->getValueType(); in analyzerDumpElementCount()
357 ElementTy = MR->castAs<SymbolicRegion>()->getPointeeStaticType(); in analyzerDumpElementCount()
360 assert(!ElementTy->isPointerType()); in analyzerDumpElementCount()
363 C.getState(), C.getSVal(getArgExpr(CE, C)), ElementTy); in analyzerDumpElementCount()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h714 template <typename ElementTy>
715 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
717 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
718 Type::getScalarTy<ElementTy>(Context));
735 Type *ElementTy) {
736 Type *Ty = ArrayType::get(ElementTy, NumElements);
807 Type *ElementTy) {
808 Type *Ty = VectorType::get(ElementTy, ElementCount::getFixed(NumElements));
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp238 Type *ElementTy = FuncInfo.getParamByValType(ParamIdx); in setArgFlags() local
239 if (!ElementTy) in setArgFlags()
240 ElementTy = FuncInfo.getParamByRefType(ParamIdx); in setArgFlags()
241 if (!ElementTy) in setArgFlags()
242 ElementTy = FuncInfo.getParamInAllocaType(ParamIdx); in setArgFlags()
243 if (!ElementTy) in setArgFlags()
244 ElementTy = FuncInfo.getParamPreallocatedType(ParamIdx); in setArgFlags()
246 assert(ElementTy && "Must have byval, inalloca or preallocated type"); in setArgFlags()
248 uint64_t MemSize = DL.getTypeAllocSize(ElementTy); in setArgFlags()
261 MemAlign = getTLI()->getByValTypeAlignment(ElementTy, DL); in setArgFlags()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDXILResource.h275 dxil::ElementType ElementTy; member
279 return std::tie(ElementTy, ElementCount) ==
280 std::tie(RHS.ElementTy, RHS.ElementCount);
284 return std::tie(ElementTy, ElementCount) <
285 std::tie(RHS.ElementTy, RHS.ElementCount);
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.h210 Type *ElementTy = findDeducedElementType(Global); in getDeducedGlobalValueType() local
211 if (!ElementTy) { in getDeducedGlobalValueType()
216 ElementTy = findDeducedCompositeType(GlobalElem); in getDeducedGlobalValueType()
218 return ElementTy ? ElementTy : Global->getValueType(); in getDeducedGlobalValueType()
H A DSPIRVPreLegalizer.cpp312 Type *ElementTy = toTypedPointer(GR->getDeducedGlobalValueType(Global)); in propagateSPIRVType() local
313 auto *Ty = TypedPointerType::get(ElementTy, in propagateSPIRVType()
534 Type *ElementTy = getMDOperandAsType(MI.getOperand(2).getMetadata(), 0); in generateAssignInstrs() local
536 ElementTy, MI, in generateAssignInstrs()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h602 template <typename ElementTy>
603 static Constant *get(Context &Ctx, ArrayRef<ElementTy> Elts) { in get()
622 Type *ElementTy) { in getRaw() argument
624 llvm::ConstantDataArray::getRaw(Data, NumElements, ElementTy->LLVMTy); in getRaw()
625 return ElementTy->getContext().getOrCreateConstant(LLVMC); in getRaw()
714 Type *ElementTy) { in getRaw() argument
716 llvm::ConstantDataVector::getRaw(Data, NumElements, ElementTy->LLVMTy); in getRaw()
717 return ElementTy->getContext().getOrCreateConstant(NewLLVMC); in getRaw()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp341 Type *ElementTy = T->getArrayElementType(); in canonicalizeThunkType() local
343 uint64_t ElementSizePerBytes = DL.getTypeSizeInBits(ElementTy) / 8; in canonicalizeThunkType()
345 if (ElementTy->isFloatTy() || ElementTy->isDoubleTy()) { in canonicalizeThunkType()
346 Out << (ElementTy->isFloatTy() ? "F" : "D") << TotalSizeBytes; in canonicalizeThunkType()
H A DAArch64TargetTransformInfo.h338 bool isLegalBroadcastLoad(Type *ElementTy, in isLegalBroadcastLoad() argument
343 switch (unsigned ElementBits = ElementTy->getScalarSizeInBits()) { in isLegalBroadcastLoad()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2732 Type *ElementTy; member in __anondf5662880e11::AllocaSliceRewriter
2787 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter()
2788 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8 in AllocaSliceRewriter()
2793 assert((DL.getTypeSizeInBits(ElementTy).getFixedValue() % 8) == 0 && in AllocaSliceRewriter()
3076 ? ElementTy in rewriteVectorizedStoreInst()
3077 : FixedVectorType::get(ElementTy, NumElements); in rewriteVectorizedStoreInst()
3307 assert(ElementTy == ScalarTy); in visitMemSetInst()
3317 II.getValue(), DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8); in visitMemSetInst()
3318 Splat = convertValue(DL, IRB, Splat, ElementTy); in visitMemSetInst()
4320 Type *ElementTy; in getTypePartition() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp3309 QualType ElementTy(T, 0); in mangleArrayType() local
3312 if (ElementTy->isConstantArrayType()) { in mangleArrayType()
3314 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType()
3316 ElementTy = CAT->getElementType(); in mangleArrayType()
3317 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType()
3319 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType()
3321 ElementTy = IAT->getElementType(); in mangleArrayType()
3322 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType()
3324 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType()
3326 ElementTy = VAT->getElementType(); in mangleArrayType()
[all …]
H A DASTDiagnostic.cpp140 QualType ElementTy = in desugarForDiagnostic() local
144 ElementTy, CAT->getSize(), CAT->getSizeExpr(), in desugarForDiagnostic()
147 QT = Context.getVariableArrayType(ElementTy, VAT->getSizeExpr(), in desugarForDiagnostic()
152 ElementTy, DSAT->getSizeExpr(), DSAT->getSizeModifier(), in desugarForDiagnostic()
155 QT = Context.getIncompleteArrayType(ElementTy, IAT->getSizeModifier(), in desugarForDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h162 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp1382 Type *ElementTy = getLoadStoreType(&I); in collectConstStrideAccesses() local
1386 uint64_t Size = DL.getTypeAllocSize(ElementTy); in collectConstStrideAccesses()
1387 if (Size * 8 != DL.getTypeSizeInBits(ElementTy)) in collectConstStrideAccesses()
1398 getPtrStride(PSE, ElementTy, Ptr, TheLoop, Strides, in collectConstStrideAccesses()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1838 Type *ElementTy = Ty->getElementType(); in getArithmeticReductionCost() local
1839 if (ElementTy->isIntegerTy(1)) { in getArithmeticReductionCost()
1845 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()
1866 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()
1887 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()

123